Home
last modified time | relevance | path

Searched refs:x (Results 1 – 25 of 247) sorted by relevance

12345678910

/art/test/660-checker-sad-int/src/
DMain.java34 static int sad1(int x, int y) { in sad1() argument
35 return x >= y ? x - y : y - x; in sad1()
45 static int sad2(int x, int y) { in sad2() argument
46 int diff = x - y; in sad2()
58 static int sad3(int x, int y) { in sad3() argument
59 int diff = x - y; in sad3()
70 static int sad3Alt(int x, int y) { in sad3Alt() argument
71 int diff = x - y; in sad3Alt()
82 static long sadL1(int x, int y) { in sadL1() argument
83 long xl = x; in sadL1()
[all …]
/art/test/680-sink-regression/src/
DMain.java25 int x; field in Main.N
31 int x = 1; in doit() local
34 if (n1.x == 0) { in doit()
36 x = 3; in doit()
38 f = x; in doit()
40 throw new FileNotFoundException("n3" + n3.x); in doit()
43 return x; in doit()
50 int x = 0; in main() local
55 x = t.doit(null); in main()
57 x = -1; in main()
[all …]
/art/test/530-checker-loops1/src/
DMain.java34 private static int linear(int[] x) { in linear() argument
36 for (int i = 0; i < x.length; i++) { in linear()
37 result += x[i]; in linear()
48 private static int linearDown(int[] x) { in linearDown() argument
50 for (int i = x.length - 1; i >= 0; i--) { in linearDown()
51 result += x[i]; in linearDown()
62 private static int linearObscure(int[] x) { in linearObscure() argument
64 for (int i = x.length - 1; i >= 0; i--) { in linearObscure()
66 result += x[k - 5]; in linearObscure()
77 private static int linearVeryObscure(int[] x) { in linearVeryObscure() argument
[all …]
/art/test/660-checker-sad-char/src/
DMain.java29 static int sad1(char x, char y) { in sad1() argument
30 return x >= y ? x - y : y - x; in sad1()
40 static int sad2(char x, char y) { in sad2() argument
41 int diff = x - y; in sad2()
53 static int sad3(char x, char y) { in sad3() argument
54 int diff = x - y; in sad3()
65 static int sad3Alt(char x, char y) { in sad3Alt() argument
66 int diff = x - y; in sad3Alt()
77 static long sadL1(char x, char y) { in sadL1() argument
78 long xl = x; in sadL1()
[all …]
/art/test/660-checker-sad-short/src/
DMain.java29 static int sad1(short x, short y) { in sad1() argument
30 return x >= y ? x - y : y - x; in sad1()
40 static int sad2(short x, short y) { in sad2() argument
41 int diff = x - y; in sad2()
53 static int sad3(short x, short y) { in sad3() argument
54 int diff = x - y; in sad3()
65 static int sad3Alt(short x, short y) { in sad3Alt() argument
66 int diff = x - y; in sad3Alt()
77 static long sadL1(short x, short y) { in sadL1() argument
78 long xl = x; in sadL1()
[all …]
/art/test/660-checker-sad-byte/src/
DMain.java29 static int sad1(byte x, byte y) { in sad1() argument
30 return x >= y ? x - y : y - x; in sad1()
40 static int sad2(byte x, byte y) { in sad2() argument
41 int diff = x - y; in sad2()
53 static int sad3(byte x, byte y) { in sad3() argument
54 int diff = x - y; in sad3()
65 static int sad3Alt(byte x, byte y) { in sad3Alt() argument
66 int diff = x - y; in sad3Alt()
77 static long sadL1(byte x, byte y) { in sadL1() argument
78 long xl = x; in sadL1()
[all …]
/art/test/480-checker-dead-blocks/src/
DMain.java34 public static int testTrueBranch(int x, int y) { in testTrueBranch() argument
38 return (Integer) m.invoke(null, x, y); in testTrueBranch()
44 public static int testFalseBranch(int x, int y) { in testFalseBranch() argument
48 return (Integer) m.invoke(null, x, y); in testFalseBranch()
60 public static int testRemoveLoop(int x) { in testRemoveLoop() argument
62 for (int i = 0; i < x; ++i) { in testRemoveLoop()
63 x *= x; in testRemoveLoop()
66 return x; in testRemoveLoop()
77 public static int testInfiniteLoop(int x) { in testInfiniteLoop() argument
79 x++; in testInfiniteLoop()
[all …]
/art/test/660-checker-sad-long/src/
DMain.java34 static long sad1(long x, long y) { in sad1() argument
35 return x >= y ? x - y : y - x; in sad1()
45 static long sad2(long x, long y) { in sad2() argument
46 long diff = x - y; in sad2()
58 static long sad3(long x, long y) { in sad3() argument
59 long diff = x - y; in sad3()
70 static long sad3Alt(long x, long y) { in sad3Alt() argument
71 long diff = x - y; in sad3Alt()
93 long x = interesting[i]; in main() local
95 long e1 = x >= y ? x - y : y - x; // still select in main()
[all …]
/art/test/661-checker-simd-reduc/src/
DMain.java31 private static byte reductionByte(byte[] x) { in reductionByte() argument
33 for (int i = 0; i < x.length; i++) { in reductionByte()
34 sum += x[i]; in reductionByte()
39 private static short reductionShort(short[] x) { in reductionShort() argument
41 for (int i = 0; i < x.length; i++) { in reductionShort()
42 sum += x[i]; in reductionShort()
47 private static char reductionChar(char[] x) { in reductionChar() argument
49 for (int i = 0; i < x.length; i++) { in reductionChar()
50 sum += x[i]; in reductionChar()
74 private static int reductionInt(int[] x) { in reductionInt() argument
[all …]
/art/test/660-checker-simd-sad-int/src/
DMain.java42 private static int sadInt2Int(int[] x, int[] y) { in sadInt2Int() argument
43 int min_length = Math.min(x.length, y.length); in sadInt2Int()
46 sad += Math.abs(x[i] - y[i]); in sadInt2Int()
68 private static int sadInt2IntAlt(int[] x, int[] y) { in sadInt2IntAlt() argument
69 int min_length = Math.min(x.length, y.length); in sadInt2IntAlt()
72 int s = x[i]; in sadInt2IntAlt()
99 private static int sadInt2IntAlt2(int[] x, int[] y) { in sadInt2IntAlt2() argument
100 int min_length = Math.min(x.length, y.length); in sadInt2IntAlt2()
103 int s = x[i]; in sadInt2IntAlt2()
138 private static long sadInt2Long(int[] x, int[] y) { in sadInt2Long() argument
[all …]
/art/test/474-checker-boolean-input/src/
DMain.java37 public static boolean InlinePhi(int x) { in InlinePhi() argument
38 return (x == 42) ? f1 : f2; in InlinePhi()
41 public static boolean TestPhiAsBoolean(int x) { in TestPhiAsBoolean() argument
42 return InlinePhi(x) != true ? true : false; in TestPhiAsBoolean()
54 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()
[all …]
/art/test/679-checker-minmax/src/
DMain.java550 public static int minmax1(int x) { in minmax1() argument
552 if (x > 100) { in minmax1()
553 x = 100; in minmax1()
555 if (x < -100) { in minmax1()
556 x = -100; in minmax1()
558 return x; in minmax1()
581 public static int minmax2(int x) { in minmax2() argument
583 if (x > 100) { in minmax2()
584 x = 100; in minmax2()
585 } else if (x < -100) { in minmax2()
[all …]
/art/test/660-checker-simd-sad-long/src/
DMain.java46 private static long sadLong2Long(long[] x, long[] y) { in sadLong2Long() argument
47 int min_length = Math.min(x.length, y.length); in sadLong2Long()
50 sad += Math.abs(x[i] - y[i]); in sadLong2Long()
73 private static long sadLong2LongAlt(long[] x, long[] y) { in sadLong2LongAlt() argument
74 int min_length = Math.min(x.length, y.length); in sadLong2LongAlt()
77 long s = x[i]; in sadLong2LongAlt()
108 private static long sadLong2LongAlt2(long[] x, long[] y) { in sadLong2LongAlt2() argument
109 int min_length = Math.min(x.length, y.length); in sadLong2LongAlt2()
112 long s = x[i]; in sadLong2LongAlt2()
145 private static long sadLong2LongAt1(long[] x, long[] y) { in sadLong2LongAt1() argument
[all …]
/art/test/552-checker-x86-avx2-bit-manipulation/src/
DMain.java49 public static long and_not_64( long x, long y) { in and_not_64() argument
53 x = x & ~i; in and_not_64()
56 return x & ~y; in and_not_64()
80 public static int and_not_32( int x, int y) { in and_not_32() argument
84 x = x & ~i; in and_not_32()
87 return x & ~y; in and_not_32()
124 public static int reset_lowest_set_bit_32(int x) { in reset_lowest_set_bit_32() argument
125 int y = x; in reset_lowest_set_bit_32()
163 public static long reset_lowest_set_bit_64(long x) { in reset_lowest_set_bit_64() argument
164 long y = x; in reset_lowest_set_bit_64()
[all …]
/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
29 x[i] = i; in init()
39 int[] x = new int[100]; in main() local
45 reset(x, y); in main()
47 init(x, y, 0, 100, 0, 100); in main()
53 expectEquals(x[i], i); in main()
59 reset(x, y); in main()
67 expectEquals(x[i], 0); in main()
73 reset(x, y); in main()
75 init(x, y, -1, 100, 0, 100); 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()
65 public static int BoolCond_IntVarCst(boolean cond, int x) { in BoolCond_IntVarCst() argument
70 return cond ? x : 1; in BoolCond_IntVarCst()
118 public static long BoolCond_LongVarVar(boolean cond, long x, long y) { in BoolCond_LongVarVar() argument
123 return cond ? x : y; in BoolCond_LongVarVar()
145 public static long BoolCond_LongVarCst(boolean cond, long x) { in BoolCond_LongVarCst() argument
150 return cond ? x : 1L; in BoolCond_LongVarCst()
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/623-checker-loop-regressions/src/
DMain.java102 short x = 0; in transferNarrowWrap() local
107 w = x; // wrap-around in transferNarrowWrap()
108 x += 2; // narrowing linear in transferNarrowWrap()
125 int x = 0; in polynomialShort() local
127 x = x - i; // polynomial on narrowing linear in polynomialShort()
129 return x; in polynomialShort()
144 int x = 0; in polynomialIntFromLong() local
146 x = x - (int) i; // polynomial on narrowing linear in polynomialIntFromLong()
148 return x; in polynomialIntFromLong()
162 int x = 0; in polynomialInt() local
[all …]
/art/test/530-checker-loops2/src/
DMain.java54 int[] x = { 1, 3 }; in periodicIdiom() local
59 result += x[k]; in periodicIdiom()
72 int[] x = { 1, 3 }; in periodicSequence2() local
78 result += x[k]; in periodicSequence2()
96 int[] x = { 1, 3, 5, 7 }; in periodicSequence4() local
104 result += x[k] + x[l] + x[m] + x[n]; // all used at once in periodicSequence4()
121 int[] x = { 1, 3 }; in periodicXorSequence() local
126 result += x[k]; in periodicXorSequence()
139 int[] x = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; in justRightUp1() local
142 result += x[k++]; in justRightUp1()
[all …]
/art/test/665-checker-simd-zero/src/
DMain.java32 private static void zeroz(boolean[] x) { in zeroz() argument
33 for (int i = 0; i < x.length; i++) { in zeroz()
34 x[i] = false; in zeroz()
48 private static void zerob(byte[] x) { in zerob() argument
49 for (int i = 0; i < x.length; i++) { in zerob()
50 x[i] = 0; in zerob()
64 private static void zeroc(char[] x) { in zeroc() argument
65 for (int i = 0; i < x.length; i++) { in zeroc()
66 x[i] = 0; in zeroc()
80 private static void zeros(short[] x) { in zeros() argument
[all …]
/art/test/674-hiddenapi/src/
DParentClass.java141 public ParentClass(int x, short y) {} in ParentClass() argument
142 ParentClass(float x, short y) {} in ParentClass() argument
143 protected ParentClass(long x, short y) {} in ParentClass() argument
144 private ParentClass(double x, short y) {} in ParentClass() argument
147 public ParentClass(int x, boolean y) {} in ParentClass() argument
148 ParentClass(float x, boolean y) {} in ParentClass() argument
149 protected ParentClass(long x, boolean y) {} in ParentClass() argument
150 private ParentClass(double x, boolean y) {} in ParentClass() argument
153 public ParentClass(int x, byte y) {} in ParentClass() argument
154 ParentClass(float x, byte y) {} in ParentClass() argument
[all …]
/art/libartbase/base/
Druntime_debug.h43 #define DECLARE_RUNTIME_DEBUG_FLAG(x) \ argument
44 static constexpr bool x = false;
47 #define DEFINE_RUNTIME_DEBUG_FLAG(C, x) \ argument
48 static_assert(!C::x, "Unexpected enabled flag in release build");
50 #define DECLARE_RUNTIME_DEBUG_FLAG(x) \
51 static bool x;
52 #define DEFINE_RUNTIME_DEBUG_FLAG(C, x) \
53 bool C::x = RegisterRuntimeDebugFlag(&C::x);
/art/test/620-checker-bce-intrinsics/src/
DMain.java30 int x = 0; in oneArray() local
32 x += a[i]; in oneArray()
34 return x; in oneArray()
44 int x = 0; in oneArrayAbs() local
46 x += a[i]; in oneArrayAbs()
48 return x; in oneArrayAbs()
60 int x = 0; in twoArrays() local
62 x += a[i] + b[i]; in twoArrays()
64 return x; in twoArrays()
76 int x = 0; in threeArrays() local
[all …]
/art/test/463-checker-boolean-simplifier/src-art/
DMain.java61 public static boolean GreaterThan(int x, int y) { in GreaterThan() argument
62 return (x <= y) ? false : true; in GreaterThan()
89 public static boolean LessThan(int x, int y) { in LessThan() argument
90 return (x < y) ? true : false; in LessThan()
105 public static int SimpleTrueBlock(boolean x, int y) { in SimpleTrueBlock() argument
106 return x ? y + 42 : 43; in SimpleTrueBlock()
121 public static int SimpleFalseBlock(boolean x, int y) { in SimpleFalseBlock() argument
122 return x ? 42 : y + 43; in SimpleFalseBlock()
139 public static int SimpleBothBlocks(boolean x, int y, int z) { in SimpleBothBlocks() argument
140 return x ? y + 42 : z + 43; in SimpleBothBlocks()
[all …]
/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/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

12345678910