Home
last modified time | relevance | path

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

12

/art/test/2269-checker-constant-folding-instrinsics/src/
DMain.java44 $noinline$assertIntEquals(-2, Integer.reverse(Integer.MAX_VALUE)); in $noinline$testReverseInt()
45 $noinline$assertIntEquals(1, Integer.reverse(Integer.MIN_VALUE)); in $noinline$testReverseInt()
46 $noinline$assertIntEquals(0, Integer.reverse(0)); in $noinline$testReverseInt()
48 $noinline$assertIntEquals(0x55555555, Integer.reverse(0xAAAAAAAA)); in $noinline$testReverseInt()
50 $noinline$assertIntEquals(0xAAAAAAAA, Integer.reverse(0x55555555)); in $noinline$testReverseInt()
60 $noinline$assertIntEquals(1 << 31, Integer.reverse(1 << 0)); in $noinline$testReverseInt_powerOfTwo()
61 $noinline$assertIntEquals(1 << 30, Integer.reverse(1 << 1)); in $noinline$testReverseInt_powerOfTwo()
62 $noinline$assertIntEquals(1 << 29, Integer.reverse(1 << 2)); in $noinline$testReverseInt_powerOfTwo()
63 $noinline$assertIntEquals(1 << 28, Integer.reverse(1 << 3)); in $noinline$testReverseInt_powerOfTwo()
64 $noinline$assertIntEquals(1 << 27, Integer.reverse(1 << 4)); in $noinline$testReverseInt_powerOfTwo()
[all …]
/art/test/458-checker-instruct-simplification/src/
DMain.java27 public static void assertIntEquals(int expected, int result) { in assertIntEquals() method in Main
3908 assertIntEquals(5, $noinline$AddAddSubAddConst(1)); in main()
3909 assertIntEquals(arg, $noinline$AndAllOnes(arg)); in main()
3911 assertIntEquals(-arg, $noinline$DivN1(arg)); in main()
3913 assertIntEquals(-arg, $noinline$MulN1(arg)); in main()
3916 assertIntEquals(arg, $noinline$Or0(arg)); in main()
3918 assertIntEquals(arg, $noinline$Shl0(arg)); in main()
3922 assertIntEquals(-arg, $noinline$SubAliasNeg(arg)); in main()
3923 assertIntEquals(9, $noinline$SubAddConst1(2)); in main()
3924 assertIntEquals(-2, $noinline$SubAddConst2(3)); in main()
[all …]
/art/test/530-checker-lse/src/
DMain.java1228 assertIntEquals(array[0], 1); in test40()
1234 assertIntEquals(array[0], 2); in test40()
1236 assertIntEquals(array[0], 150); in test40()
4109 static void assertIntEquals(int result, int expected) { in assertIntEquals() method in Main
4129 assertIntEquals(test1(new TestClass(), new TestClass()), 3); in main()
4130 assertIntEquals(test2(new TestClass()), 1); in main()
4134 assertIntEquals(test3(obj1), 10); in main()
4135 assertIntEquals(test4(new TestClass(), true), 1); in main()
4136 assertIntEquals(test4(new TestClass(), false), 1); in main()
4137 assertIntEquals(test5(new TestClass(), true), 1); 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
56 assertIntEquals($noinline$rotate_int_right_reg_v_csubv(0x11, 0), 0x11); in test_Integer_right_v_csubv()
58 assertIntEquals($noinline$rotate_int_right_reg_v_csubv(0x11, 1), 0x80000008); in test_Integer_right_v_csubv()
59 assertIntEquals($noinline$rotate_int_right_reg_v_csubv(0x11, Integer.SIZE - 1), 0x22); in test_Integer_right_v_csubv()
60 assertIntEquals($noinline$rotate_int_right_reg_v_csubv(0x11, Integer.SIZE), 0x11); in test_Integer_right_v_csubv()
61 assertIntEquals($noinline$rotate_int_right_reg_v_csubv(0x11, Integer.SIZE + 1), 0x80000008); in test_Integer_right_v_csubv()
63 assertIntEquals($noinline$rotate_int_right_reg_v_csubv(0x11, -1), 0x22); in test_Integer_right_v_csubv()
64 assertIntEquals($noinline$rotate_int_right_reg_v_csubv(0x11, -(Integer.SIZE - 1)), 0x80000008); 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)), 0x22); in test_Integer_right_v_csubv()
[all …]
/art/test/442-checker-constant-folding/src/
DMain.java26 public static void assertIntEquals(int expected, int result) { in assertIntEquals() method in Main
1917 assertIntEquals(-42, IntNegation()); in main()
1922 assertIntEquals(3, IntAddition1()); in main()
1923 assertIntEquals(14, IntAddition2()); in main()
1924 assertIntEquals(14, smaliIntAddition2()); in main()
1925 assertIntEquals(14, smaliIntAddition2AddAndMove()); in main()
1930 assertIntEquals(4, IntSubtraction()); in main()
1935 assertIntEquals(21, IntMultiplication()); in main()
1940 assertIntEquals(2, IntDivision()); in main()
1945 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
654 assertIntEquals(456, constantIndexGet(array)); in main()
657 assertIntEquals(2, array[1]); in main()
659 assertIntEquals(789, get(array, 2)); in main()
662 assertIntEquals(456, array[1]); in main()
665 assertIntEquals(124, array[0]); in main()
668 assertIntEquals(125, array[0]); in main()
670 assertIntEquals(6, canMergeAfterBCE1()); in main()
671 assertIntEquals(2097152, canMergeAfterBCE2()); in main()
673 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/564-checker-negbitwise/src/
DMain.java19 public static void assertIntEquals(int expected, int result) { in assertIntEquals() method in Main
484 assertIntEquals(0xe, $opt$noinline$notAnd(0xf, 0x1)); in main()
486 assertIntEquals(~0xe, $opt$noinline$notXor(0xf, 0x1)); in main()
487 assertIntEquals(0xe, $opt$noinline$notAndConstant(0x1)); in main()
488 assertIntEquals(0xe, $opt$noinline$notAndMultipleUses(0xf, 0x1)); in main()
489 assertIntEquals(~0x1, $opt$noinline$deMorganOr(0x3, 0x1)); in main()
490 assertIntEquals(0x2, $noinline$AndSubIntoBic(0x3, 0x1)); in main()
491 assertIntEquals(0x2, $noinline$AndSubIntoBic_v2(0x1, 0x3)); 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
561 assertIntEquals(expected_result, result); in $noinline$testDontOptimizeAddIntoRotate_Int()
581 assertIntEquals(expected_result, result); in $noinline$testDontOptimizeXorIntoRotate_Int()
599 assertIntEquals(2, ror_int_constant_c_c(8)); in main()
600 assertIntEquals(2, ror_int_constant_c_c_0(8)); in main()
603 assertIntEquals(2, ror_int_constant_c_negc(8)); in main()
606 assertIntEquals(2, ror_int_reg_v_csubv(8, 2)); in main()
609 assertIntEquals(2, ror_int_subv_csubv(8, 2, 0)); in main()
610 assertIntEquals(32, ror_int_subv_csubv_env(8, 2, 0)); in main()
611 assertIntEquals(32, rol_int_csubv_subv(8, 2, 0)); in main()
[all …]
/art/test/552-checker-sharpening/src/
DMain.java19 public static void assertIntEquals(int expected, int result) { in assertIntEquals() method in Main
197 assertIntEquals(1, testSimple(1)); in main()
198 assertIntEquals(1, testDiamond(false, 1)); in main()
199 assertIntEquals(-1, testDiamond(true, 1)); in main()
200 assertIntEquals(3, testLoop(new int[]{ 2 }, 1)); in main()
201 assertIntEquals(8, testLoop(new int[]{ 3, 4 }, 1)); in main()
202 assertIntEquals(1, testLoopWithDiamond(null, false, 1)); in main()
203 assertIntEquals(3, testLoopWithDiamond(new int[]{ 2 }, false, 1)); in main()
204 assertIntEquals(-6, testLoopWithDiamond(new int[]{ 3, 4 }, true, 1)); 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.java46 assertIntEquals(result, 300); in main()
48 assertIntEquals(result, 90); in main()
52 assertIntEquals(result, 5); in main()
54 assertIntEquals(result, 10); in main()
57 private static void assertIntEquals(int result, int expected) { in assertIntEquals() method in Main
/art/test/2265-checker-select-binary-unary/src/
DMain.java27 assertIntEquals(11, $noinline$testIntToByte(0, 1)); in main()
28 assertIntEquals(12, $noinline$testIntToByte(1, 0)); in main()
30 assertIntEquals(11, $noinline$testLongToInt(0, 1)); in main()
31 assertIntEquals(12, $noinline$testLongToInt(1, 0)); in main()
128 private static void assertIntEquals(int expected, int actual) { 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/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/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/566-checker-codegen-select/src/
DMain.java72 assertIntEquals(5, m.$noinline$intSelect_Constant(4)); in main()
73 assertIntEquals(7, m.$noinline$intSelect_Constant(2)); in main()
76 public static void assertIntEquals(int expected, int actual) { in assertIntEquals() method 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
229 assertIntEquals(0,and_not_32(x,y)); in main()
231 assertIntEquals(-20502606, reset_lowest_set_bit_32(x)); in main()
234 assertIntEquals(1, get_mask_lowest_set_bit_32(y)); in main()

12