/art/test/957-methodhandle-transforms/ |
D | expected-stdout.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/test/551-checker-shifter-operand/src/ |
D | Main.java | 154 public static int $opt$noinline$sameInput(int a) { in $opt$noinline$sameInput() argument 155 int tmp = a << 2; in $opt$noinline$sameInput() 243 static void $opt$noinline$testAnd(long a, long b) { in $opt$noinline$testAnd() argument 244 assertLongEquals((a & $noinline$LongShl(b, 5)) | (a & $noinline$longToByte(b)), in $opt$noinline$testAnd() 245 (a & (b << 5)) | (a & (byte)b)); in $opt$noinline$testAnd() 266 static void $opt$noinline$testOr(int a, int b) { in $opt$noinline$testOr() argument 267 assertIntEquals((a | $noinline$IntShr(b, 6)) | (a | $noinline$intToChar(b)), in $opt$noinline$testOr() 268 (a | (b >> 6)) | (a | (char)b)); in $opt$noinline$testOr() 289 static void $opt$noinline$testXor(long a, long b) { in $opt$noinline$testXor() argument 290 assertLongEquals((a ^ $noinline$LongUshr(b, 7)) | (a ^ $noinline$longToInt(b)), in $opt$noinline$testXor() [all …]
|
/art/test/410-floats/src/ |
D | Main.java | 20 float[] a = new float[2]; in main() local 21 a[0] = 42.2f; in main() 22 a[1] = 3.2f; in main() 23 assertEquals(45.4f, returnFloat(a)); in main() 57 public static float returnFloat(float[] a) { in returnFloat() argument 58 return a[0] + a[1]; in returnFloat() 65 public static double returnDouble(double[] a) { in returnDouble() argument 66 return a[0]; in returnDouble() 69 public static float takeAFloat(float a) { in takeAFloat() argument 70 return a; in takeAFloat() [all …]
|
/art/test/567-checker-builder-intrinsics/src/ |
D | TestAbs.java | 33 public static int absI(int a) { in absI() argument 34 return Math.abs(a); in absI() 44 public static long absL(long a) { in absL() argument 45 return Math.abs(a); in absL() 67 public static int abs1(int a) { in abs1() argument 68 return a < 0 ? -a : a; in abs1() 86 public static int abs2(int a) { in abs2() argument 87 return a <= 0 ? -a : a; in abs2() 105 public static int abs3(int a) { in abs3() argument 106 return a > 0 ? a : -a; in abs3() [all …]
|
D | TestMinMax.java | 41 public static int minI(int a) { in minI() argument 42 return Math.min(a, 20); in minI() 60 public static long minL(long a) { in minL() argument 61 return Math.min(a, 20L); in minL() 79 public static int maxI(int a) { in maxI() argument 80 return Math.max(a, 20); in maxI() 98 public static long maxL(long a) { in maxL() argument 99 return Math.max(a, 20L); in maxL() 112 public static int minIntConstantZero(int a) { in minIntConstantZero() argument 113 return Math.min(a, 0); in minIntConstantZero() [all …]
|
/art/test/620-checker-bce-intrinsics/src/ |
D | Main.java | 29 static int oneArray(int[] a) { in oneArray() argument 31 for (int i = 0; i < a.length; i++) { in oneArray() 32 x += a[i]; in oneArray() 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() 46 x += a[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 [all …]
|
/art/test/582-checker-bce-length/src/ |
D | Main.java | 36 public static void doit1(int[] a) { in doit1() argument 37 a[a.length-3] = 1; in doit1() 38 a[a.length-2] = 2; in doit1() 39 a[a.length-1] = 3; in doit1() 43 a[a.length-0] = 4; in doit1() 58 public static void doit2(int[] a) { in doit2() argument 59 a[a.length-4] = -101; in doit2() 60 a[a.length-3] = -102; in doit2() 61 a[a.length-2] = -103; in doit2() 62 a[a.length-1] = -104; in doit2() [all …]
|
/art/test/530-checker-loops3/src/ |
D | Main.java | 37 public static void oneConstantIndex(int[] a, int[] b) { in oneConstantIndex() argument 39 for (int i = 0; i < a.length; i++) { in oneConstantIndex() 40 a[i] = b[1]; in oneConstantIndex() 57 public static void multipleConstantIndices(int[] a, int[] b) { in multipleConstantIndices() argument 59 for (int i = 0; i < a.length; i++) { in multipleConstantIndices() 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 77 for (int i = 0; i < a.length; i++) { in oneInvariantIndex() 78 a[i] = b[c]; in oneInvariantIndex() 96 public static void multipleInvariantIndices(int[] a, int[] b, int c) { in multipleInvariantIndices() argument [all …]
|
/art/test/105-invoke/src/ |
D | Main.java | 19 int virI_I(int a) { in virI_I() argument 20 return a + 123; in virI_I() 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() [all …]
|
/art/test/667-checker-simd-alignment/src/ |
D | Main.java | 46 static void staticallyAligned(int[] a) { in staticallyAligned() argument 50 a[i] += 1; in staticallyAligned() 81 static void staticallyAlignedN(int[] a) { in staticallyAlignedN() argument 84 for (int i = 1; i < a.length; i++) { in staticallyAlignedN() 85 a[i] += 1; in staticallyAlignedN() 118 static void staticallyMisaligned(int[] a) { in staticallyMisaligned() argument 123 a[i] += 1; in staticallyMisaligned() 158 static void staticallyMisalignedN(int[] a) { in staticallyMisalignedN() argument 162 for (int i = 0; i < a.length; i++) { in staticallyMisalignedN() 163 a[i] += 1; in staticallyMisalignedN() [all …]
|
/art/test/451-regression-add-float/src/ |
D | Main.java | 27 public static int add3(int a) { in add3() argument 28 return 1 + a + 2; in add3() 31 public static long add3(long a) { in add3() argument 32 return 1l + a + 2l; in add3() 35 public static float add3(float a) { in add3() argument 36 return 1f + a + 2f; in add3() 39 public static double add3(double a) { in add3() argument 40 return 1d + a + 2d; in add3() 43 public static void assertEqual(int a, int b) { in assertEqual() argument 44 if (a != b) { in assertEqual() [all …]
|
/art/test/514-shifts/src/ |
D | Main.java | 28 int a = myField; in testIntShiftLeft() local 29 int b = myOtherField << a; in testIntShiftLeft() 33 if (a != 0xFFF) { in testIntShiftLeft() 34 throw new Error("Expected 0xFFF, got " + a); in testIntShiftLeft() 39 int a = myField; in testIntShiftRight() local 40 int b = myOtherField >> a; in testIntShiftRight() 44 if (a != 0xFFF) { in testIntShiftRight() 45 throw new Error("Expected 0xFFF, got " + a); in testIntShiftRight() 50 int a = myField; in testIntUnsignedShiftRight() local 51 int b = myOtherField >>> a; in testIntUnsignedShiftRight() [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/672-checker-throw-method/src/ |
D | Main.java | 72 static public void doit1(int[] a) { in doit1() argument 76 if (a == null) in doit1() 78 for (int i = 0; i < a.length; i++) { in doit1() 79 a[i] = 1; in doit1() 102 static public void doit2(int[] a) { in doit2() argument 106 if (a == null) in doit2() 108 for (int i = 0; i < a.length; i++) { in doit2() 109 a[i] = 2; in doit2() 134 static public void doit3(int[] a) { in doit3() argument 138 checkNotNullDirect(a, par); in doit3() [all …]
|
/art/test/530-checker-lse-simd/src/ |
D | Main.java | 45 static double $noinline$vecgen(double a[], double b[], int n) { in $noinline$vecgen() argument 51 a[i] = (init - 32768.0)/16384.0; in $noinline$vecgen() 52 norma = (a[i] > norma) ? a[i] : norma; // ArrayGet should be removed by LSE. in $noinline$vecgen() 57 b[i] += a[i]; in $noinline$vecgen() 65 double a[] = new double[1024]; in test01() local 66 double norma = $noinline$vecgen(a, a, a.length); in test01() 68 System.out.println((int)a[1023]); in test01() 94 static double $noinline$test02(double a[], int n) { in $noinline$test02() argument 96 a[0] = a[0] / 2; in $noinline$test02() 98 double norma = a[0]; // ArrayGet should be removed by LSE. in $noinline$test02() [all …]
|
/art/test/640-checker-simd/src/ |
D | SimdChar.java | 22 static char[] a; field in SimdChar 38 a[i] += x; in add() 51 a[i] -= x; in sub() 64 a[i] *= x; in mul() 78 a[i] /= x; in div() 91 a[i] = (char) -a[i]; in neg() 104 a[i] = (char) ~a[i]; in not() 117 a[i] <<= 4; in shl4() 129 a[i] >>= 2; in sar2() 142 a[i] >>>= 2; in shr2() [all …]
|
D | SimdByte.java | 22 static byte[] a; field in SimdByte 38 a[i] += x; in add() 51 a[i] -= x; in sub() 64 a[i] *= x; in mul() 77 a[i] /= x; in div() 90 a[i] = (byte) -a[i]; in neg() 103 a[i] = (byte) ~a[i]; in not() 116 a[i] <<= 4; in shl4() 129 a[i] >>= 2; in sar2() 141 a[i] >>>= 2; in shr2() [all …]
|
D | SimdShort.java | 22 static short[] a; field in SimdShort 38 a[i] += x; in add() 51 a[i] -= x; in sub() 64 a[i] *= x; in mul() 78 a[i] /= x; in div() 91 a[i] = (short) -a[i]; in neg() 104 a[i] = (short) ~a[i]; in not() 117 a[i] <<= 4; in shl4() 130 a[i] >>= 2; in sar2() 142 a[i] >>>= 2; in shr2() [all …]
|
D | SimdLong.java | 22 static long[] a; field in SimdLong 38 a[i] += x; in add() 51 a[i] -= x; in sub() 74 a[i] *= x; in mul() 88 a[i] /= x; in div() 101 a[i] = -a[i]; in neg() 114 a[i] = ~a[i]; in not() 127 a[i] <<= 4; in shl4() 140 a[i] >>= 2; in sar2() 153 a[i] >>>= 2; in shr2() [all …]
|
/art/test/530-checker-peel-unroll/src/ |
D | Main.java | 24 int[] a = new int[LENGTH]; field in Main 57 private static final void initIntArray(int[] a) { in initIntArray() argument 58 for (int i = 0; i < a.length; i++) { in initIntArray() 59 a[i] = i % 4; in initIntArray() 63 private static final void initDoubleArray(double[] a) { in initDoubleArray() argument 64 for (int i = 0; i < a.length; i++) { in initDoubleArray() 65 a[i] = (double)(i % 4); in initDoubleArray() 109 private static final void unrollingLoadStoreElimination(int[] a) { in unrollingLoadStoreElimination() argument 111 a[i] += a[i + 1]; in unrollingLoadStoreElimination() 150 private static final void unrollingSwitch(int[] a) { in unrollingSwitch() argument [all …]
|
/art/test/669-checker-break/src/ |
D | Main.java | 69 static int breakLoop(int[] a) { in breakLoop() argument 71 int u = a.length - 1; in breakLoop() 75 a[i] = 1; in breakLoop() 108 static int breakLoopDown(int[] a) { in breakLoopDown() argument 110 int u = a.length - 1; in breakLoopDown() 114 a[i] = 2; in breakLoopDown() 170 static int breakLoopSafeConst(int[] a) { in breakLoopSafeConst() argument 176 a[i - l] = 3; in breakLoopSafeConst() 202 static int breakLoopUnsafeConst(int[] a) { in breakLoopUnsafeConst() argument 208 a[i - l] = 4; in breakLoopUnsafeConst() [all …]
|
/art/test/405-optimizing-long-allocator/src/ |
D | Main.java | 41 long a = 0; in $opt$TestLostCopy() local 44 b = a; in $opt$TestLostCopy() 45 a++; in $opt$TestLostCopy() 46 } while (a != 5); in $opt$TestLostCopy() 51 long a = 0; in $opt$TestTwoLive() local 54 a++; in $opt$TestTwoLive() 56 } while (a != 5); in $opt$TestTwoLive() 57 return a - b; in $opt$TestTwoLive() 61 long a = 0; in $opt$TestThreeLive() local 65 a++; in $opt$TestThreeLive() [all …]
|
/art/test/530-checker-loops4/src/ |
D | Main.java | 36 public static int geo1(int a) { in geo1() argument 38 a *= 10; in geo1() 40 return a; in geo1() 57 public static int geo2(int a) { in geo2() argument 59 a <<= 1; in geo2() 61 return a; in geo2() 78 public static int geo3(int a) { in geo3() argument 80 a /= 3; in geo3() 82 return a; in geo3() 97 public static int geo4(int a) { in geo4() argument [all …]
|
/art/test/404-optimizing-allocator/src/ |
D | Main.java | 35 int a = 0; in $opt$reg$TestLostCopy() local 38 b = a; in $opt$reg$TestLostCopy() 39 a++; in $opt$reg$TestLostCopy() 40 } while (a != 5); in $opt$reg$TestLostCopy() 45 int a = 0; in $opt$reg$TestTwoLive() local 48 a++; in $opt$reg$TestTwoLive() 50 } while (a != 5); in $opt$reg$TestTwoLive() 51 return a - b; in $opt$reg$TestTwoLive() 55 int a = 0; in $opt$reg$TestThreeLive() local 59 a++; in $opt$reg$TestThreeLive() [all …]
|
/art/test/012-math/src/ |
D | Main.java | 24 int a, b, res; in math_012() local 27 a = 3; in math_012() 30 res = a + b; in math_012() 32 res = a - b; in math_012() 34 res = 5 - a; in math_012() 36 res = a - 5; 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() [all …]
|