Home
last modified time | relevance | path

Searched refs:Long (Results 1 – 25 of 179) sorted by relevance

12345678

/art/test/015-switch/src/
DMain.java158 temp = Long.rotateLeft(temp, value); in packedSwitch7()
159 temp = Long.rotateLeft(temp, value); in packedSwitch7()
160 temp = Long.rotateLeft(temp, value); in packedSwitch7()
161 temp = Long.rotateLeft(temp, value); in packedSwitch7()
162 temp = Long.rotateLeft(temp, value); in packedSwitch7()
163 temp = Long.rotateLeft(temp, value); in packedSwitch7()
164 temp = Long.rotateLeft(temp, value); in packedSwitch7()
165 temp = Long.rotateLeft(temp, value); in packedSwitch7()
166 temp = Long.rotateLeft(temp, value); in packedSwitch7()
167 temp = Long.rotateLeft(temp, value); in packedSwitch7()
[all …]
/art/test/685-shifts/src/
DMain.java47 assertEquals(smallLong, (Long)m.invoke(null, smallLong)); in main()
48 assertEquals(longLong, (Long)m.invoke(null, longLong)); in main()
51 assertEquals(smallLong, (Long)m.invoke(null, smallLong)); in main()
52 assertEquals(longLong, (Long)m.invoke(null, longLong)); in main()
55 assertEquals(smallLong, (Long)m.invoke(null, smallLong)); in main()
56 assertEquals(longLong, (Long)m.invoke(null, longLong)); in main()
59 assertEquals(smallLongShlOne, (Long)m.invoke(null, smallLong)); in main()
60 assertEquals(longLongShlOne, (Long)m.invoke(null, longLong)); in main()
63 assertEquals(smallLongShrOne, (Long)m.invoke(null, smallLong)); in main()
64 assertEquals(longLongShrOne, (Long)m.invoke(null, longLong)); in main()
[all …]
/art/test/041-narrowing/src/
DMain.java10 + Long.toHexString(Double.doubleToRawLongBits(Double.POSITIVE_INFINITY))); in test_printNarrowing()
12 + Long.toHexString(Double.doubleToRawLongBits(Double.NEGATIVE_INFINITY))); in test_printNarrowing()
14 + Long.toHexString(Double.doubleToRawLongBits(Float.POSITIVE_INFINITY))); in test_printNarrowing()
16 + Long.toHexString(Double.doubleToRawLongBits(Float.NEGATIVE_INFINITY))); in test_printNarrowing()
18 + Long.toHexString(Double.doubleToRawLongBits(Double.NaN))); in test_printNarrowing()
20 + Long.toHexString(Double.doubleToRawLongBits(Float.NaN))); in test_printNarrowing()
24 + (Long.toHexString((byte)dbl2).equals("0") ? "00" : Long.toHexString((byte)dbl2) in test_printNarrowing()
33 + (Long.toHexString((long)dbl2).equals("0") ? "0000000000000000" : Long in test_printNarrowing()
38 + (Long.toHexString((byte)fl2).equals("0") ? "00" : Long.toHexString((byte)fl2) in test_printNarrowing()
47 + (Long.toHexString((long)fl2).equals("0") ? "0000000000000000" : Long in test_printNarrowing()
[all …]
/art/test/561-divrem/src/
DMain.java61 assertEquals(1L, $noinline$divLong(Long.MIN_VALUE)); in main()
62 assertEquals(0L, $noinline$remLong(Long.MIN_VALUE)); in main()
64 assertEquals(0L, $noinline$divLong(Long.MAX_VALUE)); in main()
65 assertEquals(Long.MAX_VALUE, $noinline$remLong(Long.MAX_VALUE)); in main()
67 assertEquals(0L, $noinline$divLong(Long.MAX_VALUE - 1)); in main()
68 assertEquals(Long.MAX_VALUE - 1, $noinline$remLong(Long.MAX_VALUE - 1)); in main()
71 assertEquals(Long.MIN_VALUE + 1, $noinline$remLong(Long.MIN_VALUE + 1)); in main()
92 return value / Long.MIN_VALUE; in $noinline$divLong()
99 return value % Long.MIN_VALUE; in $noinline$remLong()
/art/test/950-redefine-intrinsic/src/
DMain.java434 doCommonClassRedefinition(Long.class, CLASS_BYTES, DEX_BYTES);
437 l2l("highestOneBit", Long::highestOneBit, RedefinedLongIntrinsics::highestOneBit),
438 l2l("lowestOneBit", Long::lowestOneBit, RedefinedLongIntrinsics::lowestOneBit),
440 Long::numberOfLeadingZeros,
443 Long::numberOfTrailingZeros,
445 l2i("bitCount", Long::bitCount, RedefinedLongIntrinsics::bitCount),
446 li2l("rotateLeft", r, Long::rotateLeft, RedefinedLongIntrinsics::rotateLeft),
447 li2l("rotateRight", r, Long::rotateRight, RedefinedLongIntrinsics::rotateRight),
448 l2l("reverse", Long::reverse, RedefinedLongIntrinsics::reverse),
449 l2i("signum", Long::signum, RedefinedLongIntrinsics::signum),
[all …]
/art/test/411-optimizing-arith/src/
DRemTest.java76 expectEquals(0L, $opt$Rem(Long.MAX_VALUE, 1L)); in remLong()
77 expectEquals(0L, $opt$Rem(Long.MAX_VALUE, -1L)); in remLong()
78 expectEquals(0L, $opt$Rem(Long.MIN_VALUE, 1L)); in remLong()
79 expectEquals(0L, $opt$Rem(Long.MIN_VALUE, -1L)); // no overflow in remLong()
80 expectEquals(-1L, $opt$Rem(Long.MIN_VALUE, Long.MAX_VALUE)); in remLong()
81 expectEquals(Long.MAX_VALUE, $opt$Rem(Long.MAX_VALUE, Long.MIN_VALUE)); in remLong()
84 expectEquals(0L, $opt$Rem(0L, Long.MAX_VALUE)); in remLong()
85 expectEquals(0L, $opt$Rem(0L, Long.MIN_VALUE)); in remLong()
90 expectDivisionByZero(Long.MAX_VALUE); in remLong()
91 expectDivisionByZero(Long.MIN_VALUE); in remLong()
[all …]
DShiftsTest.java86 expectEquals(Long.MIN_VALUE, $opt$ShlLong(1L, 63)); // overflow in testShlLong()
93 expectEquals(Long.MIN_VALUE, $opt$ShlLong(1L, -1)); // -1 & 0x3f = 63 in testShlLong()
98 expectEquals(Long.MIN_VALUE, $opt$ShlLong(7L, Integer.MAX_VALUE)); in testShlLong()
156 expectEquals(0L, $opt$ShrLong(Long.MAX_VALUE, 63)); in testShrLong()
157 expectEquals(-1L, $opt$ShrLong(Long.MIN_VALUE, 63)); in testShrLong()
163 expectEquals(-1L, $opt$ShrLong(Long.MIN_VALUE, -1)); // -1 & 0x3f = 63 in testShrLong()
220 expectEquals(0L, $opt$UShrLong(Long.MAX_VALUE, 63)); in testUShrLong()
221 expectEquals(1L, $opt$UShrLong(Long.MIN_VALUE, 63)); in testUShrLong()
227 expectEquals(1L, $opt$UShrLong(Long.MIN_VALUE, -1)); // -1 & 0x3f = 63 in testUShrLong()
231 expectEquals(4L, $opt$UShrLong(Long.MIN_VALUE, -3)); // -3 & 0x3f = 61 in testUShrLong()
/art/test/542-bitfield-rotates/src/
DMain.java87 assertLongEquals($noinline$rotate_long_right_reg_v_csubv(0x11, Long.SIZE - 1), 0x22); in test_Long_right_v_csubv()
88 assertLongEquals($noinline$rotate_long_right_reg_v_csubv(0x11, Long.SIZE), 0x11); in test_Long_right_v_csubv()
89 …assertLongEquals($noinline$rotate_long_right_reg_v_csubv(0x11, Long.SIZE + 1), 0x8000000000000008L… in test_Long_right_v_csubv()
92 …assertLongEquals($noinline$rotate_long_right_reg_v_csubv(0x11, -(Long.SIZE - 1)), 0x80000000000000… in test_Long_right_v_csubv()
93 assertLongEquals($noinline$rotate_long_right_reg_v_csubv(0x11, -Long.SIZE), 0x11); in test_Long_right_v_csubv()
94 assertLongEquals($noinline$rotate_long_right_reg_v_csubv(0x11, -(Long.SIZE + 1)), 0x22); in test_Long_right_v_csubv()
133 …assertLongEquals($noinline$rotate_long_left_reg_csubv_v(0x11, Long.SIZE - 1), 0x8000000000000008L); in test_Long_left_csubv_v()
134 assertLongEquals($noinline$rotate_long_left_reg_csubv_v(0x11, Long.SIZE), 0x11); in test_Long_left_csubv_v()
135 assertLongEquals($noinline$rotate_long_left_reg_csubv_v(0x11, Long.SIZE + 1), 0x22); in test_Long_left_csubv_v()
138 assertLongEquals($noinline$rotate_long_left_reg_csubv_v(0x11, -(Long.SIZE - 1)), 0x22); in test_Long_left_csubv_v()
[all …]
/art/test/082-inline-execute/src/
DMain.java479 Assert.assertEquals(Math.abs(Long.MAX_VALUE), Long.MAX_VALUE);
480 Assert.assertEquals(Math.abs(Long.MIN_VALUE), Long.MIN_VALUE);
481 Assert.assertEquals(Math.abs(Long.MIN_VALUE - 1), Long.MAX_VALUE);
510 Assert.assertEquals(Math.min(0L, Long.MAX_VALUE), 0L);
511 Assert.assertEquals(Math.min(Long.MIN_VALUE, 0L), Long.MIN_VALUE);
512 Assert.assertEquals(Math.min(Long.MIN_VALUE, Long.MAX_VALUE), Long.MIN_VALUE);
520 Assert.assertEquals(Math.max(0L, Long.MAX_VALUE), Long.MAX_VALUE);
521 Assert.assertEquals(Math.max(Long.MIN_VALUE, 0L), 0L);
522 Assert.assertEquals(Math.max(Long.MIN_VALUE, Long.MAX_VALUE), Long.MAX_VALUE);
832 Assert.assertEquals(Math.round(Long.MAX_VALUE + 1.0d), Long.MAX_VALUE);
[all …]
/art/test/411-checker-hdiv-hrem-pow2/src/
DRemTest.java207 expectEquals(1L, $noinline$LongMod2(Long.MAX_VALUE)); in remLong()
208 expectEquals(0L, $noinline$LongMod2(Long.MIN_VALUE)); in remLong()
222 expectEquals(1L, $noinline$LongModMinus2(Long.MAX_VALUE)); in remLong()
223 expectEquals(0L, $noinline$LongModMinus2(Long.MIN_VALUE)); in remLong()
236 expectEquals(15L, $noinline$LongMod16(Long.MAX_VALUE)); in remLong()
237 expectEquals(0L, $noinline$LongMod16(Long.MIN_VALUE)); in remLong()
250 expectEquals(15L, $noinline$LongModMinus16(Long.MAX_VALUE)); in remLong()
251 expectEquals(0L, $noinline$LongModMinus16(Long.MIN_VALUE)); in remLong()
255 expectEquals(0L, $noinline$LongModLongMin(Long.MIN_VALUE)); in remLong()
262 expectEquals(Long.MAX_VALUE, $noinline$LongModLongMin(Long.MAX_VALUE)); in remLong()
[all …]
DDivTest.java163 expectEquals(0x3fffffffffffffffL, $noinline$LongDivBy2(Long.MAX_VALUE)); in divLong()
164 expectEquals(0xc000000000000000L, $noinline$LongDivBy2(Long.MIN_VALUE)); in divLong()
181 expectEquals(0xc000000000000001L, $noinline$LongDivByMinus2(Long.MAX_VALUE)); in divLong()
182 expectEquals(0x4000000000000000L, $noinline$LongDivByMinus2(Long.MIN_VALUE)); in divLong()
191 expectEquals(0x07ffffffffffffffL, $noinline$LongDivBy16(Long.MAX_VALUE)); in divLong()
192 expectEquals(0xf800000000000000L, $noinline$LongDivBy16(Long.MIN_VALUE)); in divLong()
201 expectEquals(0xf800000000000001L, $noinline$LongDivByMinus16(Long.MAX_VALUE)); in divLong()
202 expectEquals(0x0800000000000000L, $noinline$LongDivByMinus16(Long.MIN_VALUE)); in divLong()
207 expectEquals(1L, $noinline$LongDivByLongMin(Long.MIN_VALUE)); in divLong()
208 expectEquals(0L, $noinline$LongDivByLongMin(Long.MAX_VALUE)); in divLong()
[all …]
/art/test/988-method-trace/src/art/
DTest988Intrinsics.java37 java.lang.Long.class.toString(); in initialize()
69 java.lang.Long.reverse(0L); in test()
70 java.lang.Long.reverseBytes(0L); in test()
71 java.lang.Long.bitCount(0L); in test()
72 java.lang.Long.compare(0L, 0L); in test()
73 java.lang.Long.highestOneBit(0L); in test()
74 java.lang.Long.lowestOneBit(0L); in test()
75 java.lang.Long.numberOfLeadingZeros(0L); in test()
76 java.lang.Long.numberOfTrailingZeros(0L); in test()
77 java.lang.Long.rotateRight(0L, 0); in test()
[all …]
/art/test/701-easy-div-rem/
Dexpected.txt5 Long: checking some equally spaced dividends...
6 Long: checking small dividends...
7 Long: checking big dividends...
/art/test/566-checker-signum/src-art/
DMain.java93 return Long.signum(x); in signLong()
148 expectEquals(-1, signLong(Long.MIN_VALUE)); in testSignLong()
154 expectEquals(1, signLong(Long.MAX_VALUE)); in testSignLong()
170 for (long i = Long.MIN_VALUE; i <= Long.MIN_VALUE + 11L; i++) { in testSignLong()
174 for (long i = Long.MAX_VALUE; i >= Long.MAX_VALUE - 11L; i--) { in testSignLong()
/art/test/006-args/src/
DArgsTest.java34 System.out.println("VALUES: " + Long.toHexString(mLongArray[0]) + " " in argTest()
35 + Long.toHexString(mLongArray[1]) + " " + Long.toHexString(j)); in argTest()
/art/test/432-optimizing-cmp/src/
DMain.java30 expectLt(Long.MIN_VALUE, Long.MAX_VALUE); in cmpLong()
31 expectGt(Long.MAX_VALUE, Long.MIN_VALUE); in cmpLong()
37 expectEquals(-1, smaliCmpLong(Long.MIN_VALUE, Long.MAX_VALUE)); in cmpLong()
38 expectEquals(1, smaliCmpLong(Long.MAX_VALUE, Long.MIN_VALUE)); in cmpLong()
39 expectEquals(0, smaliCmpLong(Long.MIN_VALUE, Long.MIN_VALUE)); in cmpLong()
40 expectEquals(0, smaliCmpLong(Long.MAX_VALUE, Long.MAX_VALUE)); in cmpLong()
/art/test/952-invoke-custom/src/
DTestReturnValues.java147 return Long.MIN_VALUE; in passThroughCallSite()
264 long[] values = {Long.MIN_VALUE, Long.MAX_VALUE, (long) Long.SIZE, (long) -Long.SIZE}; in testLongReturnValues()
293 long l = Long.MIN_VALUE; in testVoidReturnValues()
296 assertEquals(Long.MIN_VALUE, l); in testVoidReturnValues()
299 l = Long.MAX_VALUE; in testVoidReturnValues()
302 assertEquals(Long.MAX_VALUE, l); in testVoidReturnValues()
/art/test/631-checker-fp-abs/src/
DMain.java134 dpnans[i] & Long.MAX_VALUE, in main()
165 throw new Error("Expected: 0x" + Long.toHexString(expected) in expectEquals64()
166 + ", found: 0x" + Long.toHexString(result)); in expectEquals64()
176 if (expected == (result & Long.MAX_VALUE)) { in expectEqualsNaN64()
180 throw new Error("Expected: 0x" + Long.toHexString(expected) in expectEqualsNaN64()
181 + ", found: 0x" + Long.toHexString(result)); in expectEqualsNaN64()
/art/test/044-proxy/src/
DReturnsAndArgPassing.java157 myHandler.returnType = Long.class; in testProxyReturns()
158 check(proxyMyInterface.longFoo() == Long.MAX_VALUE); in testProxyReturns()
162 check(proxyMyInterface.longBar() == Long.MIN_VALUE); in testProxyReturns()
352 myHandler.returnType = Long.class; // Long -> byte == fail in testProxyReturns()
447 check((Integer)proxyMyInterface.selectArg(0, Integer.MAX_VALUE, Long.MAX_VALUE, in testProxyArgPassing()
449 check((Integer)proxyMyInterface.selectArg(1, Integer.MAX_VALUE, Long.MAX_VALUE, in testProxyArgPassing()
451 check((Long)proxyMyInterface.selectArg(2, Integer.MAX_VALUE, Long.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()
455 check((Double)proxyMyInterface.selectArg(4, Integer.MAX_VALUE, Long.MAX_VALUE, in testProxyArgPassing()
[all …]
/art/test/712-varhandle-invocations/src/
DSampleValues.java51 public static final Long[] LONGS =
52 new Long[] {-0x0123456789abcdefl, 0x789abcdef0123456l, 0xfedcba9876543210l};
110 public static Long get_Long(int index) { in get_Long()
/art/test/454-get-vreg/src/
DMain.java46 if (rm.testPairVReg(Long.MIN_VALUE, Long.MAX_VALUE, 0, 2.0) != 44) { in main()
/art/test/438-volatile/src/
DMain.java23 checkVolatileUpdate(Long.MAX_VALUE); in main()
24 checkVolatileUpdate(Long.MIN_VALUE); in main()
/art/test/302-float-conversion/src/
DMain.java38 if (sumInf == Long.MIN_VALUE) { in test1()
60 double d = Long.MAX_VALUE; in test3()
/art/test/567-checker-compare/src/
DMain.java136 return Long.compare(x, y); in compareLongs()
466 expectEquals(-1, compareLongs(Long.MIN_VALUE, Long.MIN_VALUE + 1L)); in testCompareLongs()
467 expectEquals(-1, compareLongs(Long.MIN_VALUE, -1L)); in testCompareLongs()
468 expectEquals(-1, compareLongs(Long.MIN_VALUE, 0L)); in testCompareLongs()
469 expectEquals(-1, compareLongs(Long.MIN_VALUE, 1L)); in testCompareLongs()
470 expectEquals(-1, compareLongs(Long.MIN_VALUE, Long.MAX_VALUE)); in testCompareLongs()
475 expectEquals(0, compareLongs(Long.MIN_VALUE, Long.MIN_VALUE)); in testCompareLongs()
479 expectEquals(0, compareLongs(Long.MAX_VALUE, Long.MAX_VALUE)); in testCompareLongs()
484 expectEquals(1, compareLongs(Long.MAX_VALUE, Long.MIN_VALUE)); in testCompareLongs()
485 expectEquals(1, compareLongs(Long.MAX_VALUE, -1L)); in testCompareLongs()
[all …]
/art/test/955-methodhandles-smali/smali/
DMain.smali69 # Returns a method handle to boolean java.lang.Long.compareTo(java.lang.Long other).
72 new-instance v0, Ljava/lang/Long;
74 invoke-direct {v0, v1, v2}, Ljava/lang/Long;-><init>(J)V
81 # Call MethodType.methodType(rtype=int.class, ptype[0] = Long.class)
86 # Call Main.getHandleForVirtual(Long.class, "compareTo", methodType);
119 # set v0 to Long.TYPE aka. long.class
120 sget-object v0, Ljava/lang/Long;->TYPE:Ljava/lang/Class;
127 # Call MethodType.methodType(rtype=String.class, ptype[0]=Long.class)
192 # Then use a java/lang/Long; - should perform an unboxing conversion.
193 new-instance v1, Ljava/lang/Long;
[all …]

12345678