/art/test/566-checker-signum/src/ |
Main.java | 138 expectEquals(0, signBoolean(false)); 139 expectEquals(1, signBoolean(true)); 143 expectEquals(-1, signByte((byte)Byte.MIN_VALUE)); 144 expectEquals(-1, signByte((byte)-64)); 145 expectEquals(-1, signByte((byte)-1)); 146 expectEquals(0, signByte((byte)0)); 147 expectEquals(1, signByte((byte)1)); 148 expectEquals(1, signByte((byte)64)); 149 expectEquals(1, signByte((byte)Byte.MAX_VALUE)); 153 expectEquals(-1, signShort((short)Short.MIN_VALUE)) [all...] |
/art/test/427-bitwise/src/ |
Main.java | 21 public static void expectEquals(int expected, int result) { 27 public static void expectEquals(long expected, long result) { 45 expectEquals(1, $opt$And(5, 3)); 46 expectEquals(0, $opt$And(0, 0)); 47 expectEquals(0, $opt$And(0, 3)); 48 expectEquals(0, $opt$And(3, 0)); 49 expectEquals(1, $opt$And(1, -3)); 50 expectEquals(-12, $opt$And(-12, -3)); 52 expectEquals(1, $opt$AndLit8(1)); 53 expectEquals(0, $opt$AndLit8(0)) [all...] |
/art/test/567-checker-compare/src/ |
Main.java | 352 expectEquals(-1, compareBooleans(false, true)); 354 expectEquals(0, compareBooleans(false, false)); 355 expectEquals(0, compareBooleans(true, true)); 357 expectEquals(1, compareBooleans(true, false)); 361 expectEquals(-1, compareBytes(Byte.MIN_VALUE, (byte)(Byte.MIN_VALUE + 1))); 362 expectEquals(-1, compareBytes(Byte.MIN_VALUE, (byte)-1)); 363 expectEquals(-1, compareBytes(Byte.MIN_VALUE, (byte)0)); 364 expectEquals(-1, compareBytes(Byte.MIN_VALUE, (byte)1)); 365 expectEquals(-1, compareBytes(Byte.MIN_VALUE, Byte.MAX_VALUE)); 366 expectEquals(-1, compareBytes((byte)-1, (byte)0)) [all...] |
/art/test/431-optimizing-arith-shifts/src/ |
Main.java | 19 public static void expectEquals(int expected, int result) { 25 public static void expectEquals(long expected, long result) { 41 expectEquals(48, $opt$ShlIntConst2(12)); 42 expectEquals(12, $opt$ShlIntConst0(12)); 43 expectEquals(-48, $opt$ShlInt(-12, 2)); 44 expectEquals(1024, $opt$ShlInt(32, 5)); 46 expectEquals(7, $opt$ShlInt(7, 0)); 47 expectEquals(14, $opt$ShlInt(7, 1)); 48 expectEquals(0, $opt$ShlInt(0, 30)); 50 expectEquals(1073741824L, $opt$ShlInt(1, 30)) [all...] |
/art/test/582-checker-bce-length/src/ |
Main.java | 74 expectEquals(1, fail); 75 expectEquals(0, a[0]); 76 expectEquals(1, a[1]); 77 expectEquals(2, a[2]); 78 expectEquals(3, a[3]); 85 expectEquals(1, fail); 86 expectEquals(-101, a[0]); 87 expectEquals(-102, a[1]); 88 expectEquals(-103, a[2]); 89 expectEquals(-104, a[3]) [all...] |
/art/test/416-optimizing-arith-not/src/ |
Main.java | 21 public static void expectEquals(int expected, int result) { 27 public static void expectEquals(long expected, long result) { 39 expectEquals(1, smaliNotInt(-2)); 40 expectEquals(0, smaliNotInt(-1)); 41 expectEquals(-1, smaliNotInt(0)); 42 expectEquals(-2, smaliNotInt(1)); 43 expectEquals(2147483647, smaliNotInt(-2147483648)); // -(2^31) 44 expectEquals(2147483646, smaliNotInt(-2147483647)); // -(2^31 - 1) 45 expectEquals(-2147483647, smaliNotInt(2147483646)); // 2^31 - 2 46 expectEquals(-2147483648, smaliNotInt(2147483647)); // 2^31 - [all...] |
/art/test/530-checker-loops4/src/ |
Main.java | 298 expectEquals(m * i, geo1(i)); 301 expectEquals( m * i, geo1( i)); 302 expectEquals(-m * i, geo1(-i)); 306 expectEquals(i << 10, geo2(i)); 309 expectEquals(1 << (i + 10), geo2(1 << i)); 311 expectEquals(0x80000400, geo2(0x00200001)); 312 expectEquals(0x00000000, geo2(0x00400000)); 313 expectEquals(0x00000400, geo2(0x00400001)); 317 expectEquals(0, geo3(i)); 320 expectEquals( i, geo3( i * d)) [all...] |
/art/test/589-super-imt/src/ |
Main.java | 112 expectEquals(main.method1(), Main.class); 113 expectEquals(main.method2(), Main.class); 114 expectEquals(main.method3(), Main.class); 115 expectEquals(main.method4(), Main.class); 116 expectEquals(main.method5(), Main.class); 117 expectEquals(main.method6(), Main.class); 118 expectEquals(main.method7(), Main.class); 119 expectEquals(main.method8(), Main.class); 120 expectEquals(main.method9(), Main.class); 121 expectEquals(main.method10(), Main.class) [all...] |
/art/test/562-bce-preheader/src/ |
Main.java | 119 expectEquals(8, doit(x, -6)); 120 expectEquals(7, doit(x, -5)); 121 expectEquals(6, doit(x, -4)); 122 expectEquals(5, doit(x, -3)); 123 expectEquals(4, doit(x, -2)); 124 expectEquals(3, doit(x, -1)); 125 expectEquals(3, doit(x, 0)); 126 expectEquals(3, doit(x, 1)); 127 expectEquals(3, doit(x, 22)); 132 expectEquals(7, foo(a, b, -1)) [all...] |
/art/test/428-optimizing-arith-rem/src/ |
Main.java | 25 expectEquals(2, $opt$RemConst(6)); 26 expectEquals(2, $opt$Rem(6, 4)); 27 expectEquals(2, $opt$Rem(6, -4)); 28 expectEquals(0, $opt$Rem(6, 3)); 29 expectEquals(0, $opt$Rem(6, -3)); 30 expectEquals(0, $opt$Rem(6, 1)); 31 expectEquals(0, $opt$Rem(6, -1)); 32 expectEquals(-1, $opt$Rem(-7, 3)); 33 expectEquals(-1, $opt$Rem(-7, -3)); 34 expectEquals(0, $opt$Rem(6, 6)) [all...] |
/art/test/561-shared-slowpaths/src/ |
Main.java | 51 expectEquals(z, 0); 53 expectEquals(x[i], i); 54 expectEquals(y[i], i); 65 expectEquals(z, 1); 67 expectEquals(x[i], 0); 68 expectEquals(y[i], 0); 79 expectEquals(z, 1); 81 expectEquals(x[i], 0); 82 expectEquals(y[i], 0); 93 expectEquals(z, 1) [all...] |
/art/test/703-floating-point-div/src/ |
Main.java | 22 public static void expectEquals(long expected, long result) { 28 public static void expectEquals(int expected, int result) { 46 expectEquals(Double.doubleToRawLongBits(dPi/d1), 0x1921fb54442d18L); 47 expectEquals(Double.doubleToRawLongBits(dPi/d2), 0xbff921fb54442d18L); 48 expectEquals(Double.doubleToRawLongBits(dPi/d3), 0x7ff0000000000000L); 49 expectEquals(Double.doubleToRawLongBits(dPi/d4), 0x7fe921fb54442d18L); 50 expectEquals(Double.doubleToRawLongBits(dPi/d5), 0x0L); 51 expectEquals(Double.doubleToRawLongBits(dPi/d6), 0x8000000000000000L); 52 expectEquals(Double.doubleToRawLongBits(dPi/d7), 0xfff0000000000000L); 54 expectEquals(Double.doubleToRawLongBits(dPi/d8), 0xc90fdaa22168cL) [all...] |
/art/test/529-checker-unresolved/src/ |
Main.java | 73 expectEquals((byte)1, UnresolvedClass.staticByte); 74 expectEquals('1', UnresolvedClass.staticChar); 75 expectEquals(123456789, UnresolvedClass.staticInt); 76 expectEquals(123456789123456789l, UnresolvedClass.staticLong); 77 expectEquals(123456789123456789f, UnresolvedClass.staticFloat); 78 expectEquals(123456789123456789d, UnresolvedClass.staticDouble); 79 expectEquals(o, UnresolvedClass.staticObject); 87 expectEquals((byte)-1, UnresolvedClass.staticByte); 88 expectEquals((char)32768, UnresolvedClass.staticChar); 89 expectEquals(-1, UnresolvedClass.staticInt) [all...] |
/art/test/432-optimizing-cmp/src/ |
Main.java | 33 expectEquals(0, smaliCmpLong(0L, 0L)); 34 expectEquals(0, smaliCmpLong(1L, 1L)); 35 expectEquals(-1, smaliCmpLong(1L, 2L)); 36 expectEquals(1, smaliCmpLong(2L, 1L)); 37 expectEquals(-1, smaliCmpLong(Long.MIN_VALUE, Long.MAX_VALUE)); 38 expectEquals(1, smaliCmpLong(Long.MAX_VALUE, Long.MIN_VALUE)); 39 expectEquals(0, smaliCmpLong(Long.MIN_VALUE, Long.MIN_VALUE)); 40 expectEquals(0, smaliCmpLong(Long.MAX_VALUE, Long.MAX_VALUE)); 55 expectEquals(0, smaliCmpGtFloat(0F, 0F)); 56 expectEquals(0, smaliCmpGtFloat(-0F, 0F)) [all...] |
/art/test/627-checker-unroll/src/ |
Main.java | 106 expectEquals(68, sA); 107 expectEquals(12, unrollLV()); 108 expectEquals(187, sA); 110 expectEquals(6, sA); 114 private static void expectEquals(int expected, int result) {
|
/art/test/623-checker-loop-regressions/src/ |
Main.java | 430 expectEquals(10, earlyExitFirst(-1)); 432 expectEquals(i, earlyExitFirst(i)); 434 expectEquals(10, earlyExitFirst(11)); 436 expectEquals(10, earlyExitLast(-1)); 438 expectEquals(i + 1, earlyExitLast(i)); 440 expectEquals(10, earlyExitLast(10)); 441 expectEquals(10, earlyExitLast(11)); 443 expectEquals(2, earlyExitNested()); 445 expectEquals(17, transferNarrowWrap()); 446 expectEquals(-45, polynomialShort()) [all...] |
/art/test/402-optimizing-control-flow/src/ |
Main.java | 22 public static void expectEquals(int expected, int value) { 30 expectEquals(42, result); 33 expectEquals(7, result); 36 expectEquals(45, result); 39 expectEquals(45, result); 42 expectEquals(44, result); 45 expectEquals(7, result);
|
/art/test/403-optimizing-long/src/ |
Main.java | 21 public static void expectEquals(long expected, long result) { 29 expectEquals(42, l); 33 expectEquals(42, l); 36 expectEquals(42, l); 39 expectEquals(42, l); 42 expectEquals(42, l); 45 expectEquals(83, l); 48 expectEquals(1, l); 51 expectEquals(57, l); 54 expectEquals(900000000006L, l) [all...] |
/art/test/620-checker-bce-intrinsics/src/ |
Main.java | 225 expectEquals(15, oneArray(a)); 226 expectEquals(36, oneArray(b)); 227 expectEquals(6, oneArray(c)); 228 expectEquals(18, oneArray(d)); 230 expectEquals(5, oneArrayAbs(a, -4)); 231 expectEquals(15, oneArrayAbs(a, 0)); 232 expectEquals(5, oneArrayAbs(a, 4)); 234 expectEquals(30, twoArrays(a, a)); 235 expectEquals(49, twoArrays(a, b)); 236 expectEquals(12, twoArrays(a, c)) [all...] |
/art/test/610-arraycopy/src/ |
Main.java | 25 expectEquals(0, ((Integer)a[0]).intValue()); 26 expectEquals(0, ((Integer)a[1]).intValue()); 27 expectEquals(1, ((Integer)a[2]).intValue()); 28 expectEquals(2, ((Integer)a[3]).intValue()); 29 expectEquals(4, ((Integer)a[4]).intValue()); 32 public static void expectEquals(int expected, int actual) {
|
/art/test/625-checker-licm-regressions/src/ |
Main.java | 106 expectEquals(1, sA); 114 expectEquals(1, sA); 119 expectEquals(i == 0 ? 1 : i, sA); 122 expectEquals(-1, catcher(null)); 124 expectEquals(i == 0 ? 1 : i, catcher(new int[i])); 130 private static void expectEquals(int expected, int result) {
|
/art/test/704-multiply-accumulate/src/ |
Main.java | 25 public static void expectEquals(long expected, long result) { 31 public static void expectEquals(int expected, int result) { 50 expectEquals(result, -891); 53 expectEquals(result, -801); 56 expectEquals(result, -2147483648); 59 expectEquals(result, -2147483648); 62 expectEquals(result, 2147483647); 67 expectEquals(result, 200); 72 expectEquals(result, 200); 81 expectEquals(result, 100) [all...] |
/external/chromium-libpac/test/js-unittest/ |
pac_library_unittest.js | 43 t.expectEquals(0, dnsDomainLevels("www")); 44 t.expectEquals(2, dnsDomainLevels("www.google.com")); 45 t.expectEquals(3, dnsDomainLevels("192.168.1.1")); 80 t.expectEquals("::1;::2;::3", sortIpAddressList("::2;::3;::1")); 81 t.expectEquals( 88 t.expectEquals("127.0.0.1", sortIpAddressList("127.0.0.1")); 89 t.expectEquals("::1", sortIpAddressList("::1")) 92 t.expectEquals("0:0::1;192.168.1.1", sortIpAddressList("192.168.1.1;0:0::1")); 95 t.expectEquals("::1;192.168.1.3", sortIpAddressList("::1;192.168.1.3")); 98 t.expectEquals("0::1;::1;0:0::1", sortIpAddressList("0::1;::1;0:0::1")) [all...] |
/art/test/530-checker-loops5/src/ |
Main.java | 170 expectEquals(55, poly1()); 171 expectEquals(185, poly2(0)); 172 expectEquals(192, poly2(7)); 173 expectEquals(-2146724623, poly3()); 174 expectEquals(64, polyBCE1()); 175 expectEquals(-68, polyBCE2()); 176 expectEquals(-80, polyBCE3()); 181 private static void expectEquals(int expected, int result) {
|
/art/test/640-checker-boolean-simd/src/ |
Main.java | 149 expectEquals((i & 1) == 0, a[i], "and-true"); 153 expectEquals((i & 1) != 0, a[i], "xor-true"); 157 expectEquals((i & 1) != 0, a[i], "xor-false"); 161 expectEquals((i & 1) == 0, a[i], "not"); 165 expectEquals(true, a[i], "or-true"); 169 expectEquals(false, a[i], "and-false"); 173 expectEquals(false, a[i], "or-false"); 179 private static void expectEquals(boolean expected, boolean result, String action) {
|