/art/test/411-checker-hdiv-hrem-pow2/src/ |
D | RemTest.java | 19 public static <T extends Number> void expectEquals(T expected, T result) { in expectEquals() method in RemTest 31 expectEquals(0, $noinline$IntMod2(0)); in remInt() 32 expectEquals(1, $noinline$IntMod2(1)); in remInt() 33 expectEquals(-1, $noinline$IntMod2(-1)); in remInt() 34 expectEquals(0, $noinline$IntMod2(2)); in remInt() 35 expectEquals(0, $noinline$IntMod2(-2)); in remInt() 36 expectEquals(1, $noinline$IntMod2(3)); in remInt() 37 expectEquals(-1, $noinline$IntMod2(-3)); in remInt() 38 expectEquals(1, $noinline$IntMod2(0x0f)); in remInt() 39 expectEquals(1, $noinline$IntMod2(0x00ff)); in remInt() [all …]
|
D | DivTest.java | 19 public static <T extends Number> void expectEquals(T expected, T result) { in expectEquals() method in DivTest 31 expectEquals(0, $noinline$IntDivBy2(0)); in divInt() 32 expectEquals(0, $noinline$IntDivBy2(1)); in divInt() 33 expectEquals(0, $noinline$IntDivBy2(-1)); in divInt() 34 expectEquals(1, $noinline$IntDivBy2(2)); in divInt() 35 expectEquals(-1, $noinline$IntDivBy2(-2)); in divInt() 36 expectEquals(1, $noinline$IntDivBy2(3)); in divInt() 37 expectEquals(-1, $noinline$IntDivBy2(-3)); in divInt() 38 expectEquals(3, $noinline$IntDivBy2(7)); in divInt() 39 expectEquals(-3, $noinline$IntDivBy2(-7)); in divInt() [all …]
|
/art/test/567-checker-builder-intrinsics/src/ |
D | TestCompare.java | 300 expectEquals(-1, compareBooleans(false, true)); in testCompareBooleans() 301 expectEquals(-1, compareBooleans2(false, true)); in testCompareBooleans() 303 expectEquals(0, compareBooleans(false, false)); in testCompareBooleans() 304 expectEquals(0, compareBooleans(true, true)); in testCompareBooleans() 305 expectEquals(0, compareBooleans2(false, false)); in testCompareBooleans() 306 expectEquals(0, compareBooleans2(true, true)); in testCompareBooleans() 308 expectEquals(1, compareBooleans(true, false)); in testCompareBooleans() 309 expectEquals(1, compareBooleans2(true, false)); in testCompareBooleans() 313 expectEquals(-1, compareBytes(Byte.MIN_VALUE, (byte)(Byte.MIN_VALUE + 1))); in testCompareBytes() 314 expectEquals(-1, compareBytes(Byte.MIN_VALUE, (byte)-1)); in testCompareBytes() [all …]
|
D | TestSignum.java | 117 expectEquals(0, signBoolean(false)); in testSignBoolean() 118 expectEquals(1, signBoolean(true)); in testSignBoolean() 122 expectEquals(-1, signByte((byte)Byte.MIN_VALUE)); in testSignByte() 123 expectEquals(-1, signByte((byte)-64)); in testSignByte() 124 expectEquals(-1, signByte((byte)-1)); in testSignByte() 125 expectEquals(0, signByte((byte)0)); in testSignByte() 126 expectEquals(1, signByte((byte)1)); in testSignByte() 127 expectEquals(1, signByte((byte)64)); in testSignByte() 128 expectEquals(1, signByte((byte)Byte.MAX_VALUE)); in testSignByte() 132 expectEquals(-1, signShort((short)Short.MIN_VALUE)); in testSignShort() [all …]
|
D | TestMinMax.java | 691 expectEquals(10, minI(10)); in main() 692 expectEquals(20, minI(25)); in main() 693 expectEquals(-1, minIntConstantZero(-1)); in main() 694 expectEquals(0, minIntConstantZero(1)); in main() 695 expectEquals(0, minIntConstantOne(0)); in main() 696 expectEquals(1, minIntConstantOne(2)); in main() 697 expectEquals(-2, minIntConstantMinusOne(-2)); in main() 698 expectEquals(-1, minIntConstantMinusOne(0)); in main() 699 expectEquals(10L, minL(10L)); in main() 700 expectEquals(20L, minL(25L)); in main() [all …]
|
D | TestAbs.java | 265 expectEquals(10, absI(-10)); in main() 266 expectEquals(20, absI(20)); in main() 267 expectEquals(10L, absL(-10L)); in main() 268 expectEquals(20L, absL(20L)); in main() 270 expectEquals(10, abs1(-10)); in main() 271 expectEquals(20, abs1(20)); in main() 272 expectEquals(10, abs2(-10)); in main() 273 expectEquals(20, abs2(20)); in main() 274 expectEquals(10, abs3(-10)); in main() 275 expectEquals(20, abs3(20)); in main() [all …]
|
/art/test/411-optimizing-arith/src/ |
D | ShiftsTest.java | 19 public static void expectEquals(int expected, int result) { in expectEquals() method in ShiftsTest 25 public static void expectEquals(long expected, long result) { in expectEquals() method in ShiftsTest 41 expectEquals(48, $opt$ShlIntConst2(12)); in testShlInt() 42 expectEquals(12, $opt$ShlIntConst0(12)); in testShlInt() 43 expectEquals(-48, $opt$ShlInt(-12, 2)); in testShlInt() 44 expectEquals(1024, $opt$ShlInt(32, 5)); in testShlInt() 46 expectEquals(7, $opt$ShlInt(7, 0)); in testShlInt() 47 expectEquals(14, $opt$ShlInt(7, 1)); in testShlInt() 48 expectEquals(0, $opt$ShlInt(0, 30)); in testShlInt() 50 expectEquals(1073741824L, $opt$ShlInt(1, 30)); in testShlInt() [all …]
|
D | RemTest.java | 25 expectEquals(2, $opt$RemConst(6)); in remInt() 26 expectEquals(2, $opt$Rem(6, 4)); in remInt() 27 expectEquals(2, $opt$Rem(6, -4)); in remInt() 28 expectEquals(0, $opt$Rem(6, 3)); in remInt() 29 expectEquals(0, $opt$Rem(6, -3)); in remInt() 30 expectEquals(0, $opt$Rem(6, 1)); in remInt() 31 expectEquals(0, $opt$Rem(6, -1)); in remInt() 32 expectEquals(-1, $opt$Rem(-7, 3)); in remInt() 33 expectEquals(-1, $opt$Rem(-7, -3)); in remInt() 34 expectEquals(0, $opt$Rem(6, 6)); in remInt() [all …]
|
D | MulTest.java | 21 public static void expectEquals(int expected, int result) { in expectEquals() method in MulTest 27 public static void expectEquals(long expected, long result) { in expectEquals() method in MulTest 33 public static void expectEquals(float expected, float result) { in expectEquals() method in MulTest 39 public static void expectEquals(double expected, double result) { in expectEquals() method in MulTest 83 expectEquals(15, $opt$Mul(5, 3)); in mulInt() 84 expectEquals(0, $opt$Mul(0, 0)); in mulInt() 85 expectEquals(0, $opt$Mul(0, 3)); in mulInt() 86 expectEquals(0, $opt$Mul(3, 0)); in mulInt() 87 expectEquals(-3, $opt$Mul(1, -3)); in mulInt() 88 expectEquals(36, $opt$Mul(-12, -3)); in mulInt() [all …]
|
D | DivTest.java | 21 public static void expectEquals(int expected, int result) { in expectEquals() method in DivTest 27 public static void expectEquals(long expected, long result) { in expectEquals() method in DivTest 33 public static void expectEquals(float expected, float result) { in expectEquals() method in DivTest 39 public static void expectEquals(double expected, double result) { in expectEquals() method in DivTest 109 expectEquals(2, $opt$DivConst(6)); in divInt() 110 expectEquals(2, $opt$Div(6, 3)); in divInt() 111 expectEquals(6, $opt$Div(6, 1)); in divInt() 112 expectEquals(-2, $opt$Div(6, -3)); in divInt() 113 expectEquals(1, $opt$Div(4, 3)); in divInt() 114 expectEquals(-1, $opt$Div(4, -3)); in divInt() [all …]
|
/art/test/427-bitwise/src/ |
D | Main.java | 21 public static void expectEquals(int expected, int result) { in expectEquals() method in Main 27 public static void expectEquals(long expected, long result) { in expectEquals() method in Main 45 expectEquals(1, $opt$And(5, 3)); in andInt() 46 expectEquals(0, $opt$And(0, 0)); in andInt() 47 expectEquals(0, $opt$And(0, 3)); in andInt() 48 expectEquals(0, $opt$And(3, 0)); in andInt() 49 expectEquals(1, $opt$And(1, -3)); in andInt() 50 expectEquals(-12, $opt$And(-12, -3)); in andInt() 52 expectEquals(1, $opt$AndLit8(1)); in andInt() 53 expectEquals(0, $opt$AndLit8(0)); in andInt() [all …]
|
/art/test/411-checker-hdiv-hrem-const/src/ |
D | DivTest.java | 18 private static void expectEquals(int expected, int result) { in expectEquals() method in DivTest 24 private static void expectEquals(long expected, long result) { in expectEquals() method in DivTest 30 private static void expectEquals(String expected, String result) { in expectEquals() method in DivTest 42 expectEquals(0, $noinline$IntDivBy18(0)); in divInt() 43 expectEquals(0, $noinline$IntDivBy18(1)); in divInt() 44 expectEquals(0, $noinline$IntDivBy18(-1)); in divInt() 45 expectEquals(1, $noinline$IntDivBy18(18)); in divInt() 46 expectEquals(-1, $noinline$IntDivBy18(-18)); in divInt() 47 expectEquals(3, $noinline$IntDivBy18(65)); in divInt() 48 expectEquals(-3, $noinline$IntDivBy18(-65)); in divInt() [all …]
|
D | RemTest.java | 18 private static void expectEquals(int expected, int result) { in expectEquals() method in RemTest 24 private static void expectEquals(long expected, long result) { in expectEquals() method in RemTest 36 expectEquals(0, $noinline$IntRemBy18(0)); in remInt() 37 expectEquals(1, $noinline$IntRemBy18(1)); in remInt() 38 expectEquals(-1, $noinline$IntRemBy18(-1)); in remInt() 39 expectEquals(0, $noinline$IntRemBy18(18)); in remInt() 40 expectEquals(0, $noinline$IntRemBy18(-18)); in remInt() 41 expectEquals(11, $noinline$IntRemBy18(65)); in remInt() 42 expectEquals(-11, $noinline$IntRemBy18(-65)); in remInt() 44 expectEquals(0, $noinline$IntALenRemBy18(new int[0])); in remInt() [all …]
|
/art/test/411-checker-instruct-simplifier-hrem/src/ |
D | Main.java | 18 private static void expectEquals(long expected, long result) { in expectEquals() method in Main 24 private static void expectEquals(long[] div_rem_expected, long[] result) { in expectEquals() method in Main 25 expectEquals(div_rem_expected[0], result[0]); in expectEquals() 26 expectEquals(div_rem_expected[1], result[1]); in expectEquals() 30 expectEquals(1L, $noinline$IntDivRemBy18(1)); in remInt() 31 expectEquals(1L << 32 | 2L, $noinline$IntDivRemBy18(20)); in remInt() 33 expectEquals(1L, $noinline$IntRemDivBy18(1)); in remInt() 34 expectEquals(1L << 32 | 2L, $noinline$IntRemDivBy18(20)); in remInt() 36 expectEquals(1L, $noinline$IntDivRemBy18(1, false)); in remInt() 37 expectEquals(1L << 32 | 2L, $noinline$IntDivRemBy18(20, true)); in remInt() [all …]
|
/art/test/589-super-imt/src/ |
D | Main.java | 112 expectEquals(main.method1(), Main.class); in callMains() 113 expectEquals(main.method2(), Main.class); in callMains() 114 expectEquals(main.method3(), Main.class); in callMains() 115 expectEquals(main.method4(), Main.class); in callMains() 116 expectEquals(main.method5(), Main.class); in callMains() 117 expectEquals(main.method6(), Main.class); in callMains() 118 expectEquals(main.method7(), Main.class); in callMains() 119 expectEquals(main.method8(), Main.class); in callMains() 120 expectEquals(main.method9(), Main.class); in callMains() 121 expectEquals(main.method10(), Main.class); in callMains() [all …]
|
/art/test/530-checker-loops4/src/ |
D | Main.java | 298 expectEquals(m * i, geo1(i)); in main() 301 expectEquals( m * i, geo1( i)); in main() 302 expectEquals(-m * i, geo1(-i)); in main() 306 expectEquals(i << 10, geo2(i)); in main() 309 expectEquals(1 << (i + 10), geo2(1 << i)); in main() 311 expectEquals(0x80000400, geo2(0x00200001)); in main() 312 expectEquals(0x00000000, geo2(0x00400000)); in main() 313 expectEquals(0x00000400, geo2(0x00400001)); in main() 317 expectEquals(0, geo3(i)); in main() 320 expectEquals( i, geo3( i * d)); in main() [all …]
|
/art/test/416-optimizing-arith-not/src/ |
D | Main.java | 21 public static void expectEquals(int expected, int result) { in expectEquals() method in Main 27 public static void expectEquals(long expected, long result) { in expectEquals() method in Main 39 expectEquals(1, smaliNotInt(-2)); in notInt() 40 expectEquals(0, smaliNotInt(-1)); in notInt() 41 expectEquals(-1, smaliNotInt(0)); in notInt() 42 expectEquals(-2, smaliNotInt(1)); in notInt() 43 expectEquals(2147483647, smaliNotInt(-2147483648)); // -(2^31) in notInt() 44 expectEquals(2147483646, smaliNotInt(-2147483647)); // -(2^31 - 1) in notInt() 45 expectEquals(-2147483647, smaliNotInt(2147483646)); // 2^31 - 2 in notInt() 46 expectEquals(-2147483648, smaliNotInt(2147483647)); // 2^31 - 1 in notInt() [all …]
|
/art/test/432-optimizing-cmp/src/ |
D | Main.java | 33 expectEquals(0, smaliCmpLong(0L, 0L)); in cmpLong() 34 expectEquals(0, smaliCmpLong(1L, 1L)); in cmpLong() 35 expectEquals(-1, smaliCmpLong(1L, 2L)); in cmpLong() 36 expectEquals(1, smaliCmpLong(2L, 1L)); 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() 55 expectEquals(0, smaliCmpGtFloat(0F, 0F)); in cmpFloat() 56 expectEquals(0, smaliCmpGtFloat(-0F, 0F)); in cmpFloat() [all …]
|
/art/test/660-checker-simd-sad/src/ |
D | SimdSadShort3.java | 378 expectEquals(1067200, sadShort2IntParamRight(s, (short)-1)); in main() 379 expectEquals(1067200, sadShort2IntParamRight(s, (short) 0)); in main() 380 expectEquals(1067208, sadShort2IntParamRight(s, (short) 1)); in main() 381 expectEquals(1067224, sadShort2IntParamRight(s, (short) 2)); in main() 382 expectEquals(2635416, sadShort2IntParamRight(s, (short) 0x7fff)); in main() 383 expectEquals(1558824, sadShort2IntParamRight(s, (short) 0x8000)); in main() 385 expectEquals(1067200, sadShort2IntParamLeft(s, (short)-1)); in main() 386 expectEquals(1067200, sadShort2IntParamLeft(s, (short) 0)); in main() 387 expectEquals(1067208, sadShort2IntParamLeft(s, (short) 1)); in main() 388 expectEquals(1067224, sadShort2IntParamLeft(s, (short) 2)); in main() [all …]
|
/art/test/529-checker-unresolved/src/ |
D | Main.java | 73 expectEquals((byte)1, UnresolvedClass.staticByte); in callUnresolvedStaticFieldAccess() 74 expectEquals('1', UnresolvedClass.staticChar); in callUnresolvedStaticFieldAccess() 75 expectEquals(123456789, UnresolvedClass.staticInt); in callUnresolvedStaticFieldAccess() 76 expectEquals(123456789123456789l, UnresolvedClass.staticLong); in callUnresolvedStaticFieldAccess() 77 expectEquals(123456789123456789f, UnresolvedClass.staticFloat); in callUnresolvedStaticFieldAccess() 78 expectEquals(123456789123456789d, UnresolvedClass.staticDouble); in callUnresolvedStaticFieldAccess() 79 expectEquals(o, UnresolvedClass.staticObject); in callUnresolvedStaticFieldAccess() 87 expectEquals((byte)-1, UnresolvedClass.staticByte); in callUnresolvedStaticFieldAccess() 88 expectEquals((char)32768, UnresolvedClass.staticChar); in callUnresolvedStaticFieldAccess() 89 expectEquals(-1, UnresolvedClass.staticInt); in callUnresolvedStaticFieldAccess() [all …]
|
/art/test/703-floating-point-div/src/ |
D | Main.java | 22 public static void expectEquals(long expected, long result) { in expectEquals() method in Main 28 public static void expectEquals(int expected, int result) { in expectEquals() method in Main 46 expectEquals(Double.doubleToRawLongBits(dPi/d1), 0x1921fb54442d18L); in divDoubleTest() 47 expectEquals(Double.doubleToRawLongBits(dPi/d2), 0xbff921fb54442d18L); in divDoubleTest() 48 expectEquals(Double.doubleToRawLongBits(dPi/d3), 0x7ff0000000000000L); in divDoubleTest() 49 expectEquals(Double.doubleToRawLongBits(dPi/d4), 0x7fe921fb54442d18L); in divDoubleTest() 50 expectEquals(Double.doubleToRawLongBits(dPi/d5), 0x0L); in divDoubleTest() 51 expectEquals(Double.doubleToRawLongBits(dPi/d6), 0x8000000000000000L); in divDoubleTest() 52 expectEquals(Double.doubleToRawLongBits(dPi/d7), 0xfff0000000000000L); in divDoubleTest() 54 expectEquals(Double.doubleToRawLongBits(dPi/d8), 0xc90fdaa22168cL); in divDoubleTest() [all …]
|
/art/test/620-checker-bce-intrinsics/src/ |
D | Main.java | 226 expectEquals(15, oneArray(a)); in main() 227 expectEquals(36, oneArray(b)); in main() 228 expectEquals(6, oneArray(c)); in main() 229 expectEquals(18, oneArray(d)); in main() 231 expectEquals(15, oneArrayAbs(a, e)); in main() 232 expectEquals(5, oneArrayAbs(a, d)); in main() 234 expectEquals(30, twoArrays(a, a)); in main() 235 expectEquals(49, twoArrays(a, b)); in main() 236 expectEquals(12, twoArrays(a, c)); in main() 237 expectEquals(28, twoArrays(a, d)); in main() [all …]
|
/art/test/561-shared-slowpaths/src/ |
D | Main.java | 51 expectEquals(z, 0); in main() 53 expectEquals(x[i], i); in main() 54 expectEquals(y[i], i); in main() 65 expectEquals(z, 1); in main() 67 expectEquals(x[i], 0); in main() 68 expectEquals(y[i], 0); in main() 79 expectEquals(z, 1); in main() 81 expectEquals(x[i], 0); in main() 82 expectEquals(y[i], 0); in main() 93 expectEquals(z, 1); in main() [all …]
|
/art/test/562-bce-preheader/src/ |
D | Main.java | 119 expectEquals(8, doit(x, -6)); in main() 120 expectEquals(7, doit(x, -5)); in main() 121 expectEquals(6, doit(x, -4)); in main() 122 expectEquals(5, doit(x, -3)); in main() 123 expectEquals(4, doit(x, -2)); in main() 124 expectEquals(3, doit(x, -1)); in main() 125 expectEquals(3, doit(x, 0)); in main() 126 expectEquals(3, doit(x, 1)); in main() 127 expectEquals(3, doit(x, 22)); in main() 132 expectEquals(7, foo(a, b, -1)); in main() [all …]
|
/art/test/665-checker-simd-zero/src/ |
D | Main.java | 254 expectEquals(true, xz[i]); in main() 255 expectEquals(1, xb[i]); in main() 256 expectEquals(1, xc[i]); in main() 257 expectEquals(1, xs[i]); in main() 258 expectEquals(1, xi[i]); in main() 259 expectEquals(1, xl[i]); in main() 260 expectEquals(1, xf[i]); in main() 261 expectEquals(1, xd[i]); in main() 274 expectEquals(false, xz[i]); in main() 275 expectEquals(0, xb[i]); in main() [all …]
|