Home
last modified time | relevance | path

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

1234

/art/test/411-optimizing-arith/src/
DDivTest.java168 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 …]
DMulTest.java115 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 …]
DSubTest.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 …]
DNegTest.java41 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/
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-stdout.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/567-checker-builder-intrinsics/src/
DTestIsNan.java26 return Float.isNaN(x); in isNaN32()
41 expectFalse(isNaN32(Float.NEGATIVE_INFINITY)); in main()
46 expectFalse(isNaN32(Float.POSITIVE_INFINITY)); in main()
49 expectFalse(isNaN32(Float.intBitsToFloat(0x00400000))); in main()
50 expectFalse(isNaN32(Float.intBitsToFloat(0x80400000))); in main()
51 expectFalse(isNaN32(Float.intBitsToFloat(0x00000001))); in main()
52 expectFalse(isNaN32(Float.intBitsToFloat(0x80000001))); in main()
55 expectTrue(isNaN32(Float.NaN)); in main()
59 Float.intBitsToFloat(0x7f800001), in main()
60 Float.intBitsToFloat(0x7fa00000), in main()
[all …]
DTestFpAbs.java56 for (float f = -1.5f; f <= -1.499f; f = Math.nextAfter(f, Float.POSITIVE_INFINITY)) { in main()
59 for (float f = 1.499f; f <= 1.5f; f = Math.nextAfter(f, Float.POSITIVE_INFINITY)) { in main()
64 expectEquals32(0, Float.floatToRawIntBits($opt$noinline$absSP(+0.0f))); in main()
65 expectEquals32(0, Float.floatToRawIntBits($opt$noinline$absSP(-0.0f))); in main()
68 expectEqualsSP(Float.POSITIVE_INFINITY, $opt$noinline$absSP(Float.NEGATIVE_INFINITY)); in main()
69 expectEqualsSP(Float.POSITIVE_INFINITY, $opt$noinline$absSP(Float.POSITIVE_INFINITY)); in main()
86 float f = Float.intBitsToFloat(spnans[i]); in main()
89 Float.floatToRawIntBits($opt$noinline$absSP(f))); in main()
/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/645-checker-abs-simd/src/
DMain.java370 xf[0] = Float.intBitsToFloat(0x7f800001); in main()
371 xf[1] = Float.intBitsToFloat(0x7fa00000); in main()
372 xf[2] = Float.intBitsToFloat(0x7fc00000); in main()
373 xf[3] = Float.intBitsToFloat(0x7fffffff); in main()
374 xf[4] = Float.intBitsToFloat(0xff800001); in main()
375 xf[5] = Float.intBitsToFloat(0xffa00000); in main()
376 xf[6] = Float.intBitsToFloat(0xffc00000); in main()
377 xf[7] = Float.intBitsToFloat(0xffffffff); in main()
378 xf[8] = Float.NEGATIVE_INFINITY; in main()
385 xf[15] = Float.POSITIVE_INFINITY; in main()
[all …]
/art/test/577-checker-fp2int/src/
DMain.java30 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/
DMain.java50 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/
DMain.java35 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/
DMain.java529 Math.min(1.0f, Float.NaN);
530 Assert.assertTrue(Float.isNaN(Math.min(1.0f, Float.NaN)));
531 Assert.assertTrue(Float.isNaN(Math.min(Float.NaN, 1.0f)));
538 Assert.assertEquals(Math.min(0.0f, Float.MAX_VALUE), 0.0f);
539 Assert.assertEquals(Math.min(Float.MIN_VALUE, 0.0f), 0.0f);
540 Assert.assertEquals(Math.min(Float.MIN_VALUE, Float.MAX_VALUE), Float.MIN_VALUE);
542 Assert.assertEquals(Math.min(Float.MIN_VALUE, Float.MIN_VALUE), Float.MIN_VALUE);
546 Math.max(1.0f, Float.NaN);
547 Assert.assertTrue(Float.isNaN(Math.max(1.0f, Float.NaN)));
548 Assert.assertTrue(Float.isNaN(Math.max(Float.NaN, 1.0f)));
[all …]
/art/test/956-methodhandles/src/
DMain.java721 MethodHandles.lookup().findConstructor(Float.class, in testConstructors()
724 Float value = (Float) mh.invokeExact(0.33f); in testConstructors()
729 value = (Float) mh.invoke(3.34f); in testConstructors()
771 String.class, MethodType.methodType(String.class, Float.class)); in testConstructors()
1013 Float.class, "valueOf", MethodType.methodType(Float.class, String.class)); in testReferenceReturnValueConversions()
1016 Float f = (Float) mh.invokeExact("1.375"); in testReferenceReturnValueConversions()
1020 f = (Float) mh.invoke("1.875"); in testReferenceReturnValueConversions()
1067 Comparable<Float> c = (Comparable<Float>) mh.invoke("2.125"); in testReferenceReturnValueConversions()
1068 if (c.compareTo(new Float(2.125f)) != 0) { in testReferenceReturnValueConversions()
1212 public String update(Float f0, Float... floats) { in update()
[all …]
/art/test/570-checker-select/src/
DMain.java682 assertEqual(7, $noinline$FloatLtNonmatCond_IntVarVar(Float.NaN, 2, 5, 7)); in main()
683 assertEqual(7, $noinline$FloatLtNonmatCond_IntVarVar(2, Float.NaN, 5, 7)); in main()
687 assertEqual(7, $noinline$FloatGtNonmatCond_IntVarVar(Float.NaN, 2, 5, 7)); in main()
688 assertEqual(7, $noinline$FloatGtNonmatCond_IntVarVar(2, Float.NaN, 5, 7)); in main()
692 assertEqual(7, $noinline$FloatGtNonmatCond_FloatVarVar(Float.NaN, 2, 5, 7)); in main()
693 assertEqual(7, $noinline$FloatGtNonmatCond_FloatVarVar(2, Float.NaN, 5, 7)); in main()
697 assertEqual(8, $noinline$FloatLtMatCond_IntVarVar(Float.NaN, 2, 5, 7)); in main()
698 assertEqual(8, $noinline$FloatLtMatCond_IntVarVar(2, Float.NaN, 5, 7)); in main()
702 assertEqual(8, $noinline$FloatGtMatCond_IntVarVar(Float.NaN, 2, 5, 7)); in main()
703 assertEqual(8, $noinline$FloatGtMatCond_IntVarVar(2, Float.NaN, 5, 7)); in main()
[all …]
/art/test/583-checker-zero/src/
DMain.java26 if (new Float(0f).equals(new Float(-0f))) { in main()
/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/712-varhandle-invocations/src/
DSampleValues.java57 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()
DVarHandleFpCasTests.java41 assertFalse(vh.compareAndSet(a, -0.0f, Float.NaN)); in doTest()
42 assertTrue(vh.compareAndSet(a, 0.0f, Float.NaN)); in doTest()
43 assertTrue(vh.compareAndSet(a, Float.NaN, 0.0f)); in doTest()
/art/test/952-invoke-custom/src/
DTestReturnValues.java123 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()
/art/test/684-checker-simd-dotprod/src/other/
DTestFloatDouble.java50 if (Float.compare(expected, result) != 0) { in expectEquals()
62 final float MAX_F = Float.MAX_VALUE; in run()
63 final float MIN_F = Float.MIN_VALUE; in run()
/art/test/988-method-trace/src/art/
DTest988Intrinsics.java35 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/2024-InvariantNegativeLoop/src/
DMain.java44 assertFloatEquals(Float.floatToIntBits(used1 + used2 + used3 + used4), 1157152768); in loop()
45 return Float.floatToIntBits(used1 + used2 + used3 + used4); in loop()

1234