Home
last modified time | relevance | path

Searched refs:expectEquals (Results 1 – 25 of 83) sorted by relevance

1234

/art/test/411-checker-hdiv-hrem-pow2/src/
DRemTest.java19 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 …]
DDivTest.java19 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-compare/src/
DMain.java329 expectEquals(-1, compareBooleans(false, true)); in testCompareBooleans()
330 expectEquals(-1, compareBooleansSmali(false, true)); in testCompareBooleans()
332 expectEquals(0, compareBooleans(false, false)); in testCompareBooleans()
333 expectEquals(0, compareBooleans(true, true)); in testCompareBooleans()
334 expectEquals(0, compareBooleansSmali(false, false)); in testCompareBooleans()
335 expectEquals(0, compareBooleansSmali(true, true)); in testCompareBooleans()
337 expectEquals(1, compareBooleans(true, false)); in testCompareBooleans()
338 expectEquals(1, compareBooleansSmali(true, false)); in testCompareBooleans()
342 expectEquals(-1, compareBytes(Byte.MIN_VALUE, (byte)(Byte.MIN_VALUE + 1))); in testCompareBytes()
343 expectEquals(-1, compareBytes(Byte.MIN_VALUE, (byte)-1)); in testCompareBytes()
[all …]
/art/test/411-optimizing-arith/src/
DShiftsTest.java19 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 …]
DRemTest.java25 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 …]
DMulTest.java21 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 …]
DDivTest.java21 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 …]
DSubTest.java21 public static void expectEquals(int expected, int result) { in expectEquals() method in SubTest
27 public static void expectEquals(long expected, long result) { in expectEquals() method in SubTest
33 public static void expectEquals(float expected, float result) { in expectEquals() method in SubTest
39 public static void expectEquals(double expected, double result) { in expectEquals() method in SubTest
81 expectEquals(2, $opt$Sub(5, 3)); in subInt()
82 expectEquals(0, $opt$Sub(0, 0)); in subInt()
83 expectEquals(-3, $opt$Sub(0, 3)); in subInt()
84 expectEquals(3, $opt$Sub(3, 0)); in subInt()
85 expectEquals(4, $opt$Sub(1, -3)); in subInt()
86 expectEquals(-9, $opt$Sub(-12, -3)); in subInt()
[all …]
/art/test/427-bitwise/src/
DMain.java21 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/566-checker-signum/src-art/
DMain.java99 expectEquals(0, (int)signBoolean.invoke(null, false)); in testSignBoolean()
100 expectEquals(1, (int)signBoolean.invoke(null, true)); in testSignBoolean()
104 expectEquals(-1, signByte((byte)Byte.MIN_VALUE)); in testSignByte()
105 expectEquals(-1, signByte((byte)-64)); in testSignByte()
106 expectEquals(-1, signByte((byte)-1)); in testSignByte()
107 expectEquals(0, signByte((byte)0)); in testSignByte()
108 expectEquals(1, signByte((byte)1)); in testSignByte()
109 expectEquals(1, signByte((byte)64)); in testSignByte()
110 expectEquals(1, signByte((byte)Byte.MAX_VALUE)); in testSignByte()
114 expectEquals(-1, signShort((short)Short.MIN_VALUE)); in testSignShort()
[all …]
/art/test/589-super-imt/src/
DMain.java112 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/679-checker-minmax/src/
DMain.java715 expectEquals(10, minI(10)); in main()
716 expectEquals(20, minI(25)); in main()
717 expectEquals(-1, minIntConstantZero(-1)); in main()
718 expectEquals(0, minIntConstantZero(1)); in main()
719 expectEquals(0, minIntConstantOne(0)); in main()
720 expectEquals(1, minIntConstantOne(2)); in main()
721 expectEquals(-2, minIntConstantMinusOne(-2)); in main()
722 expectEquals(-1, minIntConstantMinusOne(0)); in main()
723 expectEquals(10L, minL(10L)); in main()
724 expectEquals(20L, minL(25L)); in main()
[all …]
/art/test/681-checker-abs/src/
DMain.java283 expectEquals(10, absI(-10)); in main()
284 expectEquals(20, absI(20)); in main()
285 expectEquals(10L, absL(-10L)); in main()
286 expectEquals(20L, absL(20L)); in main()
288 expectEquals(10, abs1(-10)); in main()
289 expectEquals(20, abs1(20)); in main()
290 expectEquals(10, abs2(-10)); in main()
291 expectEquals(20, abs2(20)); in main()
292 expectEquals(10, abs3(-10)); in main()
293 expectEquals(20, abs3(20)); in main()
[all …]
/art/test/530-checker-loops4/src/
DMain.java298 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/
DMain.java21 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/
DMain.java33 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-short3/src/
DMain.java306 expectEquals(1067200, sadShort2IntParamRight(s, (short)-1)); in main()
307 expectEquals(1067200, sadShort2IntParamRight(s, (short) 0)); in main()
308 expectEquals(1067208, sadShort2IntParamRight(s, (short) 1)); in main()
309 expectEquals(1067224, sadShort2IntParamRight(s, (short) 2)); in main()
310 expectEquals(2635416, sadShort2IntParamRight(s, (short) 0x7fff)); in main()
311 expectEquals(1558824, sadShort2IntParamRight(s, (short) 0x8000)); in main()
313 expectEquals(1067200, sadShort2IntParamLeft(s, (short)-1)); in main()
314 expectEquals(1067200, sadShort2IntParamLeft(s, (short) 0)); in main()
315 expectEquals(1067208, sadShort2IntParamLeft(s, (short) 1)); in main()
316 expectEquals(1067224, sadShort2IntParamLeft(s, (short) 2)); in main()
[all …]
/art/test/529-checker-unresolved/src/
DMain.java73 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/
DMain.java22 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/
DMain.java226 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/
DMain.java51 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/623-checker-loop-regressions/src/
DMain.java615 expectEquals(10, earlyExitFirst(-1)); in main()
617 expectEquals(i, earlyExitFirst(i)); in main()
619 expectEquals(10, earlyExitFirst(11)); in main()
621 expectEquals(10, earlyExitLast(-1)); in main()
623 expectEquals(i + 1, earlyExitLast(i)); in main()
625 expectEquals(10, earlyExitLast(10)); in main()
626 expectEquals(10, earlyExitLast(11)); in main()
628 expectEquals(2, earlyExitNested()); in main()
630 expectEquals(17, transferNarrowWrap()); in main()
631 expectEquals(-45, polynomialShort()); in main()
[all …]
/art/test/562-bce-preheader/src/
DMain.java119 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/
DMain.java174 expectEquals(true, xz[i]); in main()
175 expectEquals(1, xb[i]); in main()
176 expectEquals(1, xc[i]); in main()
177 expectEquals(1, xs[i]); in main()
178 expectEquals(1, xi[i]); in main()
179 expectEquals(1, xl[i]); in main()
180 expectEquals(1, xf[i]); in main()
181 expectEquals(1, xd[i]); in main()
194 expectEquals(false, xz[i]); in main()
195 expectEquals(0, xb[i]); in main()
[all …]
/art/test/618-checker-induction/src/
DMain.java843 expectEquals(1, a[i]); in main()
847 expectEquals(2, a[i]); in main()
851 expectEquals(3, a[i]); in main()
859 expectEquals(i == 0 ? 4 : 3, a[i]); in main()
863 expectEquals(4, a[i]); in main()
866 expectEquals(12395, closedFormInductionUp()); in main()
867 expectEquals(12295, closedFormInductionInAndDown(12345)); in main()
868 expectEquals(81, closedFormInductionTrivialIf()); in main()
869 expectEquals(10 * 10, closedFormNested()); in main()
870 expectEquals(12345 + 17 * 23 * 7, closedFormNestedAlt()); in main()
[all …]

1234