/art/test/411-optimizing-arith/src/ |
D | DivTest.java | 168 expectEquals(0F, $opt$Div(0F, Float.POSITIVE_INFINITY)); in divFloat() 169 expectEquals(0F, $opt$Div(11F, Float.POSITIVE_INFINITY)); in divFloat() 170 expectEquals(0F, $opt$Div(0F, Float.NEGATIVE_INFINITY)); in divFloat() 171 expectEquals(0F, $opt$Div(11F, Float.NEGATIVE_INFINITY)); in divFloat() 174 expectNaN($opt$Div(Float.NaN, 11F)); in divFloat() 175 expectNaN($opt$Div(-11F, Float.NaN)); in divFloat() 176 expectNaN($opt$Div(Float.NEGATIVE_INFINITY, Float.NEGATIVE_INFINITY)); in divFloat() 177 expectNaN($opt$Div(Float.NEGATIVE_INFINITY, Float.POSITIVE_INFINITY)); in divFloat() 178 expectNaN($opt$Div(Float.POSITIVE_INFINITY, Float.NEGATIVE_INFINITY)); in divFloat() 179 expectNaN($opt$Div(Float.POSITIVE_INFINITY, Float.POSITIVE_INFINITY)); in divFloat() [all …]
|
D | MulTest.java | 115 expectNaN($opt$Mul(0F, Float.POSITIVE_INFINITY)); in mulFloat() 116 expectNaN($opt$Mul(0F, Float.NEGATIVE_INFINITY)); in mulFloat() 117 expectNaN($opt$Mul(Float.NaN, 11F)); in mulFloat() 118 expectNaN($opt$Mul(Float.NaN, -11F)); in mulFloat() 119 expectNaN($opt$Mul(Float.NaN, Float.NEGATIVE_INFINITY)); in mulFloat() 120 expectNaN($opt$Mul(Float.NaN, Float.POSITIVE_INFINITY)); in mulFloat() 122 expectEquals(Float.POSITIVE_INFINITY, $opt$Mul(2F, 3.40282346638528860e+38F)); in mulFloat() 123 expectEquals(Float.POSITIVE_INFINITY, $opt$Mul(2F, Float.POSITIVE_INFINITY)); in mulFloat() 124 expectEquals(Float.NEGATIVE_INFINITY, $opt$Mul(-2F, Float.POSITIVE_INFINITY)); in mulFloat() 125 expectEquals(Float.NEGATIVE_INFINITY, $opt$Mul(-2F, 3.40282346638528860e+38F)); in mulFloat() [all …]
|
D | SubTest.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 …]
|
D | NegTest.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/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/645-checker-abs-simd/src/ |
D | Main.java | 269 xf[0] = Float.intBitsToFloat(0x7f800001); in main() 270 xf[1] = Float.intBitsToFloat(0x7fa00000); in main() 271 xf[2] = Float.intBitsToFloat(0x7fc00000); in main() 272 xf[3] = Float.intBitsToFloat(0x7fffffff); in main() 273 xf[4] = Float.intBitsToFloat(0xff800001); in main() 274 xf[5] = Float.intBitsToFloat(0xffa00000); in main() 275 xf[6] = Float.intBitsToFloat(0xffc00000); in main() 276 xf[7] = Float.intBitsToFloat(0xffffffff); in main() 277 xf[8] = Float.NEGATIVE_INFINITY; in main() 284 xf[15] = Float.POSITIVE_INFINITY; in main() [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/580-checker-round/src/ |
D | Main.java | 35 expectEquals32(-2147483648, round32(Float.NEGATIVE_INFINITY)); in main() 49 expectEquals32(2147483647, round32(Float.POSITIVE_INFINITY)); in main() 52 expectEquals32(-2147483648, round32(Math.nextAfter(-2147483648.0f, Float.NEGATIVE_INFINITY))); in main() 54 expectEquals32(-2147483520, round32(Math.nextAfter(-2147483648.0f, Float.POSITIVE_INFINITY))); in main() 57 expectEquals32(2147483520, round32(Math.nextAfter(2147483648.0f, Float.NEGATIVE_INFINITY))); in main() 59 expectEquals32(2147483647, round32(Math.nextAfter(2147483648.0f, Float.POSITIVE_INFINITY))); in main() 69 for (float f = -1.5f; f <= -1.499f; f = Math.nextAfter(f, Float.POSITIVE_INFINITY)) { in main() 100 Float.intBitsToFloat(0x7f800001), in main() 101 Float.intBitsToFloat(0x7fa00000), in main() 102 Float.intBitsToFloat(0x7fc00000), 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); 539 Assert.assertEquals(Math.min(Float.MIN_VALUE, Float.MIN_VALUE), Float.MIN_VALUE); 543 Math.max(1.0f, Float.NaN); 544 Assert.assertTrue(Float.isNaN(Math.max(1.0f, Float.NaN))); 545 Assert.assertTrue(Float.isNaN(Math.max(Float.NaN, 1.0f))); [all …]
|
/art/test/631-checker-fp-abs/src/ |
D | Main.java | 62 for (float f = -1.5f; f <= -1.499f; f = Math.nextAfter(f, Float.POSITIVE_INFINITY)) { in main() 65 for (float f = 1.499f; f <= 1.5f; f = Math.nextAfter(f, Float.POSITIVE_INFINITY)) { in main() 70 expectEquals32(0, Float.floatToRawIntBits($opt$noinline$absSP(+0.0f))); in main() 71 expectEquals32(0, Float.floatToRawIntBits($opt$noinline$absSP(-0.0f))); in main() 74 expectEqualsSP(Float.POSITIVE_INFINITY, $opt$noinline$absSP(Float.NEGATIVE_INFINITY)); in main() 75 expectEqualsSP(Float.POSITIVE_INFINITY, $opt$noinline$absSP(Float.POSITIVE_INFINITY)); in main() 92 float f = Float.intBitsToFloat(spnans[i]); in main() 95 Float.floatToRawIntBits($opt$noinline$absSP(f))); in main()
|
/art/test/956-methodhandles/src/ |
D | Main.java | 688 MethodHandles.lookup().findConstructor(Float.class, in testConstructors() 691 Float value = (Float) mh.invokeExact(0.33f); in testConstructors() 696 value = (Float) mh.invoke(3.34f); in testConstructors() 738 String.class, MethodType.methodType(String.class, Float.class)); in testConstructors() 962 Float.class, "valueOf", MethodType.methodType(Float.class, String.class)); in testReferenceReturnValueConversions() 965 Float f = (Float) mh.invokeExact("1.375"); in testReferenceReturnValueConversions() 969 f = (Float) mh.invoke("1.875"); in testReferenceReturnValueConversions() 1016 Comparable<Float> c = (Comparable<Float>) mh.invoke("2.125"); in testReferenceReturnValueConversions() 1017 if (c.compareTo(new Float(2.125f)) != 0) { in testReferenceReturnValueConversions() 1161 public String update(Float f0, Float... floats) { in update() [all …]
|
/art/test/570-checker-select/src/ |
D | Main.java | 764 assertEqual(7, FloatLtNonmatCond_IntVarVar(Float.NaN, 2, 5, 7)); in main() 765 assertEqual(7, FloatLtNonmatCond_IntVarVar(2, Float.NaN, 5, 7)); in main() 769 assertEqual(7, FloatGtNonmatCond_IntVarVar(Float.NaN, 2, 5, 7)); in main() 770 assertEqual(7, FloatGtNonmatCond_IntVarVar(2, Float.NaN, 5, 7)); in main() 774 assertEqual(7, FloatGtNonmatCond_FloatVarVar(Float.NaN, 2, 5, 7)); in main() 775 assertEqual(7, FloatGtNonmatCond_FloatVarVar(2, Float.NaN, 5, 7)); in main() 779 assertEqual(8, FloatLtMatCond_IntVarVar(Float.NaN, 2, 5, 7)); in main() 780 assertEqual(8, FloatLtMatCond_IntVarVar(2, Float.NaN, 5, 7)); in main() 784 assertEqual(8, FloatGtMatCond_IntVarVar(Float.NaN, 2, 5, 7)); in main() 785 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/712-varhandle-invocations/src/ |
D | SampleValues.java | 57 public static final Float[] FLOATS = 58 new Float[] {-7.77e23f, 1.234e-17f, 3.40e36f, -8.888e3f, 4.442e11f}; 118 public static Float get_Float(int index) { in get_Float()
|
/art/test/952-invoke-custom/src/ |
D | TestReturnValues.java | 123 return Float.NaN; in passThroughCallSite() 244 Float.MIN_VALUE, in testFloatReturnValues() 245 Float.MIN_NORMAL, in testFloatReturnValues() 246 Float.NaN, in testFloatReturnValues() 247 Float.POSITIVE_INFINITY, in testFloatReturnValues() 248 Float.NEGATIVE_INFINITY, in testFloatReturnValues() 249 Float.MAX_VALUE in testFloatReturnValues()
|
D | TestLinkerUnrelatedBSM.java | 43 return Float.MIN_VALUE; in addf() 69 return Float.MIN_VALUE; in subf()
|
/art/test/988-method-trace/src/art/ |
D | Test988Intrinsics.java | 35 java.lang.Float.class.toString(); in initialize() 53 java.lang.Float.floatToRawIntBits(0.0f); in test() 54 java.lang.Float.floatToIntBits(0.0f); in test() 55 java.lang.Float.isInfinite(0.0f); in test() 56 java.lang.Float.isNaN(0.0f); in test() 57 java.lang.Float.intBitsToFloat(0); in test()
|
/art/test/713-varhandle-invokers/src/ |
D | Main.java | 322 Float.class, in run() 324 floatsArray[2] = Float.valueOf(4.0f); in run() 334 Float.valueOf(4.0f), in run() 396 Float.class, in run() 398 floatsArray[2] = Float.valueOf(4.0f); in run() 406 Float.valueOf(4.0f), in run()
|
/art/test/959-invoke-polymorphic-accessors/src/ |
D | Main.java | 89 Float, enumConstant 532 float floatValue = value instanceof Float ? ((Float) value).floatValue() : -1.0f; in tryAccessor() 534 resultFor(primitive, PrimitiveType.Float, accessor, AccessorType.IPUT)); in tryAccessor() 536 resultFor(primitive, PrimitiveType.Float, accessor, AccessorType.SPUT)); in tryAccessor() 538 resultFor(primitive, PrimitiveType.Float, accessor, AccessorType.IGET)); in tryAccessor() 540 resultFor(primitive, PrimitiveType.Float, accessor, AccessorType.SGET)); in tryAccessor() 644 Float boxed = Float.valueOf(f); in main() 646 valueHolder, PrimitiveType.Float, boxed, AccessorType.IPUT); in main() 648 valueHolder, PrimitiveType.Float, boxed, AccessorType.IGET); in main() 651 valueHolder, PrimitiveType.Float, boxed, AccessorType.SPUT); in main() [all …]
|