/art/test/417-optimizing-arith-div/src/ |
D | Main.java | 172 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/ |
D | Main.java | 77 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/ |
D | expected.txt | 4 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/575-checker-isnan/src/ |
D | Main.java | 30 return Float.isNaN(x); in isNaN32() 49 expectFalse(isNaN32(Float.NEGATIVE_INFINITY)); in main() 54 expectFalse(isNaN32(Float.POSITIVE_INFINITY)); in main() 57 expectFalse(isNaN32(Float.intBitsToFloat(0x00400000))); in main() 58 expectFalse(isNaN32(Float.intBitsToFloat(0x80400000))); in main() 59 expectFalse(isNaN32(Float.intBitsToFloat(0x00000001))); in main() 60 expectFalse(isNaN32(Float.intBitsToFloat(0x80000001))); in main() 63 expectTrue(isNaN32(Float.NaN)); in main() 67 Float.intBitsToFloat(0x7f800001), in main() 68 Float.intBitsToFloat(0x7fa00000), in main() [all …]
|
/art/test/703-floating-point-div/src/ |
D | Main.java | 66 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/ |
D | Main.java | 112 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-mul/src/ |
D | Main.java | 119 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/577-checker-fp2int/src/ |
D | Main.java | 30 return Float.floatToIntBits(f); in f2int() 49 expectEquals32(0xff800000, f2int(Float.NEGATIVE_INFINITY)); in main() 54 expectEquals32(0x7f800000, f2int(Float.POSITIVE_INFINITY)); in main() 58 expectEquals32(i, f2int(Float.intBitsToFloat(i))); in main() 63 Float.intBitsToFloat(0x7f800001), in main() 64 Float.intBitsToFloat(0x7fa00000), in main() 65 Float.intBitsToFloat(0x7fc00000), in main() 66 Float.intBitsToFloat(0x7fffffff), in main() 67 Float.intBitsToFloat(0xff800001), in main() 68 Float.intBitsToFloat(0xffa00000), in main() [all …]
|
/art/test/432-optimizing-cmp/src/ |
D | Main.java | 50 expectLt(Float.MIN_VALUE, Float.MAX_VALUE); in cmpFloat() 51 expectGt(Float.MAX_VALUE, Float.MIN_VALUE); in cmpFloat() 52 expectFalse(3.1F, Float.NaN); in cmpFloat() 53 expectFalse(Float.NaN, 3.1F); in cmpFloat() 62 expectEquals(-1, smaliCmpGtFloat(Float.MIN_VALUE, Float.MAX_VALUE)); in cmpFloat() 63 expectEquals(1, smaliCmpGtFloat(Float.MAX_VALUE, Float.MIN_VALUE)); in cmpFloat() 64 expectEquals(0, smaliCmpGtFloat(Float.MIN_VALUE, Float.MIN_VALUE)); in cmpFloat() 65 expectEquals(0, smaliCmpGtFloat(Float.MAX_VALUE, Float.MAX_VALUE)); in cmpFloat() 66 expectEquals(1, smaliCmpGtFloat(5F, Float.NaN)); in cmpFloat() 67 expectEquals(1, smaliCmpGtFloat(Float.NaN, 5F)); in cmpFloat() [all …]
|
/art/test/415-optimizing-arith-neg/src/ |
D | Main.java | 41 if (!expected.equals(new Float(result).toString())) { in assertEquals() 59 if (!Float.isNaN(result)) { in assertIsNaN() 134 assertEquals(-Float.MIN_NORMAL, $opt$noinline$NegFloat(Float.MIN_NORMAL)); in negFloat() 135 assertEquals(Float.MIN_NORMAL, $opt$noinline$NegFloat(-Float.MIN_NORMAL)); in negFloat() 136 assertEquals(-Float.MIN_VALUE, $opt$noinline$NegFloat(Float.MIN_VALUE)); in negFloat() 137 assertEquals(Float.MIN_VALUE, $opt$noinline$NegFloat(-Float.MIN_VALUE)); in negFloat() 138 assertEquals(-Float.MAX_VALUE, $opt$noinline$NegFloat(Float.MAX_VALUE)); in negFloat() 139 assertEquals(Float.MAX_VALUE, $opt$noinline$NegFloat(-Float.MAX_VALUE)); in negFloat() 141 assertEquals(Float.NEGATIVE_INFINITY, $opt$noinline$NegFloat(Float.POSITIVE_INFINITY)); in negFloat() 142 assertEquals(Float.POSITIVE_INFINITY, $opt$noinline$NegFloat(Float.NEGATIVE_INFINITY)); in negFloat() [all …]
|
/art/test/580-checker-round/src/ |
D | Main.java | 35 expectEquals32(-2147483648, round32(Float.NEGATIVE_INFINITY)); in main() 48 expectEquals32(2147483647, round32(Float.POSITIVE_INFINITY)); in main() 56 for (float f = -1.5f; f <= -1.499f; f = Math.nextAfter(f, Float.POSITIVE_INFINITY)) { in main() 83 Float.intBitsToFloat(0x7f800001), in main() 84 Float.intBitsToFloat(0x7fa00000), in main() 85 Float.intBitsToFloat(0x7fc00000), in main() 86 Float.intBitsToFloat(0x7fffffff), in main() 87 Float.intBitsToFloat(0xff800001), in main() 88 Float.intBitsToFloat(0xffa00000), in main() 89 Float.intBitsToFloat(0xffc00000), in main() [all …]
|
/art/test/082-inline-execute/src/ |
D | Main.java | 526 Math.min(1.0f, Float.NaN); 527 Assert.assertTrue(Float.isNaN(Math.min(1.0f, Float.NaN))); 528 Assert.assertTrue(Float.isNaN(Math.min(Float.NaN, 1.0f))); 535 Assert.assertEquals(Math.min(0.0f, Float.MAX_VALUE), 0.0f); 536 Assert.assertEquals(Math.min(Float.MIN_VALUE, 0.0f), 0.0f); 537 Assert.assertEquals(Math.min(Float.MIN_VALUE, Float.MAX_VALUE), Float.MIN_VALUE); 541 Math.max(1.0f, Float.NaN); 542 Assert.assertTrue(Float.isNaN(Math.max(1.0f, Float.NaN))); 543 Assert.assertTrue(Float.isNaN(Math.max(Float.NaN, 1.0f))); 550 Assert.assertEquals(Math.max(0.0f, Float.MAX_VALUE), Float.MAX_VALUE); [all …]
|
/art/test/570-checker-select/src/ |
D | Main.java | 475 assertEqual(7, FloatLtNonmatCond_IntVarVar(Float.NaN, 2, 5, 7)); in main() 476 assertEqual(7, FloatLtNonmatCond_IntVarVar(2, Float.NaN, 5, 7)); in main() 480 assertEqual(7, FloatGtNonmatCond_IntVarVar(Float.NaN, 2, 5, 7)); in main() 481 assertEqual(7, FloatGtNonmatCond_IntVarVar(2, Float.NaN, 5, 7)); in main() 485 assertEqual(7, FloatGtNonmatCond_FloatVarVar(Float.NaN, 2, 5, 7)); in main() 486 assertEqual(7, FloatGtNonmatCond_FloatVarVar(2, Float.NaN, 5, 7)); in main() 490 assertEqual(8, FloatLtMatCond_IntVarVar(Float.NaN, 2, 5, 7)); in main() 491 assertEqual(8, FloatLtMatCond_IntVarVar(2, Float.NaN, 5, 7)); in main() 495 assertEqual(8, FloatGtMatCond_IntVarVar(Float.NaN, 2, 5, 7)); in main() 496 assertEqual(8, FloatGtMatCond_IntVarVar(2, Float.NaN, 5, 7)); in main() [all …]
|
/art/test/583-checker-zero/src/ |
D | Main.java | 26 if (new Float(0f).equals(new Float(-0f))) { in main()
|
/art/test/044-proxy/src/ |
D | ReturnsAndArgPassing.java | 166 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/ |
D | Main.java | 14 + 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/GetMethodSignature/ |
D | GetMethodSignature.java | 18 Float m1(int a, double b, long c, Object d) { return null; } in m1()
|
/art/test/477-long-to-float-conversion-precision/src/ |
D | Main.java | 35 assertFloatEquals(Float.intBitsToFloat(-555858671), $opt$LongToFloat(-8008112895877447681L)); in longToFloat()
|
/art/test/422-type-conversion/src/ |
D | Main.java | 66 if (!Float.isNaN(result)) { in assertFloatIsNaN() 367 assertIntEquals(0, $opt$noinline$FloatToInt(Float.NaN)); in floatToInt() 368 assertIntEquals(2147483647, $opt$noinline$FloatToInt(Float.POSITIVE_INFINITY)); in floatToInt() 369 assertIntEquals(-2147483648, $opt$noinline$FloatToInt(Float.NEGATIVE_INFINITY)); in floatToInt() 393 assertLongEquals(0L, $opt$noinline$FloatToLong(Float.NaN)); in floatToLong() 394 assertLongEquals(9223372036854775807L, $opt$noinline$FloatToLong(Float.POSITIVE_INFINITY)); in floatToLong() 395 assertLongEquals(-9223372036854775808L, $opt$noinline$FloatToLong(Float.NEGATIVE_INFINITY)); in floatToLong() 419 assertDoubleIsNaN($opt$noinline$FloatToDouble(Float.NaN)); in floatToDouble() 420 …assertDoubleEquals(Double.POSITIVE_INFINITY, $opt$noinline$FloatToDouble(Float.POSITIVE_INFINITY)); in floatToDouble() 421 …assertDoubleEquals(Double.NEGATIVE_INFINITY, $opt$noinline$FloatToDouble(Float.NEGATIVE_INFINITY)); in floatToDouble() [all …]
|
/art/test/457-regs/src/ |
D | Main.java | 32 m.invoke(null, new Boolean(true), new Float(4.0f)); in main()
|
/art/test/021-string2/src/junit/framework/ |
D | Assert.java | 117 if (Float.compare(expected, actual) == 0) in assertEquals() 120 failNotEquals(message, new Float(expected), new Float(actual)); in assertEquals()
|
/art/test/082-inline-execute/src/junit/framework/ |
D | Assert.java | 117 if (Float.compare(expected, actual) == 0) in assertEquals() 120 failNotEquals(message, new Float(expected), new Float(actual)); in assertEquals()
|
/art/test/134-reg-promotion/smali/ |
D | Test.smali | 33 invoke-static {v2}, Ljava/lang/Float;->isNaN(F)Z 58 invoke-static {v2}, Ljava/lang/Float;->isNaN(F)Z
|
/art/test/093-serialization/src/ |
D | Main.java | 110 Float five;
|
/art/test/800-smali/smali/ |
D | sameFieldNames.smali | 16 .field static public a:Ljava/lang/Float;
|