Home
last modified time | relevance | path

Searched refs:Float (Results 1 – 25 of 31) sorted by relevance

12

/art/test/417-optimizing-arith-div/src/
DMain.java172 expectEquals(0F, $opt$Div(0F, Float.POSITIVE_INFINITY)); in divFloat()
173 expectEquals(0F, $opt$Div(11F, Float.POSITIVE_INFINITY)); in divFloat()
174 expectEquals(0F, $opt$Div(0F, Float.NEGATIVE_INFINITY)); in divFloat()
175 expectEquals(0F, $opt$Div(11F, Float.NEGATIVE_INFINITY)); in divFloat()
178 expectNaN($opt$Div(Float.NaN, 11F)); in divFloat()
179 expectNaN($opt$Div(-11F, Float.NaN)); in divFloat()
180 expectNaN($opt$Div(Float.NEGATIVE_INFINITY, Float.NEGATIVE_INFINITY)); in divFloat()
181 expectNaN($opt$Div(Float.NEGATIVE_INFINITY, Float.POSITIVE_INFINITY)); in divFloat()
182 expectNaN($opt$Div(Float.POSITIVE_INFINITY, Float.NEGATIVE_INFINITY)); in divFloat()
183 expectNaN($opt$Div(Float.POSITIVE_INFINITY, Float.POSITIVE_INFINITY)); in divFloat()
[all …]
/art/test/436-rem-float/src/
DMain.java77 expectApproxEquals(0F, $opt$Rem(Float.MAX_VALUE, 1F)); in remFloat()
78 expectApproxEquals(0F, $opt$Rem(Float.MAX_VALUE, -1F)); in remFloat()
79 expectApproxEquals(0F, $opt$Rem(Float.MIN_VALUE, 1F)); in remFloat()
80 expectApproxEquals(0F, $opt$Rem(Float.MIN_VALUE, -1F)); in remFloat()
82 expectApproxEquals(0F, $opt$Rem(0F, Float.MAX_VALUE)); in remFloat()
83 expectApproxEquals(0F, $opt$Rem(0F, Float.MIN_VALUE)); in remFloat()
84 expectApproxEquals(0F, $opt$Rem(0F, Float.POSITIVE_INFINITY)); in remFloat()
85 expectApproxEquals(0F, $opt$Rem(0F, Float.NEGATIVE_INFINITY)); in remFloat()
86 expectApproxEquals(4F, $opt$Rem(4F, Float.POSITIVE_INFINITY)); in remFloat()
87 expectApproxEquals(4F, $opt$Rem(4F, Float.NEGATIVE_INFINITY)); in remFloat()
[all …]
/art/test/041-narrowing/
Dexpected.txt4 Float.POSITIVE_INFINITY = 7ff0000000000000
5 Float.NEGATIVE_INFINITY = fff0000000000000
7 Float.NaN = 7ff8000000000000
14 (byte) Float.NaN = 00 expected: 00
15 (short) Float.NaN = 0000 expected: 0000
16 (int) Float.NaN = 00000000 expected: 00000000
17 (long) Float.NaN = 0000000000000000 expected: 0000000000000000
29 (byte) Float.POSITIVE_INFINITY = ff expected: ff
30 (short) Float.POSITIVE_INFINITY = ffff expected: ffff
31 (int) Float.POSITIVE_INFINITY = 7fffffff expected: 7fffffff
[all …]
/art/test/703-floating-point-div/src/
DMain.java66 float f4 = Float.MIN_NORMAL; in divFloatTest()
67 float f5 = Float.POSITIVE_INFINITY; in divFloatTest()
68 float f6 = Float.NEGATIVE_INFINITY; in divFloatTest()
70 float f8 = Float.MAX_VALUE; in divFloatTest()
71 float f9 = Float.MIN_VALUE; in divFloatTest()
72 float fNaN = Float.NaN; in divFloatTest()
74 expectEquals(Float.floatToRawIntBits(fPi/f1), 0xc90fdb); in divFloatTest()
75 expectEquals(Float.floatToRawIntBits(fPi/f2), 0xbfc90fdb); in divFloatTest()
76 expectEquals(Float.floatToRawIntBits(fPi/f3), 0x7f800000); in divFloatTest()
77 expectEquals(Float.floatToRawIntBits(fPi/f4), 0x7f490fdb); in divFloatTest()
[all …]
/art/test/414-optimizing-arith-sub/src/
DMain.java112 expectNaN($opt$Sub(Float.NEGATIVE_INFINITY, Float.NEGATIVE_INFINITY)); in subFloat()
113 expectNaN($opt$Sub(Float.POSITIVE_INFINITY, Float.POSITIVE_INFINITY)); in subFloat()
114 expectNaN($opt$Sub(Float.NaN, 11F)); in subFloat()
115 expectNaN($opt$Sub(Float.NaN, -11F)); in subFloat()
116 expectNaN($opt$Sub(Float.NaN, Float.NEGATIVE_INFINITY)); in subFloat()
117 expectNaN($opt$Sub(Float.NaN, Float.POSITIVE_INFINITY)); in subFloat()
119 expectEquals(Float.NEGATIVE_INFINITY, $opt$Sub(-Float.MAX_VALUE, Float.MAX_VALUE)); in subFloat()
120 expectEquals(Float.NEGATIVE_INFINITY, $opt$Sub(2F, Float.POSITIVE_INFINITY)); in subFloat()
121 expectEquals(Float.POSITIVE_INFINITY, $opt$Sub(Float.MAX_VALUE, -Float.MAX_VALUE)); in subFloat()
122 expectEquals(Float.POSITIVE_INFINITY, $opt$Sub(2F, Float.NEGATIVE_INFINITY)); in subFloat()
[all …]
/art/test/411-optimizing-arith/src/
DMain.java119 expectNaN($opt$Mul(0F, Float.POSITIVE_INFINITY)); in mulFloat()
120 expectNaN($opt$Mul(0F, Float.NEGATIVE_INFINITY)); in mulFloat()
121 expectNaN($opt$Mul(Float.NaN, 11F)); in mulFloat()
122 expectNaN($opt$Mul(Float.NaN, -11F)); in mulFloat()
123 expectNaN($opt$Mul(Float.NaN, Float.NEGATIVE_INFINITY)); in mulFloat()
124 expectNaN($opt$Mul(Float.NaN, Float.POSITIVE_INFINITY)); in mulFloat()
126 expectEquals(Float.POSITIVE_INFINITY, $opt$Mul(2F, 3.40282346638528860e+38F)); in mulFloat()
127 expectEquals(Float.POSITIVE_INFINITY, $opt$Mul(2F, Float.POSITIVE_INFINITY)); in mulFloat()
128 expectEquals(Float.NEGATIVE_INFINITY, $opt$Mul(-2F, Float.POSITIVE_INFINITY)); in mulFloat()
129 expectEquals(Float.NEGATIVE_INFINITY, $opt$Mul(-2F, 3.40282346638528860e+38F)); in mulFloat()
[all …]
/art/test/432-optimizing-cmp/src/
DMain.java46 expectLt(Float.MIN_VALUE, Float.MAX_VALUE); in cmpFloat()
47 expectGt(Float.MAX_VALUE, Float.MIN_VALUE); in cmpFloat()
48 expectFalse(3.1F, Float.NaN); in cmpFloat()
49 expectFalse(Float.NaN, 3.1F); in cmpFloat()
55 expectEquals(-1, smaliCmpGtFloat(Float.MIN_VALUE, Float.MAX_VALUE)); in cmpFloat()
56 expectEquals(1, smaliCmpGtFloat(Float.MAX_VALUE, Float.MIN_VALUE)); in cmpFloat()
57 expectEquals(0, smaliCmpGtFloat(Float.MIN_VALUE, Float.MIN_VALUE)); in cmpFloat()
58 expectEquals(0, smaliCmpGtFloat(Float.MAX_VALUE, Float.MAX_VALUE)); in cmpFloat()
59 expectEquals(1, smaliCmpGtFloat(5F, Float.NaN)); in cmpFloat()
60 expectEquals(1, smaliCmpGtFloat(Float.NaN, 5F)); in cmpFloat()
[all …]
/art/test/415-optimizing-arith-neg/src/
DMain.java40 if (!expected.equals(new Float(result).toString())) { in assertEquals()
58 if (!Float.isNaN(result)) { in assertIsNaN()
143 assertEquals(-Float.MIN_NORMAL, $opt$NegFloat(Float.MIN_NORMAL)); in negFloat()
144 assertEquals(Float.MIN_NORMAL, $opt$NegFloat(-Float.MIN_NORMAL)); in negFloat()
145 assertEquals(-Float.MIN_VALUE, $opt$NegFloat(Float.MIN_VALUE)); in negFloat()
146 assertEquals(Float.MIN_VALUE, $opt$NegFloat(-Float.MIN_VALUE)); in negFloat()
147 assertEquals(-Float.MAX_VALUE, $opt$NegFloat(Float.MAX_VALUE)); in negFloat()
148 assertEquals(Float.MAX_VALUE, $opt$NegFloat(-Float.MAX_VALUE)); in negFloat()
150 assertEquals(Float.NEGATIVE_INFINITY, $opt$NegFloat(Float.POSITIVE_INFINITY)); in negFloat()
151 assertEquals(Float.POSITIVE_INFINITY, $opt$NegFloat(Float.NEGATIVE_INFINITY)); in negFloat()
[all …]
/art/test/082-inline-execute/src/
DMain.java512 Math.min(1.0f, Float.NaN);
513 Assert.assertTrue(Float.isNaN(Math.min(1.0f, Float.NaN)));
514 Assert.assertTrue(Float.isNaN(Math.min(Float.NaN, 1.0f)));
521 Assert.assertEquals(Math.min(0.0f, Float.MAX_VALUE), 0.0f);
522 Assert.assertEquals(Math.min(Float.MIN_VALUE, 0.0f), 0.0f);
523 Assert.assertEquals(Math.min(Float.MIN_VALUE, Float.MAX_VALUE), Float.MIN_VALUE);
527 Math.max(1.0f, Float.NaN);
528 Assert.assertTrue(Float.isNaN(Math.max(1.0f, Float.NaN)));
529 Assert.assertTrue(Float.isNaN(Math.max(Float.NaN, 1.0f)));
536 Assert.assertEquals(Math.max(0.0f, Float.MAX_VALUE), Float.MAX_VALUE);
[all …]
/art/test/044-proxy/src/
DReturnsAndArgPassing.java166 myHandler.returnType = Float.class; in testProxyReturns()
167 check(proxyMyInterface.floatFoo() == Float.MAX_VALUE); in testProxyReturns()
171 check(proxyMyInterface.floatBar() == Float.MIN_VALUE); in testProxyReturns()
335 myHandler.returnType = Float.class; // Float -> byte == fail in testProxyReturns()
448 Float.MAX_VALUE, Double.MAX_VALUE, Object.class) == 0); in testProxyArgPassing()
450 Float.MAX_VALUE, Double.MAX_VALUE, Object.class) == Integer.MAX_VALUE); in testProxyArgPassing()
452 Float.MAX_VALUE, Double.MAX_VALUE, Object.class) == Long.MAX_VALUE); in testProxyArgPassing()
453 check((Float)proxyMyInterface.selectArg(3, Integer.MAX_VALUE, Long.MAX_VALUE, in testProxyArgPassing()
454 Float.MAX_VALUE, Double.MAX_VALUE, Object.class) == Float.MAX_VALUE); in testProxyArgPassing()
456 Float.MAX_VALUE, Double.MAX_VALUE, Object.class) == Double.MAX_VALUE); in testProxyArgPassing()
[all …]
/art/test/041-narrowing/src/
DMain.java14 + Long.toHexString(Double.doubleToRawLongBits(Float.POSITIVE_INFINITY))); in test_printNarrowing()
16 + Long.toHexString(Double.doubleToRawLongBits(Float.NEGATIVE_INFINITY))); in test_printNarrowing()
20 + Long.toHexString(Double.doubleToRawLongBits(Float.NaN))); in test_printNarrowing()
35 float fl2 = Float.NaN; in test_printNarrowing()
73 float fl3 = Float.POSITIVE_INFINITY; in test_printNarrowing()
85 float fl4 = Float.NEGATIVE_INFINITY; in test_printNarrowing()
/art/test/422-type-conversion/src/
DMain.java66 if (!Float.isNaN(result)) { in assertFloatIsNaN()
367 assertIntEquals(0, $opt$FloatToInt(Float.NaN)); in floatToInt()
368 assertIntEquals(2147483647, $opt$FloatToInt(Float.POSITIVE_INFINITY)); in floatToInt()
369 assertIntEquals(-2147483648, $opt$FloatToInt(Float.NEGATIVE_INFINITY)); in floatToInt()
393 assertLongEquals(0L, $opt$FloatToLong(Float.NaN)); in floatToLong()
394 assertLongEquals(9223372036854775807L, $opt$FloatToLong(Float.POSITIVE_INFINITY)); in floatToLong()
395 assertLongEquals(-9223372036854775808L, $opt$FloatToLong(Float.NEGATIVE_INFINITY)); in floatToLong()
419 assertDoubleIsNaN($opt$FloatToDouble(Float.NaN)); in floatToDouble()
420 assertDoubleEquals(Double.POSITIVE_INFINITY, $opt$FloatToDouble(Float.POSITIVE_INFINITY)); in floatToDouble()
421 assertDoubleEquals(Double.NEGATIVE_INFINITY, $opt$FloatToDouble(Float.NEGATIVE_INFINITY)); in floatToDouble()
[all …]
/art/test/GetMethodSignature/
DGetMethodSignature.java18 Float m1(int a, double b, long c, Object d) { return null; } in m1()
/art/test/477-long-to-float-conversion-precision/src/
DMain.java36 assertFloatEquals(Float.intBitsToFloat(-555858671), $opt$LongToFloat(-8008112895877447681L)); in longToFloat()
/art/test/082-inline-execute/src/junit/framework/
DAssert.java117 if (Float.compare(expected, actual) == 0) in assertEquals()
120 failNotEquals(message, new Float(expected), new Float(actual)); in assertEquals()
/art/test/021-string2/src/junit/framework/
DAssert.java117 if (Float.compare(expected, actual) == 0) in assertEquals()
120 failNotEquals(message, new Float(expected), new Float(actual)); in assertEquals()
/art/test/457-regs/src/
DMain.java30 m.invoke(null, new Boolean(true), new Float(4.0f)); in main()
/art/test/134-reg-promotion/smali/
DTest.smali33 invoke-static {v2}, Ljava/lang/Float;->isNaN(F)Z
58 invoke-static {v2}, Ljava/lang/Float;->isNaN(F)Z
/art/test/093-serialization/src/
DMain.java110 Float five;
/art/runtime/verifier/
Dmethod_verifier.cc1393 reg_line->SetRegisterType(this, arg_start + cur_arg, reg_types_.Float()); in SetTypesFromSignature()
2026 if (!work_line_->VerifyRegisterType(this, inst->VRegB_23x(), reg_types_.Float())) { in CodeFlowVerifyInstruction()
2029 if (!work_line_->VerifyRegisterType(this, inst->VRegC_23x(), reg_types_.Float())) { in CodeFlowVerifyInstruction()
2608 work_line_->CheckUnaryOp(this, inst, reg_types_.Float(), reg_types_.Float()); in CodeFlowVerifyInstruction()
2619 work_line_->CheckUnaryOp(this, inst, reg_types_.Float(), reg_types_.Integer()); in CodeFlowVerifyInstruction()
2630 work_line_->CheckUnaryOpFromWide(this, inst, reg_types_.Float(), in CodeFlowVerifyInstruction()
2638 work_line_->CheckUnaryOp(this, inst, reg_types_.Integer(), reg_types_.Float()); in CodeFlowVerifyInstruction()
2642 reg_types_.Float()); in CodeFlowVerifyInstruction()
2646 reg_types_.Float()); in CodeFlowVerifyInstruction()
2657 work_line_->CheckUnaryOpFromWide(this, inst, reg_types_.Float(), in CodeFlowVerifyInstruction()
[all …]
Dreg_type_cache.h95 const FloatType& Float() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { in Float() function
Dreg_type_test.cc283 const RegType& float_reg_type = cache.Float(); in TEST_F()
493 const RegType& float_type = cache_new.Float(); in TEST_F()
/art/test/800-smali/smali/
DsameFieldNames.smali16 .field static public a:Ljava/lang/Float;
/art/test/046-reflect/src/
DMain.java149 new Float(3.1415926f), in run()
153 + ((Float)argList[1]).floatValue()); in run()
376 args = new Object[] { new Integer(7), new Float(3.3333) }; in run()
/art/test/201-built-in-exception-detail-messages/src/
DMain.java125 Object[] array = new Float[10][]; in arrayStore()

12