/art/test/800-smali/ |
D | expected.txt | 5 b/17790197 9 b/18380491 14 b/18718277 15 b/18800943 (1) 16 b/18800943 (2) 20 b/20224106 21 b/17410612 22 b/21863767 23 b/21873167 24 b/21614284 [all …]
|
/art/test/551-checker-shifter-operand/src/ |
D | Main.java | 116 public static long $opt$noinline$translate(long l, byte b) { in $opt$noinline$translate() argument 118 long tmp = (long)b; in $opt$noinline$translate() 249 static void $opt$noinline$testAnd(long a, long b) { in $opt$noinline$testAnd() argument 251 assertLongEquals((a & $noinline$LongShl(b, 5)) | (a & $noinline$longToByte(b)), in $opt$noinline$testAnd() 252 (a & (b << 5)) | (a & (byte)b)); in $opt$noinline$testAnd() 273 static void $opt$noinline$testOr(int a, int b) { in $opt$noinline$testOr() argument 275 assertIntEquals((a | $noinline$IntShr(b, 6)) | (a | $noinline$intToChar(b)), in $opt$noinline$testOr() 276 (a | (b >> 6)) | (a | (char)b)); in $opt$noinline$testOr() 297 static void $opt$noinline$testXor(long a, long b) { in $opt$noinline$testXor() argument 299 assertLongEquals((a ^ $noinline$LongUshr(b, 7)) | (a ^ $noinline$longToInt(b)), in $opt$noinline$testXor() [all …]
|
/art/test/957-methodhandle-transforms/ |
D | expected.txt | 19 a: a, b:b, c: c 20 a: a, b:b, c: c 21 a: a, b:b, c: c 22 a: a, b:b, c: c 23 a: a, b:b, c: c 24 a: a, b:b, c: c 25 a: a, b:b, c: c 26 a: a, b:43 27 a: a, b:43 28 a: a, b:43 [all …]
|
/art/runtime/entrypoints/quick/ |
D | quick_math_entrypoints.cc | 24 int CmplFloat(float a, float b) { in CmplFloat() argument 25 if (a == b) { in CmplFloat() 27 } else if (a < b) { in CmplFloat() 29 } else if (a > b) { in CmplFloat() 35 int CmpgFloat(float a, float b) { in CmpgFloat() argument 36 if (a == b) { in CmpgFloat() 38 } else if (a < b) { in CmpgFloat() 40 } else if (a > b) { in CmpgFloat() 46 int CmpgDouble(double a, double b) { in CmpgDouble() argument 47 if (a == b) { in CmpgDouble() [all …]
|
/art/test/684-checker-simd-dotprod/src/other/ |
D | TestByte.java | 51 public static final int testDotProdSimple(byte[] a, byte[] b) { in testDotProdSimple() argument 53 for (int i = 0; i < b.length; i++) { in testDotProdSimple() 54 int temp = a[i] * b[i]; in testDotProdSimple() 92 public static final int testDotProdComplex(byte[] a, byte[] b) { in testDotProdComplex() argument 94 for (int i = 0; i < b.length; i++) { in testDotProdComplex() 95 int temp = ((byte)(a[i] + 1)) * ((byte)(b[i] + 1)); in testDotProdComplex() 126 public static final int testDotProdSimpleUnsigned(byte[] a, byte[] b) { in testDotProdSimpleUnsigned() argument 128 for (int i = 0; i < b.length; i++) { in testDotProdSimpleUnsigned() 129 int temp = (a[i] & 0xff) * (b[i] & 0xff); in testDotProdSimpleUnsigned() 167 public static final int testDotProdComplexUnsigned(byte[] a, byte[] b) { in testDotProdComplexUnsigned() argument [all …]
|
D | TestCharShort.java | 51 public static final int testDotProdSimple(short[] a, short[] b) { in testDotProdSimple() argument 53 for (int i = 0; i < b.length; i++) { in testDotProdSimple() 54 int temp = a[i] * b[i]; in testDotProdSimple() 92 public static final int testDotProdComplex(short[] a, short[] b) { in testDotProdComplex() argument 94 for (int i = 0; i < b.length; i++) { in testDotProdComplex() 95 int temp = ((short)(a[i] + 1)) * ((short)(b[i] + 1)); in testDotProdComplex() 126 public static final int testDotProdSimpleUnsigned(char[] a, char[] b) { in testDotProdSimpleUnsigned() argument 128 for (int i = 0; i < b.length; i++) { in testDotProdSimpleUnsigned() 129 int temp = a[i] * b[i]; in testDotProdSimpleUnsigned() 167 public static final int testDotProdComplexUnsigned(char[] a, char[] b) { in testDotProdComplexUnsigned() argument [all …]
|
D | TestVarious.java | 50 public static final int testDotProdConstRight(byte[] b) { in testDotProdConstRight() argument 52 for (int i = 0; i < b.length; i++) { in testDotProdConstRight() 53 int temp = b[i] * 89; in testDotProdConstRight() 85 public static final int testDotProdConstLeft(byte[] b) { in testDotProdConstLeft() argument 87 for (int i = 0; i < b.length; i++) { in testDotProdConstLeft() 88 int temp = 89 * (b[i] & 0xff); in testDotProdConstLeft() 128 public static final int testDotProdLoopInvariantConvRight(byte[] b, int param) { in testDotProdLoopInvariantConvRight() argument 130 for (int i = 0; i < b.length; i++) { in testDotProdLoopInvariantConvRight() 131 int temp = b[i] * ((byte)(param + 129)); in testDotProdLoopInvariantConvRight() 139 public static final int testDotProdByteToChar(char[] a, char[] b) { in testDotProdByteToChar() argument [all …]
|
/art/test/514-shifts/src/ |
D | Main.java | 29 int b = myOtherField << a; in testIntShiftLeft() local 30 if (b != -2147483648) { in testIntShiftLeft() 31 throw new Error("Expected -2147483648, got " + b); in testIntShiftLeft() 40 int b = myOtherField >> a; in testIntShiftRight() local 41 if (b != 0) { in testIntShiftRight() 42 throw new Error("Expected 0, got " + b); in testIntShiftRight() 51 int b = myOtherField >>> a; in testIntUnsignedShiftRight() local 52 if (b != 0) { in testIntUnsignedShiftRight() 53 throw new Error("Expected 0, got " + b); in testIntUnsignedShiftRight() 62 long b = myOtherLongField << a; in testLongShiftLeft() local [all …]
|
/art/test/451-regression-add-float/src/ |
D | Main.java | 43 public static void assertEqual(int a, int b) { in assertEqual() argument 44 if (a != b) { in assertEqual() 45 throw new RuntimeException("Expected: " + a + " Found: " + b); in assertEqual() 49 public static void assertEqual(long a, long b) { in assertEqual() argument 50 if (a != b) { in assertEqual() 51 throw new RuntimeException("Expected: " + a + " Found: " + b); in assertEqual() 55 public static void assertEqual(float a, float b) { in assertEqual() argument 56 boolean aproxEquals = (a > b) in assertEqual() 57 ? ((a - b) < 0.0001f) in assertEqual() 58 : ((b - a) < 0.0001f); in assertEqual() [all …]
|
/art/test/StaticLeafMethods/ |
D | StaticLeafMethods.java | 26 static int sum(int a, int b) { in sum() argument 27 return a + b; in sum() 29 static int sum(int a, int b, int c) { in sum() argument 30 return a + b + c; in sum() 32 static int sum(int a, int b, int c, int d) { in sum() argument 33 return a + b + c + d; in sum() 35 static int sum(int a, int b, int c, int d, int e) { in sum() argument 36 return a + b + c + d + e; in sum() 41 static double sum(double a, double b) { in sum() argument 42 return a + b; in sum() [all …]
|
/art/test/NonStaticLeafMethods/ |
D | NonStaticLeafMethods.java | 28 int sum(int a, int b) { in sum() argument 29 return a + b; in sum() 31 int sum(int a, int b, int c) { in sum() argument 32 return a + b + c; in sum() 34 int sum(int a, int b, int c, int d) { in sum() argument 35 return a + b + c + d; in sum() 37 int sum(int a, int b, int c, int d, int e) { in sum() argument 38 return a + b + c + d + e; in sum() 43 double sum(double a, double b) { in sum() argument 44 return a + b; in sum() [all …]
|
/art/test/432-optimizing-cmp/src/ |
D | Main.java | 125 static boolean $opt$eq(float a, float b) { in $opt$eq() argument 126 return a == b; in $opt$eq() 129 static boolean $opt$eq(double a, double b) { in $opt$eq() argument 130 return a == b; in $opt$eq() 133 static boolean $opt$lt(long a, long b) { in $opt$lt() argument 134 return a < b; in $opt$lt() 137 static boolean $opt$lt(float a, float b) { in $opt$lt() argument 138 return a < b; in $opt$lt() 141 static boolean $opt$lt(double a, double b) { in $opt$lt() argument 142 return a < b; in $opt$lt() [all …]
|
/art/test/679-checker-minmax/src/ |
D | Main.java | 289 public static int min1(int a, int b) { in min1() argument 290 return a < b ? a : b; in min1() 304 public static int min2(int a, int b) { in min2() argument 305 return a <= b ? a : b; in min2() 319 public static int min3(int a, int b) { in min3() argument 320 return a > b ? b : a; in min3() 334 public static int min4(int a, int b) { in min4() argument 335 return a >= b ? b : a; in min4() 349 public static int min5(short a, short b) { in min5() argument 350 return a >= b ? b : a; in min5() [all …]
|
/art/test/549-checker-types-merge/src/ |
D | Main.java | 51 private Object testMergeClasses(boolean cond, ClassExtendsA a, ClassExtendsB b) { in testMergeClasses() argument 53 return cond ? a : b; in testMergeClasses() 59 private Object testMergeClasses(boolean cond, ClassExtendsA a, ClassSuper b) { in testMergeClasses() argument 61 return cond ? a : b; in testMergeClasses() 67 private Object testMergeClasses(boolean cond, ClassSuper a, ClassSuper b) { in testMergeClasses() argument 69 return cond ? a : b; in testMergeClasses() 75 private Object testMergeClasses(boolean cond, ClassOtherSuper a, ClassSuper b) { in testMergeClasses() argument 77 return cond ? a : b; in testMergeClasses() 83 …e Object testMergeClassWithInterface(boolean cond, ClassImplementsInterfaceA a, InterfaceSuper b) { in testMergeClassWithInterface() argument 85 return cond ? a : b; in testMergeClassWithInterface() [all …]
|
/art/test/405-optimizing-long-allocator/src/ |
D | Main.java | 42 long b = 0; in $opt$TestLostCopy() local 44 b = a; in $opt$TestLostCopy() 47 return b; in $opt$TestLostCopy() 52 long b = 0; in $opt$TestTwoLive() local 55 b += 3; in $opt$TestTwoLive() 57 return a - b; in $opt$TestTwoLive() 62 long b = 0; in $opt$TestThreeLive() local 66 b += 3; in $opt$TestThreeLive() 69 return a - b - c; in $opt$TestThreeLive() 74 long b = 0; in $opt$TestFourLive() local [all …]
|
/art/test/404-optimizing-allocator/src/ |
D | Main.java | 36 int b = 0; in $opt$reg$TestLostCopy() local 38 b = a; in $opt$reg$TestLostCopy() 41 return b; in $opt$reg$TestLostCopy() 46 int b = 0; in $opt$reg$TestTwoLive() local 49 b += 3; in $opt$reg$TestTwoLive() 51 return a - b; in $opt$reg$TestTwoLive() 56 int b = 0; in $opt$reg$TestThreeLive() local 60 b += 3; in $opt$reg$TestThreeLive() 63 return a - b - c; in $opt$reg$TestThreeLive() 68 int b = 0; in $opt$reg$TestFourLive() local [all …]
|
/art/test/105-invoke/src/ |
D | Main.java | 23 int virI_II(int a, int b) { in virI_II() argument 24 return a + b + 321; in virI_II() 27 int virI_III(int a, int b, int c) { in virI_III() argument 28 return a + b + c + 432; in virI_III() 31 int virI_IIII(int a, int b, int c, int d) { in virI_IIII() argument 32 return a + b + c + d + 919; in virI_IIII() 35 int virI_IIIII(int a, int b, int c, int d, int e) { in virI_IIIII() argument 36 return a + b + c + d + e + 1010; in virI_IIIII() 39 int virI_IIIIII(int a, int b, int c, int d, int e, int f) { in virI_IIIIII() argument 40 return a + b + c + d + e + f + 2020; in virI_IIIIII() [all …]
|
/art/test/442-checker-constant-folding/src/ |
D | Main.java | 229 int a, b, c; in IntAddition1() local 231 b = 2; in IntAddition1() 232 c = a + b; in IntAddition1() 252 int a, b, c; in IntAddition2() local 254 b = 2; in IntAddition2() 255 a += b; in IntAddition2() 256 b = 5; in IntAddition2() 258 b += c; in IntAddition2() 259 c = a + b; in IntAddition2() 277 long a, b, c; in LongAddition() local [all …]
|
/art/test/700-LoadArgRegs/ |
D | expected.txt | 22 a, b 23 a, b, c 24 a, b, c, d 25 a, b, c, d, e 26 a, b, c, d, e, f 27 a, b, c, d, e, f, g 29 11, b 30 11, b, true 31 11, b, true, 12 32 11, b, true, 12, e [all …]
|
/art/test/620-checker-bce-intrinsics/src/ |
D | Main.java | 43 static int oneArrayAbs(int[] a, int[] b) { in oneArrayAbs() argument 45 for (int i = Math.abs(b.length); i < a.length; i++) { in oneArrayAbs() 59 static int twoArrays(int[] a, int[] b) { in twoArrays() argument 61 for (int i = 0; i < Math.min(a.length, b.length); i++) { in twoArrays() 62 x += a[i] + b[i]; in twoArrays() 75 static int threeArrays(int[] a, int[] b, int[] c) { in threeArrays() argument 77 for (int i = 0; i < Math.min(Math.min(a.length, b.length), c.length); i++) { in threeArrays() 78 x += a[i] + b[i] + c[i]; in threeArrays() 92 static int fourArrays(int[] a, int[] b, int[] c, int[] d) { in fourArrays() argument 94 for (int i = 0; i < Math.min(Math.min(a.length, b.length), Math.min(c.length, d.length)); i++) { in fourArrays() [all …]
|
/art/test/408-move-bug/src/ |
D | Main.java | 25 boolean b = baz(); in crash() 37 foo1.field = b; in crash() 38 foo2.field = b; in crash() 39 foo3.field = b; in crash() 40 foo4.field = b; in crash() 41 foo1.lastField = b; in crash() 46 boolean b = baz(); in npe() 51 foo1.field = b; in npe() 52 foo2.field = b; in npe() 53 foo3.field = b; in npe() [all …]
|
/art/test/594-checker-array-alias/src/ |
D | Main.java | 40 private static void CrossOverLoop1(int a[], int b[]) { in CrossOverLoop1() argument 41 b[20] = 99; in CrossOverLoop1() 43 a[i] = b[20] - 7; in CrossOverLoop1() 56 private static void CrossOverLoop2(float a[], float b[]) { in CrossOverLoop2() argument 57 b[20] = 99; in CrossOverLoop2() 59 a[i] = b[20] - 7; in CrossOverLoop2() 72 private static void CrossOverLoop3(long a[], long b[]) { in CrossOverLoop3() argument 73 b[20] = 99; in CrossOverLoop3() 75 a[i] = b[20] - 7; in CrossOverLoop3() 88 private static void CrossOverLoop4(double a[], double b[]) { in CrossOverLoop4() argument [all …]
|
/art/test/530-checker-loops3/src/ |
D | Main.java | 37 public static void oneConstantIndex(int[] a, int[] b) { in oneConstantIndex() argument 40 a[i] = b[1]; in oneConstantIndex() 57 public static void multipleConstantIndices(int[] a, int[] b) { in multipleConstantIndices() argument 60 a[i] = b[0] + b[1] + b[2]; in multipleConstantIndices() 75 public static void oneInvariantIndex(int[] a, int[] b, int c) { in oneInvariantIndex() argument 78 a[i] = b[c]; in oneInvariantIndex() 96 public static void multipleInvariantIndices(int[] a, int[] b, int c) { in multipleInvariantIndices() argument 99 a[i] = b[c-1] + b[c] + b[c+1]; in multipleInvariantIndices() 115 public static void oneUnitStride(int[] a, int[] b) { in oneUnitStride() argument 118 a[i] = b[i]; in oneUnitStride() [all …]
|
/art/test/012-math/src/ |
D | Main.java | 24 int a, b, res; in math_012() local 28 b = 7; in math_012() 30 res = a + b; in math_012() 32 res = a - b; in math_012() 38 res = a * b; in math_012() 40 res = a / b; in math_012() 42 res = a % b; in math_012() 44 res = a ^ b; in math_012() 46 res = a << b; in math_012() 48 res = a >> b; in math_012() [all …]
|
/art/test/656-checker-simd-opt/src/ |
D | Main.java | 63 private static void stencil(int[] a, int[] b, int n) { in stencil() argument 65 a[i] = b[i - 1] + b[i] + b[i + 1]; in stencil() 69 private static void stencilAddInt(int[] a, int[] b, int n) { in stencilAddInt() argument 76 m.invoke(null, a, b, n); in stencilAddInt() 82 private static void stencilSubInt(int[] a, int[] b, int n) { in stencilSubInt() argument 89 m.invoke(null, a, b, n); in stencilSubInt() 195 int[] b = new int[100]; in testStencil1() local 198 b[i] = i; in testStencil1() 200 stencil(a, b, 100); in testStencil1() 204 expectEquals(i, b[i]); in testStencil1() [all …]
|