Home
last modified time | relevance | path

Searched refs:assertLongEquals (Results 1 – 14 of 14) sorted by relevance

/art/test/538-checker-embed-constants/src/
DMain.java25 public static void assertLongEquals(long expected, long result) { in assertLongEquals() method in Main
672 assertLongEquals(and255(longArg), 0x21L); in main()
673 assertLongEquals(and511(longArg), 0x121L); in main()
674 assertLongEquals(andF00D(longArg), 0x4001L); in main()
675 assertLongEquals(andNot15(longArg), 0x1234567887654320L); in main()
676 assertLongEquals(and0xfffffff00000000f(longArg), 0x1234567000000001L); in main()
677 assertLongEquals(or255(longArg), 0x12345678876543ffL); in main()
678 assertLongEquals(or511(longArg), 0x12345678876543ffL); in main()
679 assertLongEquals(orNot15(longArg), 0xfffffffffffffff1L); in main()
680 assertLongEquals(or0xfffffff00000000f(longArg), 0xfffffff88765432fL); in main()
[all …]
/art/test/542-bitfield-rotates/src/
DMain.java25 public static void assertLongEquals(long expected, long actual) { in assertLongEquals() method in Main
84 assertLongEquals($noinline$rotate_long_right_reg_v_csubv(0x11, 0), 0x11); in test_Long_right_v_csubv()
86 assertLongEquals($noinline$rotate_long_right_reg_v_csubv(0x11, 1), 0x8000000000000008L); in test_Long_right_v_csubv()
87 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()
89assertLongEquals($noinline$rotate_long_right_reg_v_csubv(0x11, Long.SIZE + 1), 0x8000000000000008L… in test_Long_right_v_csubv()
91 assertLongEquals($noinline$rotate_long_right_reg_v_csubv(0x11, -1), 0x22); in test_Long_right_v_csubv()
92assertLongEquals($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()
[all …]
/art/test/422-type-conversion/src/
DMain.java39 public static void assertLongEquals(long expected, long result) { in assertLongEquals() method in Main
141 assertLongEquals(1L, $opt$noinline$ByteToLong((byte)1)); in byteToLong()
142 assertLongEquals(0L, $opt$noinline$ByteToLong((byte)0)); in byteToLong()
143 assertLongEquals(-1L, $opt$noinline$ByteToLong((byte)-1)); in byteToLong()
144 assertLongEquals(51L, $opt$noinline$ByteToLong((byte)51)); in byteToLong()
145 assertLongEquals(-51L, $opt$noinline$ByteToLong((byte)-51)); in byteToLong()
146 assertLongEquals(127L, $opt$noinline$ByteToLong((byte)127)); // 2^7 - 1 in byteToLong()
147 assertLongEquals(-127L, $opt$noinline$ByteToLong((byte)-127)); // -(2^7 - 1) in byteToLong()
148 assertLongEquals(-128L, $opt$noinline$ByteToLong((byte)-128)); // -(2^7) in byteToLong()
152 assertLongEquals(1L, $opt$noinline$ShortToLong((short)1)); in shortToLong()
[all …]
/art/test/551-checker-shifter-operand/src/
DMain.java46 public static void assertLongEquals(long expected, long result) { in assertLongEquals() method in Main
251 assertLongEquals((a & $noinline$LongShl(b, 5)) | (a & $noinline$longToByte(b)), in $opt$noinline$testAnd()
299 assertLongEquals((a ^ $noinline$LongUshr(b, 7)) | (a ^ $noinline$longToInt(b)), in $opt$noinline$testXor()
356 assertLongEquals(a + $noinline$byteToLong(b), a + (long)b); in $opt$validateExtendByteInt2()
388 assertLongEquals(a + $noinline$byteToChar (b), a + (char)b); in $opt$validateExtendByteLong()
392 assertLongEquals(a + $noinline$byteToShort(b), a + (short)b); in $opt$validateExtendByteLong()
393 assertLongEquals(a + $noinline$byteToInt (b), a + (int)b); in $opt$validateExtendByteLong()
429 assertLongEquals(a + $noinline$charToLong(b), a + (long)b); in $opt$validateExtendCharInt2()
462 assertLongEquals(a + $noinline$charToByte (b), a + (byte)b); in $opt$validateExtendCharLong()
463 assertLongEquals(a + $noinline$charToShort(b), a + (short)b); in $opt$validateExtendCharLong()
[all …]
/art/test/442-checker-constant-folding/src/
DMain.java36 public static void assertLongEquals(long expected, long result) { in assertLongEquals() method in Main
1570 assertLongEquals(-42L, LongNegation()); in main()
1578 assertLongEquals(3L, LongAddition()); in main()
1583 assertLongEquals(4L, LongSubtraction()); in main()
1588 assertLongEquals(21L, LongMultiplication()); in main()
1593 assertLongEquals(2L, LongDivision()); in main()
1598 assertLongEquals(2L, LongRemainder()); in main()
1603 assertLongEquals(12L, ShlLongInt()); in main()
1606 assertLongEquals(2L, ShrLongInt()); in main()
1609 assertLongEquals(4611686018427387901L, UShrLongInt()); in main()
[all …]
/art/test/566-checker-codegen-select/src/
DMain.java71 assertLongEquals(5L, m.$noinline$longSelect(4L)); in main()
72 assertLongEquals(7L, m.$noinline$longSelect(2L)); in main()
73 assertLongEquals(5L, m.$noinline$longSelect_Constant(4L)); in main()
74 assertLongEquals(7L, m.$noinline$longSelect_Constant(2L)); in main()
85 public static void assertLongEquals(long expected, long actual) { in assertLongEquals() method in Main
/art/test/557-checker-instruct-simplifier-ror/src/
DMain.java25 public static void assertLongEquals(long expected, long actual) { in assertLongEquals() method in Main
638 assertLongEquals(2L, ror_long_constant_c_c(8L)); in main()
641 assertLongEquals(2L, ror_long_constant_c_negc(8L)); in main()
644 assertLongEquals(2L, ror_long_reg_v_csubv(8L, 2)); in main()
651 assertLongEquals(32L, rol_long_reg_csubv_v(8L, 2)); in main()
655 assertLongEquals(2L, ror_long_reg_v_negv(8L, 2)); in main()
658 assertLongEquals(32L, rol_long_reg_negv_v(8L, 2)); in main()
660 assertLongEquals(32L, rol_long_reg_v_negv_add(8L, 2)); in main()
661 assertLongEquals(32L, rol_long_reg_v_negv_xor(8L, 2)); in main()
/art/test/458-checker-instruct-simplification/src/
DMain.java33 public static void assertLongEquals(long expected, long result) { in assertLongEquals() method in Main
2544 assertLongEquals(arg, $noinline$Add0(arg)); in main()
2547 assertLongEquals(arg, $noinline$Div1(arg)); in main()
2549 assertLongEquals(arg, $noinline$Mul1(arg)); in main()
2551 assertLongEquals((128 * arg), $noinline$MulPowerOfTwo128(arg)); in main()
2552 assertLongEquals(2640, $noinline$MulMulMulConst(2)); in main()
2554 assertLongEquals(arg, $noinline$OrSame(arg)); in main()
2556 assertLongEquals(arg, $noinline$Shr0(arg)); in main()
2557 assertLongEquals(arg, $noinline$Shr64(arg)); in main()
2558 assertLongEquals(arg, $noinline$Sub0(arg)); in main()
[all …]
/art/test/552-checker-x86-avx2-bit-manipulation/src/
DMain.java25 public static void assertLongEquals(long expected, long result) { in assertLongEquals() method in Main
218 assertLongEquals(0L, and_not_64(a,b)); in main()
220 assertLongEquals(-20502606L, reset_lowest_set_bit_64(a)); in main()
221 assertLongEquals(-20502606L, reset_lowest_set_bit_64(b)); in main()
223 assertLongEquals(1L, get_mask_lowest_set_bit_64(b)); in main()
/art/test/550-checker-multiply-accumulate/src/
DMain.java28 public static void assertLongEquals(long expected, long result) { in assertLongEquals() method in Main
576 assertLongEquals(-60608250, calcArraySumLong(array4)); in testSimdMultiplyAccumulate()
586 assertLongEquals(61607250, calcArraySumLong(array4)); in testSimdMultiplyAccumulate()
591 assertLongEquals(-26, $opt$noinline$mulSub(4, 5, 6)); in main()
593 assertLongEquals(20, $opt$noinline$multipleUses2(10, 11, 12)); in main()
595 assertLongEquals(-225, $opt$noinline$mulMinusOne(15, 16)); in main()
597 assertLongEquals(-380, $opt$noinline$mulNeg(19, 20)); in main()
/art/test/565-checker-doublenegbitwise/src/
DMain.java30 public static void assertLongEquals(long expected, long result) { in assertLongEquals() method in Main
60assertLongEquals(~0xf, $noinline$runSmaliTest("$opt$noinline$orToAndV2", long.class, 0xfL, 0xffL)); in main()
61assertLongEquals(~0xf, $noinline$runSmaliTest("$opt$noinline$orToAnd", long.class, 0xfL, 0xffL)); in main()
/art/test/555-UnsafeGetLong-regression/src/
DMain.java21 private static void assertLongEquals(long expected, long result) { in assertLongEquals() method in Main
46 assertLongEquals(1122334455667788L, lvar); in testUnsafeGetLong()
/art/test/564-checker-negbitwise/src/
DMain.java28 public static void assertLongEquals(long expected, long result) { in assertLongEquals() method in Main
294 assertLongEquals(~0x0, $opt$noinline$notOr(0xf, 0x1)); in main()
/art/test/711-checker-type-conversion/src/
DMain.java37 public static void assertLongEquals(long expected, long result) { in assertLongEquals() method in Main