Home
last modified time | relevance | path

Searched refs:assertIntEquals (Results 1 – 25 of 27) sorted by relevance

12

/art/test/458-checker-instruct-simplification/src/
DMain.java27 public static void assertIntEquals(int expected, int result) { in assertIntEquals() method in Main
2545 assertIntEquals(5, $noinline$AddAddSubAddConst(1)); in main()
2546 assertIntEquals(arg, $noinline$AndAllOnes(arg)); in main()
2548 assertIntEquals(-arg, $noinline$DivN1(arg)); in main()
2550 assertIntEquals(-arg, $noinline$MulN1(arg)); in main()
2553 assertIntEquals(arg, $noinline$Or0(arg)); in main()
2555 assertIntEquals(arg, $noinline$Shl0(arg)); in main()
2559 assertIntEquals(-arg, $noinline$SubAliasNeg(arg)); in main()
2560 assertIntEquals(9, $noinline$SubAddConst1(2)); in main()
2561 assertIntEquals(-2, $noinline$SubAddConst2(3)); in main()
[all …]
/art/test/463-checker-boolean-simplifier/src-art/
DMain.java31 public static void assertIntEquals(int expected, int result) { in assertIntEquals() method in Main
252 assertIntEquals(42, (int)negatedCondition.invoke(null, true)); in main()
253 assertIntEquals(43, (int)negatedCondition.invoke(null, false)); in main()
254 assertIntEquals(46, SimpleTrueBlock(true, 4)); in main()
255 assertIntEquals(43, SimpleTrueBlock(false, 4)); in main()
256 assertIntEquals(42, SimpleFalseBlock(true, 7)); in main()
257 assertIntEquals(50, SimpleFalseBlock(false, 7)); in main()
258 assertIntEquals(48, SimpleBothBlocks(true, 6, 2)); in main()
259 assertIntEquals(45, SimpleBothBlocks(false, 6, 2)); in main()
260 assertIntEquals(1, ThreeBlocks(true, true)); in main()
[all …]
/art/test/542-bitfield-rotates/src/
DMain.java19 public static void assertIntEquals(int expected, int actual) { in assertIntEquals() method in Main
61 assertIntEquals($noinline$rotate_int_right_reg_v_csubv(0x11, 0), 0x11); in test_Integer_right_v_csubv()
63 assertIntEquals($noinline$rotate_int_right_reg_v_csubv(0x11, 1), 0x80000008); in test_Integer_right_v_csubv()
64 assertIntEquals($noinline$rotate_int_right_reg_v_csubv(0x11, Integer.SIZE - 1), 0x22); in test_Integer_right_v_csubv()
65 assertIntEquals($noinline$rotate_int_right_reg_v_csubv(0x11, Integer.SIZE), 0x11); in test_Integer_right_v_csubv()
66 assertIntEquals($noinline$rotate_int_right_reg_v_csubv(0x11, Integer.SIZE + 1), 0x80000008); in test_Integer_right_v_csubv()
68 assertIntEquals($noinline$rotate_int_right_reg_v_csubv(0x11, -1), 0x22); in test_Integer_right_v_csubv()
69 assertIntEquals($noinline$rotate_int_right_reg_v_csubv(0x11, -(Integer.SIZE - 1)), 0x80000008); in test_Integer_right_v_csubv()
70 assertIntEquals($noinline$rotate_int_right_reg_v_csubv(0x11, -Integer.SIZE), 0x11); in test_Integer_right_v_csubv()
71 assertIntEquals($noinline$rotate_int_right_reg_v_csubv(0x11, -(Integer.SIZE + 1)), 0x22); in test_Integer_right_v_csubv()
[all …]
/art/test/530-checker-lse/src/
DMain.java1138 static void assertIntEquals(int result, int expected) { in assertIntEquals() method in Main
1166 assertIntEquals(test1(new TestClass(), new TestClass()), 3); in main()
1167 assertIntEquals(test2(new TestClass()), 1); in main()
1171 assertIntEquals(test3(obj1), 10); in main()
1172 assertIntEquals((int)test4.invoke(null, new TestClass(), true), 1); in main()
1173 assertIntEquals((int)test4.invoke(null, new TestClass(), false), 1); in main()
1174 assertIntEquals((int)test5.invoke(null, new TestClass(), true), 1); in main()
1175 assertIntEquals((int)test5.invoke(null, new TestClass(), false), 2); in main()
1176 assertIntEquals(test6(new TestClass(), new TestClass(), true), 4); in main()
1177 assertIntEquals(test6(new TestClass(), new TestClass(), false), 2); in main()
[all …]
/art/test/442-checker-constant-folding/src/
DMain.java30 public static void assertIntEquals(int expected, int result) { in assertIntEquals() method in Main
1569 assertIntEquals(-42, IntNegation()); in main()
1574 assertIntEquals(3, IntAddition1()); in main()
1575 assertIntEquals(14, IntAddition2()); in main()
1576 assertIntEquals(14, smaliIntAddition2()); in main()
1577 assertIntEquals(14, smaliIntAddition2AddAndMove()); in main()
1582 assertIntEquals(4, IntSubtraction()); in main()
1587 assertIntEquals(21, IntMultiplication()); in main()
1592 assertIntEquals(2, IntDivision()); in main()
1597 assertIntEquals(2, IntRemainder()); in main()
[all …]
/art/test/622-simplifyifs-exception-edges/src/
DMain.java24 assertIntEquals(-2, (int)test.invoke(null, new Object[] { null })); in main()
25 assertIntEquals(-1, (int)test.invoke(null, new Object[] { new int[0] })); in main()
26 assertIntEquals(42, (int)test.invoke(null, new Object[] { new int[] { 42 } })); in main()
29 assertIntEquals(-2, (int)test2.invoke(null, new Object[] { null, 0 })); in main()
30 assertIntEquals(-1, (int)test2.invoke(null, new Object[] { new int[0], 0 })); in main()
31 assertIntEquals(-1, (int)test2.invoke(null, new Object[] { new int[0], 1 })); in main()
32 assertIntEquals(3, (int)test2.invoke(null, new Object[] { new int[] { 42 }, 0 })); in main()
35 public static void assertIntEquals(int expected, int result) { in assertIntEquals() method in Main
/art/test/565-checker-doublenegbitwise/src/
DMain.java24 public static void assertIntEquals(int expected, int result) { in assertIntEquals() method in Main
56 assertIntEquals(~0xff, $noinline$runSmaliTest("$opt$noinline$andToOrV2", int.class, 0xf, 0xff)); in main()
57 assertIntEquals(~0xff, $noinline$runSmaliTest("$opt$noinline$andToOr", int.class, 0xf, 0xff)); in main()
64assertIntEquals(-1, $noinline$runSmaliTest("$opt$noinline$regressInputsAwayV2", int.class, 0xf, 0x… in main()
65assertIntEquals(-1, $noinline$runSmaliTest("$opt$noinline$regressInputsAway", int.class, 0xf, 0xff… in main()
66assertIntEquals(0xf0, $noinline$runSmaliTest("$opt$noinline$notXorToXorV2", int.class, 0xf, 0xff)); in main()
67assertIntEquals(0xf0, $noinline$runSmaliTest("$opt$noinline$notXorToXor", int.class, 0xf, 0xff)); in main()
70assertIntEquals(~0xff, $noinline$runSmaliTest("$opt$noinline$notMultipleUsesV2", int.class, 0xf, 0… in main()
71assertIntEquals(~0xff, $noinline$runSmaliTest("$opt$noinline$notMultipleUses", int.class, 0xf, 0xf… in main()
/art/test/527-checker-array-access-split/src/
DMain.java19 public static void assertIntEquals(int expected, int result) { in assertIntEquals() method in Main
649 assertIntEquals(456, constantIndexGet(array)); in main()
652 assertIntEquals(2, array[1]); in main()
654 assertIntEquals(789, get(array, 2)); in main()
657 assertIntEquals(456, array[1]); in main()
660 assertIntEquals(124, array[0]); in main()
663 assertIntEquals(125, array[0]); in main()
665 assertIntEquals(6, canMergeAfterBCE1()); in main()
666 assertIntEquals(2097152, canMergeAfterBCE2()); in main()
668 assertIntEquals(18, checkLongFloatDouble()); in main()
[all …]
/art/test/551-checker-shifter-operand/src/
DMain.java40 public static void assertIntEquals(int expected, int result) { in assertIntEquals() method in Main
275 assertIntEquals((a | $noinline$IntShr(b, 6)) | (a | $noinline$intToChar(b)), in $opt$noinline$testOr()
317 assertIntEquals(-$noinline$IntShl(a, 8) | -$noinline$intToShort(a), in $opt$noinline$testNeg()
341 assertIntEquals(a + $noinline$byteToChar (b), a + (char)b); in $opt$validateExtendByteInt1()
343 assertIntEquals(a + $noinline$byteToShort(b), a + (short)b); in $opt$validateExtendByteInt1()
354 assertIntEquals (a + $noinline$byteToInt (b), a + (int)b); in $opt$validateExtendByteInt2()
415 assertIntEquals(a + $noinline$charToByte (b), a + (byte)b); in $opt$validateExtendCharInt1()
416 assertIntEquals(a + $noinline$charToShort(b), a + (short)b); in $opt$validateExtendCharInt1()
427 assertIntEquals (a + $noinline$charToInt (b), a + (int)b); in $opt$validateExtendCharInt2()
487 assertIntEquals(a + $noinline$shortToByte (b), a + (byte)b); in $opt$validateExtendShortInt1()
[all …]
/art/test/552-checker-sharpening/src/
DMain.java19 public static void assertIntEquals(int expected, int result) { in assertIntEquals() method in Main
209 assertIntEquals(1, testSimple(1)); in main()
210 assertIntEquals(1, testDiamond(false, 1)); in main()
211 assertIntEquals(-1, testDiamond(true, 1)); in main()
212 assertIntEquals(3, testLoop(new int[]{ 2 }, 1)); in main()
213 assertIntEquals(8, testLoop(new int[]{ 3, 4 }, 1)); in main()
214 assertIntEquals(1, testLoopWithDiamond(null, false, 1)); in main()
215 assertIntEquals(3, testLoopWithDiamond(new int[]{ 2 }, false, 1)); in main()
216 assertIntEquals(-6, testLoopWithDiamond(new int[]{ 3, 4 }, true, 1)); in main()
/art/test/557-checker-instruct-simplifier-ror/src/
DMain.java19 public static void assertIntEquals(int expected, int actual) { in assertIntEquals() method in Main
636 assertIntEquals(2, ror_int_constant_c_c(8)); in main()
637 assertIntEquals(2, ror_int_constant_c_c_0(8)); in main()
640 assertIntEquals(2, ror_int_constant_c_negc(8)); in main()
643 assertIntEquals(2, ror_int_reg_v_csubv(8, 2)); in main()
646 assertIntEquals(2, ror_int_subv_csubv(8, 2, 0)); in main()
647 assertIntEquals(32, ror_int_subv_csubv_env(8, 2, 0)); in main()
648 assertIntEquals(32, rol_int_csubv_subv(8, 2, 0)); in main()
650 assertIntEquals(32, rol_int_reg_csubv_v(8, 2)); in main()
653 assertIntEquals(2, ror_int_reg_v_negv(8, 2)); in main()
[all …]
/art/test/564-checker-negbitwise/src/
DMain.java22 public static void assertIntEquals(int expected, int result) { in assertIntEquals() method in Main
293 assertIntEquals(0xe, $opt$noinline$notAnd(0xf, 0x1)); in main()
295 assertIntEquals(~0xe, $opt$noinline$notXor(0xf, 0x1)); in main()
296 assertIntEquals(0xe, $opt$noinline$notAndConstant(0x1)); in main()
297 assertIntEquals(0xe, $opt$noinline$notAndMultipleUses(0xf, 0x1)); in main()
298 assertIntEquals(~0x1, $opt$noinline$deMorganOr(0x3, 0x1)); in main()
/art/test/480-checker-dead-blocks/src/
DMain.java20 public static void assertIntEquals(int expected, int result) { in assertIntEquals() method in Main
149 assertIntEquals(7, testTrueBranch(4, 3)); in main()
150 assertIntEquals(1, testFalseBranch(4, 3)); in main()
151 assertIntEquals(42, testRemoveLoop(42)); in main()
152 assertIntEquals(23, testUpdateLoopInformation(23)); in main()
153 assertIntEquals(12, testRemoveSuspendCheck(12, 5)); in main()
/art/test/422-type-conversion/src/
DMain.java33 public static void assertIntEquals(int expected, int result) { in assertIntEquals() method in Main
280 assertIntEquals(1, $opt$noinline$LongToInt(1L)); in longToInt()
281 assertIntEquals(0, $opt$noinline$LongToInt(0L)); in longToInt()
282 assertIntEquals(-1, $opt$noinline$LongToInt(-1L)); in longToInt()
283 assertIntEquals(51, $opt$noinline$LongToInt(51L)); in longToInt()
284 assertIntEquals(-51, $opt$noinline$LongToInt(-51L)); in longToInt()
285 assertIntEquals(2147483647, $opt$noinline$LongToInt(2147483647L)); // 2^31 - 1 in longToInt()
286 assertIntEquals(-2147483647, $opt$noinline$LongToInt(-2147483647L)); // -(2^31 - 1) in longToInt()
287 assertIntEquals(-2147483648, $opt$noinline$LongToInt(-2147483648L)); // -(2^31) in longToInt()
288 assertIntEquals(-2147483648, $opt$noinline$LongToInt(2147483648L)); // (2^31) in longToInt()
[all …]
/art/test/538-checker-embed-constants/src/
DMain.java19 public static void assertIntEquals(int expected, int result) { in assertIntEquals() method in Main
659 assertIntEquals(and254(arg), 0x20); in main()
660 assertIntEquals(and255(arg), 0x21); in main()
661 assertIntEquals(and511(arg), 0x121); in main()
662 assertIntEquals(andF00D(arg), 0x4001); in main()
663 assertIntEquals(andNot15(arg), 0x87654320); in main()
664 assertIntEquals(or255(arg), 0x876543ff); in main()
665 assertIntEquals(or511(arg), 0x876543ff); in main()
666 assertIntEquals(orNot15(arg), 0xfffffff1); in main()
667 assertIntEquals(xor255(arg), 0x876543de); in main()
[all …]
/art/test/521-regression-integer-field-set/src/
DMain.java18 public static void assertIntEquals(int expected, int result) { in assertIntEquals() method in Main
28 assertIntEquals(123456, m.i); in main()
31 assertIntEquals(456789, s); in main()
/art/test/478-checker-inliner-nested-loop/src/
DMain.java20 public static void assertIntEquals(int expected, int result) { in assertIntEquals() method in Main
54 assertIntEquals(0, NestedLoop(1, 1)); in main()
55 assertIntEquals(3, NestedLoop(2, 3)); in main()
/art/test/550-checker-multiply-accumulate/src/
DMain.java22 public static void assertIntEquals(int expected, int result) { in assertIntEquals() method in Main
571 assertIntEquals(-60608250, calcArraySum(array2)); in testSimdMultiplyAccumulate()
581 assertIntEquals(61607250, calcArraySum(array2)); in testSimdMultiplyAccumulate()
590 assertIntEquals(7, $opt$noinline$mulAdd(1, 2, 3)); in main()
592 assertIntEquals(79, $opt$noinline$multipleUses1(7, 8, 9)); in main()
594 assertIntEquals(195, $opt$noinline$mulPlusOne(13, 14)); in main()
596 assertIntEquals(-306, $opt$noinline$mulNeg(17, 18)); in main()
/art/test/566-checker-codegen-select/src/
DMain.java75 assertIntEquals(5, m.$noinline$intSelect_Constant(4)); in main()
76 assertIntEquals(7, m.$noinline$intSelect_Constant(2)); in main()
79 public static void assertIntEquals(int expected, int actual) { in assertIntEquals() method in Main
/art/test/552-checker-x86-avx2-bit-manipulation/src/
DMain.java19 public static void assertIntEquals(int expected, int result) { in assertIntEquals() method in Main
217 assertIntEquals(0,and_not_32(x,y)); in main()
219 assertIntEquals(-20502606, reset_lowest_set_bit_32(x)); in main()
222 assertIntEquals(1, get_mask_lowest_set_bit_32(y)); in main()
/art/test/536-checker-intrinsic-optimization/src/
DMain.java22 public static void assertIntEquals(int expected, int result) { in assertIntEquals() method in Main
50 assertIntEquals(0, $opt$noinline$getStringLength("")); in main()
51 assertIntEquals(3, $opt$noinline$getStringLength("abc")); in main()
52 assertIntEquals(10, $opt$noinline$getStringLength("0123456789")); in main()
91 assertIntEquals('a' + 'b' + 'c', $opt$noinline$stringSumChars("abc")); in main()
92 assertIntEquals('a' + 'b' + 'c', $opt$noinline$stringSumLeadingChars("abcdef", 3)); in main()
101 assertIntEquals('a' + 'b' + 'c' + 'd', $opt$noinline$stringSum4LeadingChars("abcdef")); in main()
/art/test/526-checker-caller-callee-regs/src/
DMain.java19 public static void assertIntEquals(int expected, int result) { in assertIntEquals() method in Main
87 assertIntEquals($opt$LiveInCall(arg), arg); in main()
/art/test/478-checker-inline-noreturn/src/
DMain.java27 public static void assertIntEquals(int expected, int result) { in assertIntEquals() method in Main
58 assertIntEquals(42, callerLoop(1, 1)); in main()
/art/test/711-checker-type-conversion/src/
DMain.java31 public static void assertIntEquals(int expected, int result) { in assertIntEquals() method in Main
244 assertIntEquals(intArr[0], -1); in main()
250 assertIntEquals(intArr[0], 0xffff); in main()
256 assertIntEquals(intArr[0], -1); in main()
/art/test/594-load-string-regression/src/
DMain.java59 assertIntEquals(0x12345678 ^ (0x12345678 >> 5), $noinline$test()); in main()
62 public static void assertIntEquals(int expected, int result) { in assertIntEquals() method in Main

12