Home
last modified time | relevance | path

Searched refs:a (Results 1 – 25 of 1119) sorted by relevance

12345678910>>...45

/art/test/957-methodhandle-transforms/
Dexpected.txt19 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/410-floats/src/
DMain.java20 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/681-checker-abs/src/
DMain.java38 public static int absI(int a) { in absI() argument
39 return Math.abs(a); in absI()
54 public static long absL(long a) { in absL() argument
55 return Math.abs(a); in absL()
77 public static int abs1(int a) { in abs1() argument
78 return a < 0 ? -a : a; in abs1()
96 public static int abs2(int a) { in abs2() argument
97 return a <= 0 ? -a : a; in abs2()
115 public static int abs3(int a) { in abs3() argument
116 return a > 0 ? a : -a; in abs3()
[all …]
/art/test/551-checker-shifter-operand/src/
DMain.java158 public static int $opt$noinline$sameInput(int a) { in $opt$noinline$sameInput() argument
160 int tmp = a << 2; in $opt$noinline$sameInput()
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/582-checker-bce-length/src/
DMain.java36 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/620-checker-bce-intrinsics/src/
DMain.java29 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/105-invoke/src/
DMain.java19 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/679-checker-minmax/src/
DMain.java47 public static int minI(int a) { in minI() argument
48 return Math.min(a, 20); in minI()
72 public static long minL(long a) { in minL() argument
73 return Math.min(a, 20L); in minL()
97 public static int maxI(int a) { in maxI() argument
98 return Math.max(a, 20); in maxI()
122 public static long maxL(long a) { in maxL() argument
123 return Math.max(a, 20L); in maxL()
136 public static int minIntConstantZero(int a) { in minIntConstantZero() argument
137 return Math.min(a, 0); in minIntConstantZero()
[all …]
/art/test/530-checker-loops3/src/
DMain.java37 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/451-regression-add-float/src/
DMain.java27 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/667-checker-simd-alignment/src/
DMain.java46 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/runtime/entrypoints/quick/
Dquick_math_entrypoints.cc24 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/514-shifts/src/
DMain.java28 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/test/530-checker-lse-simd/src/
DMain.java45 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()
95 static double $noinline$test02(double a[], int n) { in $noinline$test02() argument
97 a[0] = a[0] / 2; in $noinline$test02()
99 double norma = a[0]; // ArrayGet should be removed by LSE. in $noinline$test02()
[all …]
/art/test/672-checker-throw-method/src/
DMain.java72 static public void doit1(int[] a) { in doit1() argument
74 if (a == null) in doit1()
76 for (int i = 0; i < a.length; i++) { in doit1()
77 a[i] = 1; in doit1()
100 static public void doit2(int[] a) { in doit2() argument
102 if (a == null) in doit2()
104 for (int i = 0; i < a.length; i++) { in doit2()
105 a[i] = 2; in doit2()
130 static public void doit3(int[] a) { in doit3() argument
132 checkNotNullDirect(a, par); in doit3()
[all …]
/art/test/640-checker-simd/src/
DSimdChar.java22 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 …]
DSimdByte.java22 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 …]
DSimdShort.java22 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 …]
/art/test/669-checker-break/src/
DMain.java58 static int breakLoop(int[] a) { in breakLoop() argument
60 int u = a.length - 1; in breakLoop()
64 a[i] = 1; in breakLoop()
97 static int breakLoopDown(int[] a) { in breakLoopDown() argument
99 int u = a.length - 1; in breakLoopDown()
103 a[i] = 2; in breakLoopDown()
148 static int breakLoopSafeConst(int[] a) { in breakLoopSafeConst() argument
154 a[i - l] = 3; in breakLoopSafeConst()
180 static int breakLoopUnsafeConst(int[] a) { in breakLoopUnsafeConst() argument
186 a[i - l] = 4; in breakLoopUnsafeConst()
[all …]
/art/test/530-checker-peel-unroll/src/
DMain.java24 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/405-optimizing-long-allocator/src/
DMain.java41 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/402-optimizing-control-flow/src/
DMain.java48 static int $opt$testIfEq1(int a) { in $opt$testIfEq1() argument
49 if (a + 1 == 43) { in $opt$testIfEq1()
56 static int $opt$testIfEq2(int a) { in $opt$testIfEq2() argument
57 if (a + 1 == 41) { in $opt$testIfEq2()
64 static int $opt$testWhileLoop(int a) { in $opt$testWhileLoop() argument
65 while (a++ != 44) {} in $opt$testWhileLoop()
66 return a; in $opt$testWhileLoop()
69 static int $opt$testDoWhileLoop(int a) { in $opt$testDoWhileLoop() argument
71 } while (a++ != 44); in $opt$testDoWhileLoop()
72 return a; in $opt$testDoWhileLoop()
[all …]
/art/test/404-optimizing-allocator/src/
DMain.java35 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/530-checker-loops4/src/
DMain.java36 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/477-checker-bound-type/src/
DMain.java22 public static Object boundTypeForIf(Object a) { in boundTypeForIf() argument
23 if (a != null) { in boundTypeForIf()
24 return a.toString(); in boundTypeForIf()
32 public static Object boundTypeForInstanceOf(Object a) { in boundTypeForInstanceOf() argument
33 if (a instanceof Main) { in boundTypeForInstanceOf()
34 return (Main)a; in boundTypeForInstanceOf()
42 public static Object noBoundTypeForIf(Object a) { in noBoundTypeForIf() argument
43 if (a == null) { in noBoundTypeForIf()
52 public static Object noBoundTypeForInstanceOf(Object a) { in noBoundTypeForInstanceOf() argument
53 if (a instanceof Main) { in noBoundTypeForInstanceOf()
[all …]

12345678910>>...45