Home
last modified time | relevance | path

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

12

/art/test/530-checker-lse/src/
DMain.java4218 static void assertIntEquals(int result, int expected) { in assertIntEquals() method in Main
4238 assertIntEquals(test1(new TestClass(), new TestClass()), 3); in main()
4239 assertIntEquals(test2(new TestClass()), 1); in main()
4243 assertIntEquals(test3(obj1), 10); in main()
4244 assertIntEquals(test4(new TestClass(), true), 1); in main()
4245 assertIntEquals(test4(new TestClass(), false), 1); in main()
4246 assertIntEquals(test5(new TestClass(), true), 1); in main()
4247 assertIntEquals(test5(new TestClass(), false), 2); in main()
4248 assertIntEquals(test6(new TestClass(), new TestClass(), true), 4); in main()
4249 assertIntEquals(test6(new TestClass(), new TestClass(), false), 2); in main()
[all …]
/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/442-checker-constant-folding/src/
DMain.java30 public static void assertIntEquals(int expected, int result) { in assertIntEquals() method in Main
1586 assertIntEquals(-42, IntNegation()); in main()
1591 assertIntEquals(3, IntAddition1()); in main()
1592 assertIntEquals(14, IntAddition2()); in main()
1593 assertIntEquals(14, smaliIntAddition2()); in main()
1594 assertIntEquals(14, smaliIntAddition2AddAndMove()); in main()
1599 assertIntEquals(4, IntSubtraction()); in main()
1604 assertIntEquals(21, IntMultiplication()); in main()
1609 assertIntEquals(2, IntDivision()); in main()
1614 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/551-checker-shifter-operand/src/
DMain.java37 public static void assertIntEquals(int expected, int result) { in assertIntEquals() method in Main
267 assertIntEquals((a | $noinline$IntShr(b, 6)) | (a | $noinline$intToChar(b)), in $opt$noinline$testOr()
307 assertIntEquals(-$noinline$IntShl(a, 8) | -$noinline$intToShort(a), in $opt$noinline$testNeg()
331 assertIntEquals(a + $noinline$byteToChar (b), a + (char)b); in $opt$validateExtendByteInt1()
333 assertIntEquals(a + $noinline$byteToShort(b), a + (short)b); in $opt$validateExtendByteInt1()
344 assertIntEquals (a + $noinline$byteToInt (b), a + (int)b); in $opt$validateExtendByteInt2()
405 assertIntEquals(a + $noinline$charToByte (b), a + (byte)b); in $opt$validateExtendCharInt1()
406 assertIntEquals(a + $noinline$charToShort(b), a + (short)b); in $opt$validateExtendCharInt1()
417 assertIntEquals (a + $noinline$charToInt (b), a + (int)b); in $opt$validateExtendCharInt2()
477 assertIntEquals(a + $noinline$shortToByte (b), a + (byte)b); in $opt$validateExtendShortInt1()
[all …]
/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/565-checker-doublenegbitwise/src/
DMain.java21 public static void assertIntEquals(int expected, int result) { in assertIntEquals() method in Main
51 assertIntEquals(~0xff, $noinline$runSmaliTest("$opt$noinline$andToOrV2", int.class, 0xf, 0xff)); in main()
52 assertIntEquals(~0xff, $noinline$runSmaliTest("$opt$noinline$andToOr", int.class, 0xf, 0xff)); in main()
59assertIntEquals(-1, $noinline$runSmaliTest("$opt$noinline$regressInputsAwayV2", int.class, 0xf, 0x… in main()
60assertIntEquals(-1, $noinline$runSmaliTest("$opt$noinline$regressInputsAway", int.class, 0xf, 0xff… in main()
61assertIntEquals(0xf0, $noinline$runSmaliTest("$opt$noinline$notXorToXorV2", int.class, 0xf, 0xff)); in main()
62assertIntEquals(0xf0, $noinline$runSmaliTest("$opt$noinline$notXorToXor", int.class, 0xf, 0xff)); in main()
65assertIntEquals(~0xff, $noinline$runSmaliTest("$opt$noinline$notMultipleUsesV2", int.class, 0xf, 0… in main()
66assertIntEquals(~0xff, $noinline$runSmaliTest("$opt$noinline$notMultipleUses", int.class, 0xf, 0xf… 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
558 assertIntEquals(2, ror_int_constant_c_c(8)); in main()
559 assertIntEquals(2, ror_int_constant_c_c_0(8)); in main()
562 assertIntEquals(2, ror_int_constant_c_negc(8)); in main()
565 assertIntEquals(2, ror_int_reg_v_csubv(8, 2)); in main()
568 assertIntEquals(2, ror_int_subv_csubv(8, 2, 0)); in main()
569 assertIntEquals(32, ror_int_subv_csubv_env(8, 2, 0)); in main()
570 assertIntEquals(32, rol_int_csubv_subv(8, 2, 0)); in main()
572 assertIntEquals(32, rol_int_reg_csubv_v(8, 2)); in main()
575 assertIntEquals(2, ror_int_reg_v_negv(8, 2)); in main()
[all …]
/art/test/552-checker-sharpening/src/
DMain.java19 public static void assertIntEquals(int expected, int result) { in assertIntEquals() method in Main
208 assertIntEquals(1, testSimple(1)); in main()
209 assertIntEquals(1, testDiamond(false, 1)); in main()
210 assertIntEquals(-1, testDiamond(true, 1)); in main()
211 assertIntEquals(3, testLoop(new int[]{ 2 }, 1)); in main()
212 assertIntEquals(8, testLoop(new int[]{ 3, 4 }, 1)); in main()
213 assertIntEquals(1, testLoopWithDiamond(null, false, 1)); in main()
214 assertIntEquals(3, testLoopWithDiamond(new int[]{ 2 }, false, 1)); in main()
215 assertIntEquals(-6, testLoopWithDiamond(new int[]{ 3, 4 }, true, 1)); in main()
/art/test/564-checker-negbitwise/src/
DMain.java19 public static void assertIntEquals(int expected, int result) { in assertIntEquals() method in Main
284 assertIntEquals(0xe, $opt$noinline$notAnd(0xf, 0x1)); in main()
286 assertIntEquals(~0xe, $opt$noinline$notXor(0xf, 0x1)); in main()
287 assertIntEquals(0xe, $opt$noinline$notAndConstant(0x1)); in main()
288 assertIntEquals(0xe, $opt$noinline$notAndMultipleUses(0xf, 0x1)); in main()
289 assertIntEquals(~0x1, $opt$noinline$deMorganOr(0x3, 0x1)); 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/480-checker-dead-blocks/src/
DMain.java19 public static void assertIntEquals(int expected, int result) { in assertIntEquals() method in Main
192 assertIntEquals(7, testTrueBranch(4, 3)); in main()
193 assertIntEquals(1, testFalseBranch(4, 3)); in main()
194 assertIntEquals(42, testRemoveLoop(42)); in main()
195 assertIntEquals(23, testUpdateLoopInformation(23)); in main()
196 assertIntEquals(12, testRemoveSuspendCheck(12, 5)); in main()
/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/530-checker-lse3/src/
DMain.java50 assertIntEquals(result, 300); in main()
52 assertIntEquals(result, 90); in main()
56 assertIntEquals(result, 5); in main()
58 assertIntEquals(result, 10); in main()
61 private static void assertIntEquals(int result, int expected) { in assertIntEquals() method in Main
/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/2026-DifferentMemoryLSCouples/src/
DMain.java26 public static void assertIntEquals(int expected, int result) { in assertIntEquals() method in Main
43 assertIntEquals(inst1.fieldA, 1225); in testLoop()
44 assertIntEquals(inst2.fieldB, 2450); in testLoop()
/art/test/550-checker-multiply-accumulate/src/
DMain.java19 public static void assertIntEquals(int expected, int result) { in assertIntEquals() method in Main
529 assertIntEquals(-60608250, calcArraySum(array2)); in testSimdMultiplyAccumulate()
539 assertIntEquals(61607250, calcArraySum(array2)); in testSimdMultiplyAccumulate()
548 assertIntEquals(7, $opt$noinline$mulAdd(1, 2, 3)); in main()
550 assertIntEquals(79, $opt$noinline$multipleUses1(7, 8, 9)); in main()
552 assertIntEquals(195, $opt$noinline$mulPlusOne(13, 14)); in main()
554 assertIntEquals(-306, $opt$noinline$mulNeg(17, 18)); in main()
/art/test/2019-constantcalculationsinking/src/
DMain.java30 public static void assertIntEquals(int expected, int result) { in assertIntEquals() method in Main
56 assertIntEquals(testVar + additionalVar, 619960); in testLoopAddInt()
73 assertIntEquals(testVar + additionalVar, 608960); in testLoopSubInt()
108 assertIntEquals(testVar + additionalVar, 324); in testLoopMulInt()
143 assertIntEquals(testVar + additionalVar, 604460); in testLoopDivInt()
177 assertIntEquals(testVar + additionalVar, 604460); in testLoopRemInt()
/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/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/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/2027-TwiceTheSameMemoryCouple/src/
DMain.java19 public static void assertIntEquals(int expected, int result) { in assertIntEquals() method in Main
33 assertIntEquals(field, 3675); in testLoop()

12