Home
last modified time | relevance | path

Searched refs:y (Results 1 – 25 of 88) sorted by relevance

1234

/art/test/561-shared-slowpaths/src/
DMain.java27 private static void init(int[] x, int [] y, int l1, int h1, int l2, int h2) { in init() argument
32 y[i] = i; in init()
40 int[] y = new int[100]; in main() local
45 reset(x, y); in main()
47 init(x, y, 0, 100, 0, 100); in main()
54 expectEquals(y[i], i); in main()
59 reset(x, y); in main()
61 init(null, y, 0, 100, 0, 100); in main()
68 expectEquals(y[i], 0); in main()
73 reset(x, y); in main()
[all …]
/art/test/570-checker-select/src/
DMain.java39 public static int BoolCond_IntVarVar(boolean cond, int x, int y) { in BoolCond_IntVarVar() argument
44 return cond ? x : y; in BoolCond_IntVarVar()
91 public static int BoolCond_IntCstVar(boolean cond, int y) { in BoolCond_IntCstVar() argument
96 return cond ? 1 : y; in BoolCond_IntCstVar()
118 public static long BoolCond_LongVarVar(boolean cond, long x, long y) { in BoolCond_LongVarVar() argument
123 return cond ? x : y; in BoolCond_LongVarVar()
172 public static long BoolCond_LongCstVar(boolean cond, long y) { in BoolCond_LongCstVar() argument
177 return cond ? 1L : y; in BoolCond_LongCstVar()
188 public static float BoolCond_FloatVarVar(boolean cond, float x, float y) { in BoolCond_FloatVarVar() argument
193 return cond ? x : y; in BoolCond_FloatVarVar()
[all …]
/art/test/651-checker-byte-simd-minmax/src/
DMain.java50 private static void doitMin(byte[] x, byte[] y, byte[] z) { in doitMin() argument
51 int min = Math.min(x.length, Math.min(y.length, z.length)); in doitMin()
53 x[i] = (byte) Math.min(y[i], z[i]); in doitMin()
88 private static void doitMinUnsigned(byte[] x, byte[] y, byte[] z) { in doitMinUnsigned() argument
89 int min = Math.min(x.length, Math.min(y.length, z.length)); in doitMinUnsigned()
91 x[i] = (byte) Math.min(y[i] & 0xff, z[i] & 0xff); in doitMinUnsigned()
123 private static void doitMax(byte[] x, byte[] y, byte[] z) { in doitMax() argument
124 int min = Math.min(x.length, Math.min(y.length, z.length)); in doitMax()
126 x[i] = (byte) Math.max(y[i], z[i]); in doitMax()
161 private static void doitMaxUnsigned(byte[] x, byte[] y, byte[] z) { in doitMaxUnsigned() argument
[all …]
/art/test/474-checker-boolean-input/src/
DMain.java54 public static boolean InlineAnd(boolean x, boolean y) { in InlineAnd() argument
55 return x & y; in InlineAnd()
58 public static boolean TestAndAsBoolean(boolean x, boolean y) { in TestAndAsBoolean() argument
59 return InlineAnd(x, y) != true ? true : false; in TestAndAsBoolean()
71 public static boolean InlineOr(boolean x, boolean y) { in InlineOr() argument
72 return x | y; in InlineOr()
75 public static boolean TestOrAsBoolean(boolean x, boolean y) { in TestOrAsBoolean() argument
76 return InlineOr(x, y) != true ? true : false; in TestOrAsBoolean()
88 public static boolean InlineXor(boolean x, boolean y) { in InlineXor() argument
89 return x ^ y; in InlineXor()
[all …]
/art/test/463-checker-boolean-simplifier/src/
DMain.java97 public static boolean GreaterThan(int x, int y) { in GreaterThan() argument
98 return (x <= y) ? false : true; in GreaterThan()
125 public static boolean LessThan(int x, int y) { in LessThan() argument
126 return (x < y) ? true : false; in LessThan()
165 public static boolean ValuesOrdered(int x, int y, int z) { in ValuesOrdered() argument
166 return (x <= y) == (y <= z); in ValuesOrdered()
207 public static int SimpleTrueBlock(boolean x, int y) { in SimpleTrueBlock() argument
208 return x ? y + 42 : 43; in SimpleTrueBlock()
223 public static int SimpleFalseBlock(boolean x, int y) { in SimpleFalseBlock() argument
224 return x ? 42 : y + 43; in SimpleFalseBlock()
[all …]
/art/test/651-checker-short-simd-minmax/src/
DMain.java50 private static void doitMin(short[] x, short[] y, short[] z) { in doitMin() argument
51 int min = Math.min(x.length, Math.min(y.length, z.length)); in doitMin()
53 x[i] = (short) Math.min(y[i], z[i]); in doitMin()
88 private static void doitMinUnsigned(short[] x, short[] y, short[] z) { in doitMinUnsigned() argument
89 int min = Math.min(x.length, Math.min(y.length, z.length)); in doitMinUnsigned()
91 x[i] = (short) Math.min(y[i] & 0xffff, z[i] & 0xffff); in doitMinUnsigned()
123 private static void doitMax(short[] x, short[] y, short[] z) { in doitMax() argument
124 int min = Math.min(x.length, Math.min(y.length, z.length)); in doitMax()
126 x[i] = (short) Math.max(y[i], z[i]); in doitMax()
161 private static void doitMaxUnsigned(short[] x, short[] y, short[] z) { in doitMaxUnsigned() argument
[all …]
/art/test/ProtoCompare2/
DProtoCompare2.java18 int m1(short x, int y, long z) { return x + y + (int)z; } in m1() argument
19 int m2(short x, int y, long z) { return x + y + (int)z; } in m2() argument
20 int m3(long x, int y, short z) { return (int)x + y + z; } in m3() argument
21 long m4(long x, int y, short z) { return x + y + z; } in m4() argument
/art/test/ProtoCompare/
DProtoCompare.java18 int m1(short x, int y, long z) { return x + y + (int)z; } in m1() argument
19 int m2(short x, int y, long z) { return x + y + (int)z; } in m2() argument
20 int m3(long x, int y, short z) { return (int)x + y + z; } in m3() argument
21 long m4(long x, int y, short z) { return x + y + z; } in m4() argument
/art/test/651-checker-int-simd-minmax/src/
DMain.java49 private static void doitMin(int[] x, int[] y, int[] z) { in doitMin() argument
50 int min = Math.min(x.length, Math.min(y.length, z.length)); in doitMin()
52 x[i] = Math.min(y[i], z[i]); in doitMin()
83 private static void doitMax(int[] x, int[] y, int[] z) { in doitMax() argument
84 int min = Math.min(x.length, Math.min(y.length, z.length)); in doitMax()
86 x[i] = Math.max(y[i], z[i]); in doitMax()
102 int[] y = new int[total]; in main() local
108 y[k] = interesting[i]; in main()
115 doitMin(x, y, z); in main()
117 int expected = Math.min(y[i], z[i]); in main()
[all …]
/art/test/651-checker-char-simd-minmax/src/
DMain.java50 private static void doitMin(char[] x, char[] y, char[] z) { in doitMin() argument
51 int min = Math.min(x.length, Math.min(y.length, z.length)); in doitMin()
53 x[i] = (char) Math.min(y[i], z[i]); in doitMin()
85 private static void doitMax(char[] x, char[] y, char[] z) { in doitMax() argument
86 int min = Math.min(x.length, Math.min(y.length, z.length)); in doitMax()
88 x[i] = (char) Math.max(y[i], z[i]); in doitMax()
104 char[] y = new char[total]; in main() local
110 y[k] = interesting[i]; in main()
117 doitMin(x, y, z); in main()
119 char expected = (char) Math.min(y[i], z[i]); in main()
[all …]
/art/test/651-checker-long-simd-minmax/src/
DMain.java41 private static void doitMin(long[] x, long[] y, long[] z) { in doitMin() argument
42 int min = Math.min(x.length, Math.min(y.length, z.length)); in doitMin()
44 x[i] = Math.min(y[i], z[i]); in doitMin()
66 private static void doitMax(long[] x, long[] y, long[] z) { in doitMax() argument
67 int min = Math.min(x.length, Math.min(y.length, z.length)); in doitMax()
69 x[i] = Math.max(y[i], z[i]); in doitMax()
91 long[] y = new long[total]; in main() local
97 y[k] = interesting[i]; in main()
104 doitMin(x, y, z); in main()
106 long expected = Math.min(y[i], z[i]); in main()
[all …]
/art/test/480-checker-dead-blocks/src/
DMain.java53 public static int testTrueBranch(int x, int y) { in testTrueBranch() argument
56 z = x + y; in testTrueBranch()
58 z = x - y; in testTrueBranch()
85 public static int testFalseBranch(int x, int y) { in testFalseBranch() argument
88 z = x + y; in testFalseBranch()
90 z = x - y; in testFalseBranch()
179 public static int testRemoveSuspendCheck(int x, int y) { in testRemoveSuspendCheck() argument
182 while (y > 0) { in testRemoveSuspendCheck()
186 y--; in testRemoveSuspendCheck()
/art/test/478-checker-inliner-nested-loop/src/
DMain.java26 public static int Inline(int x, int y) { in Inline() argument
28 if (x <= y) { in Inline()
29 result = x * y; in Inline()
46 for (int y = 0; y < max_y; ++y) { in NestedLoop()
47 total += Inline(x, y); in NestedLoop()
/art/test/651-checker-double-simd-minmax/src/
DMain.java38 private static void doitMin(double[] x, double[] y, double[] z) { in doitMin() argument
39 int min = Math.min(x.length, Math.min(y.length, z.length)); in doitMin()
41 x[i] = Math.min(y[i], z[i]); in doitMin()
61 private static void doitMax(double[] x, double[] y, double[] z) { in doitMax() argument
62 int min = Math.min(x.length, Math.min(y.length, z.length)); in doitMax()
64 x[i] = Math.max(y[i], z[i]); in doitMax()
90 double[] y = new double[total]; in main() local
96 y[k] = interesting[i]; in main()
103 doitMin(x, y, z); in main()
105 double expected = Math.min(y[i], z[i]); in main()
[all …]
/art/test/651-checker-float-simd-minmax/src/
DMain.java38 private static void doitMin(float[] x, float[] y, float[] z) { in doitMin() argument
39 int min = Math.min(x.length, Math.min(y.length, z.length)); in doitMin()
41 x[i] = Math.min(y[i], z[i]); in doitMin()
61 private static void doitMax(float[] x, float[] y, float[] z) { in doitMax() argument
62 int min = Math.min(x.length, Math.min(y.length, z.length)); in doitMax()
64 x[i] = Math.max(y[i], z[i]); in doitMax()
90 float[] y = new float[total]; in main() local
96 y[k] = interesting[i]; in main()
103 doitMin(x, y, z); in main()
105 float expected = Math.min(y[i], z[i]); in main()
[all …]
/art/runtime/base/
Dstringpiece.h174 inline bool operator==(const StringPiece& x, const StringPiece& y) {
176 if (len != y.size()) {
181 const char* p2 = y.data();
200 inline bool operator==(const StringPiece& x, const char* y) {
201 if (y == nullptr) {
204 return strncmp(x.data(), y, x.size()) == 0 && y[x.size()] == '\0';
208 inline bool operator!=(const StringPiece& x, const StringPiece& y) {
209 return !(x == y);
212 inline bool operator!=(const StringPiece& x, const char* y) {
213 return !(x == y);
[all …]
/art/test/004-ReferenceMap/src/
DMain.java23 Object y = null; in f() local
25 y = new Object(); in f()
26 x[2] = y; // out-of-bound exception in f()
28 if (y == null) { in f()
32 x[1] = y; in f()
35 return y; in f()
/art/test/003-omnibus-opcodes/src/
DIntMath.java164 static int[] intOperTest(int x, int y) { in intOperTest() argument
170 results[0] = x + y; in intOperTest()
171 results[1] = x - y; in intOperTest()
172 results[2] = x * y; in intOperTest()
174 results[4] = x / y; in intOperTest()
175 results[5] = x % -y; in intOperTest()
176 results[6] = x & y; in intOperTest()
177 results[7] = x | y; in intOperTest()
178 results[8] = x ^ y; in intOperTest()
181 results[9] = x + ((((((((x + y) - y) * y) / y) % y) & y) | y) ^ y); in intOperTest()
[all …]
DFloatMath.java135 static float[] floatOperTest(float x, float y) { in floatOperTest() argument
142 results[0] = x + y; in floatOperTest()
143 results[1] = x - y; in floatOperTest()
144 results[2] = x * y; in floatOperTest()
145 results[3] = x / y; in floatOperTest()
146 results[4] = x % -y; in floatOperTest()
150 tmp += y; in floatOperTest()
153 tmp -= y; in floatOperTest()
156 tmp *= y; in floatOperTest()
159 tmp /= y; in floatOperTest()
[all …]
/art/test/656-checker-simd-opt/src/
DMain.java43 private static void unroll(float[] x, float[] y) { in unroll() argument
45 x[i] = y[i] * 2.5f; in unroll()
82 float[] y = new float[100]; in main() local
85 y[i] = 2.0f; in main()
87 unroll(x, y); in main()
90 expectEquals(2.0f, y[i]); in main()
/art/test/481-regression-phi-cond/src/
DMain.java25 public static boolean inlinePhi(boolean x, boolean y, boolean z) { in inlinePhi() argument
30 phi = y; in inlinePhi()
39 public static boolean testCase(boolean x, boolean y, boolean z) { in testCase() argument
41 boolean phi = inlinePhi(x, y, z); in testCase()
/art/compiler/optimizing/
Dnodes_shared.h74 auto Compute(T x, U y) const -> decltype(x & ~y) {
75 static_assert(std::is_same<decltype(x & ~y), decltype(x | ~y)>::value &&
76 std::is_same<decltype(x & ~y), decltype(x ^ ~y)>::value,
80 return x & ~y;
82 return x | ~y;
84 return x ^ ~y;
91 HConstant* Evaluate(HIntConstant* x, HIntConstant* y) const OVERRIDE { in Evaluate() argument
93 Compute(x->GetValue(), y->GetValue()), GetDexPc()); in Evaluate()
95 HConstant* Evaluate(HLongConstant* x, HLongConstant* y) const OVERRIDE { in Evaluate() argument
97 Compute(x->GetValue(), y->GetValue()), GetDexPc()); in Evaluate()
[all …]
/art/test/101-fibonacci/src/
DMain.java49 int y = fibonacci(x); in main() local
50 System.out.printf("fibonacci(%d)=%d\n", x, y); in main()
51 y = fibonacci(x + 1); in main()
52 System.out.printf("fibonacci(%d)=%d\n", x + 1, y); in main()
/art/test/107-int-math2/src/
DMain.java337 static int intOperTest(int x, int y) { in intOperTest() argument
341 results[0] = x + y; in intOperTest()
342 results[1] = x - y; in intOperTest()
343 results[2] = x * y; in intOperTest()
345 results[4] = x / y; in intOperTest()
346 results[5] = x % -y; in intOperTest()
347 results[6] = x & y; in intOperTest()
348 results[7] = x | y; in intOperTest()
349 results[8] = x ^ y; in intOperTest()
352 results[9] = x + ((((((((x + y) - y) * y) / y) % y) & y) | y) ^ y); in intOperTest()
[all …]
/art/test/476-checker-ctor-memory-barrier/src/
DMain.java129 final int y; field in HaveFinalsAndInheritFromClassWithFinals
141 y = 0; in HaveFinalsAndInheritFromClassWithFinals()
152 y = 0; in HaveFinalsAndInheritFromClassWithFinals()
173 y = 0; in HaveFinalsAndInheritFromClassWithFinals()

1234