Lines Matching refs:opt

41     expectEquals(48, $opt$ShlConst2(12));  in shlInt()
42 expectEquals(12, $opt$ShlConst0(12)); in shlInt()
43 expectEquals(-48, $opt$Shl(-12, 2)); in shlInt()
44 expectEquals(1024, $opt$Shl(32, 5)); in shlInt()
46 expectEquals(7, $opt$Shl(7, 0)); in shlInt()
47 expectEquals(14, $opt$Shl(7, 1)); in shlInt()
48 expectEquals(0, $opt$Shl(0, 30)); in shlInt()
50 expectEquals(1073741824L, $opt$Shl(1, 30)); in shlInt()
51 expectEquals(Integer.MIN_VALUE, $opt$Shl(1, 31)); // overflow in shlInt()
52 expectEquals(Integer.MIN_VALUE, $opt$Shl(1073741824, 1)); // overflow in shlInt()
53 expectEquals(1073741824, $opt$Shl(268435456, 2)); in shlInt()
56 expectEquals(7, $opt$Shl(7, 32)); // 32 & 0x1f = 0 in shlInt()
57 expectEquals(14, $opt$Shl(7, 33)); // 33 & 0x1f = 1 in shlInt()
58 expectEquals(32, $opt$Shl(1, 101)); // 101 & 0x1f = 5 in shlInt()
60 expectEquals(Integer.MIN_VALUE, $opt$Shl(1, -1)); // -1 & 0x1f = 31 in shlInt()
61 expectEquals(14, $opt$Shl(7, -31)); // -31 & 0x1f = 1 in shlInt()
62 expectEquals(7, $opt$Shl(7, -32)); // -32 & 0x1f = 0 in shlInt()
63 expectEquals(-536870912, $opt$Shl(7, -3)); // -3 & 0x1f = 29 in shlInt()
65 expectEquals(Integer.MIN_VALUE, $opt$Shl(7, Integer.MAX_VALUE)); in shlInt()
66 expectEquals(7, $opt$Shl(7, Integer.MIN_VALUE)); in shlInt()
70 expectEquals(48L, $opt$ShlConst2(12L)); in shlLong()
71 expectEquals(12L, $opt$ShlConst0(12L)); in shlLong()
72 expectEquals(-48L, $opt$Shl(-12L, 2L)); in shlLong()
73 expectEquals(1024L, $opt$Shl(32L, 5L)); in shlLong()
75 expectEquals(7L, $opt$Shl(7L, 0L)); in shlLong()
76 expectEquals(14L, $opt$Shl(7L, 1L)); in shlLong()
77 expectEquals(0L, $opt$Shl(0L, 30L)); in shlLong()
79 expectEquals(1073741824L, $opt$Shl(1L, 30L)); in shlLong()
80 expectEquals(2147483648L, $opt$Shl(1L, 31L)); in shlLong()
81 expectEquals(2147483648L, $opt$Shl(1073741824L, 1L)); in shlLong()
84 expectEquals(4294967296L, $opt$Shl(1L, 32L)); in shlLong()
85 expectEquals(60129542144L, $opt$Shl(7L, 33L)); in shlLong()
86 expectEquals(Long.MIN_VALUE, $opt$Shl(1L, 63L)); // overflow in shlLong()
89 expectEquals(7L, $opt$Shl(7L, 64L)); // 64 & 0x3f = 0 in shlLong()
90 expectEquals(14L, $opt$Shl(7L, 65L)); // 65 & 0x3f = 1 in shlLong()
91 expectEquals(137438953472L, $opt$Shl(1L, 101L)); // 101 & 0x3f = 37 in shlLong()
93 expectEquals(Long.MIN_VALUE, $opt$Shl(1L, -1L)); // -1 & 0x3f = 63 in shlLong()
94 expectEquals(14L, $opt$Shl(7L, -63L)); // -63 & 0x3f = 1 in shlLong()
95 expectEquals(7L, $opt$Shl(7L, -64L)); // -64 & 0x3f = 0 in shlLong()
96 expectEquals(2305843009213693952L, $opt$Shl(1L, -3L)); // -3 & 0x3f = 61 in shlLong()
98 expectEquals(Long.MIN_VALUE, $opt$Shl(7L, Long.MAX_VALUE)); in shlLong()
99 expectEquals(7L, $opt$Shl(7L, Long.MIN_VALUE)); in shlLong()
102 expectEquals(24L, $opt$ShlConst1(12L)); in shlLong()
103 expectEquals(0x2345678900000000L, $opt$ShlConst32(0x123456789L)); in shlLong()
104 expectEquals(0x2490249000000000L, $opt$ShlConst33(0x12481248L)); in shlLong()
105 expectEquals(0x4920492000000000L, $opt$ShlConst34(0x12481248L)); in shlLong()
106 expectEquals(0x9240924000000000L, $opt$ShlConst35(0x12481248L)); in shlLong()
110 expectEquals(3, $opt$ShrConst2(12)); in shrInt()
111 expectEquals(12, $opt$ShrConst0(12)); in shrInt()
112 expectEquals(-3, $opt$Shr(-12, 2)); in shrInt()
113 expectEquals(1, $opt$Shr(32, 5)); in shrInt()
115 expectEquals(7, $opt$Shr(7, 0)); in shrInt()
116 expectEquals(3, $opt$Shr(7, 1)); in shrInt()
117 expectEquals(0, $opt$Shr(0, 30)); in shrInt()
118 expectEquals(0, $opt$Shr(1, 30)); in shrInt()
119 expectEquals(-1, $opt$Shr(-1, 30)); in shrInt()
121 expectEquals(0, $opt$Shr(Integer.MAX_VALUE, 31)); in shrInt()
122 expectEquals(-1, $opt$Shr(Integer.MIN_VALUE, 31)); in shrInt()
125 expectEquals(7, $opt$Shr(7, 32)); // 32 & 0x1f = 0 in shrInt()
126 expectEquals(3, $opt$Shr(7, 33)); // 33 & 0x1f = 1 in shrInt()
128 expectEquals(0, $opt$Shr(1, -1)); // -1 & 0x1f = 31 in shrInt()
129 expectEquals(3, $opt$Shr(7, -31)); // -31 & 0x1f = 1 in shrInt()
130 expectEquals(7, $opt$Shr(7, -32)); // -32 & 0x1f = 0 in shrInt()
131 expectEquals(-4, $opt$Shr(Integer.MIN_VALUE, -3)); // -3 & 0x1f = 29 in shrInt()
133 expectEquals(0, $opt$Shr(7, Integer.MAX_VALUE)); in shrInt()
134 expectEquals(7, $opt$Shr(7, Integer.MIN_VALUE)); in shrInt()
138 expectEquals(3L, $opt$ShrConst2(12L)); in shrLong()
139 expectEquals(12L, $opt$ShrConst0(12L)); in shrLong()
140 expectEquals(-3L, $opt$Shr(-12L, 2L)); in shrLong()
141 expectEquals(1, $opt$Shr(32, 5)); in shrLong()
143 expectEquals(7L, $opt$Shr(7L, 0L)); in shrLong()
144 expectEquals(3L, $opt$Shr(7L, 1L)); in shrLong()
145 expectEquals(0L, $opt$Shr(0L, 30L)); in shrLong()
146 expectEquals(0L, $opt$Shr(1L, 30L)); in shrLong()
147 expectEquals(-1L, $opt$Shr(-1L, 30L)); in shrLong()
150 expectEquals(1L, $opt$Shr(1073741824L, 30L)); in shrLong()
151 expectEquals(1L, $opt$Shr(2147483648L, 31L)); in shrLong()
152 expectEquals(1073741824L, $opt$Shr(2147483648L, 1L)); in shrLong()
155 expectEquals(1L, $opt$Shr(4294967296L, 32L)); in shrLong()
156 expectEquals(7L, $opt$Shr(60129542144L, 33L)); in shrLong()
157 expectEquals(0L, $opt$Shr(Long.MAX_VALUE, 63L)); in shrLong()
158 expectEquals(-1L, $opt$Shr(Long.MIN_VALUE, 63L)); in shrLong()
161 expectEquals(7L, $opt$Shr(7L, 64L)); // 64 & 0x3f = 0 in shrLong()
162 expectEquals(3L, $opt$Shr(7L, 65L)); // 65 & 0x3f = 1 in shrLong()
164 expectEquals(-1L, $opt$Shr(Long.MIN_VALUE, -1L)); // -1 & 0x3f = 63 in shrLong()
165 expectEquals(3L, $opt$Shr(7L, -63L)); // -63 & 0x3f = 1 in shrLong()
166 expectEquals(7L, $opt$Shr(7L, -64L)); // -64 & 0x3f = 0 in shrLong()
167 expectEquals(1L, $opt$Shr(2305843009213693952L, -3L)); // -3 & 0x3f = 61 in shrLong()
168 expectEquals(-4L, $opt$Shr(Integer.MIN_VALUE, -3)); // -3 & 0x1f = 29 in shrLong()
170 expectEquals(0L, $opt$Shr(7L, Long.MAX_VALUE)); in shrLong()
171 expectEquals(7L, $opt$Shr(7L, Long.MIN_VALUE)); in shrLong()
175 expectEquals(3, $opt$UShrConst2(12)); in ushrInt()
176 expectEquals(12, $opt$UShrConst0(12)); in ushrInt()
177 expectEquals(1073741821, $opt$UShr(-12, 2)); in ushrInt()
178 expectEquals(1, $opt$UShr(32, 5)); in ushrInt()
180 expectEquals(7, $opt$UShr(7, 0)); in ushrInt()
181 expectEquals(3, $opt$UShr(7, 1)); in ushrInt()
182 expectEquals(0, $opt$UShr(0, 30)); in ushrInt()
183 expectEquals(0, $opt$UShr(1, 30)); in ushrInt()
184 expectEquals(3, $opt$UShr(-1, 30)); in ushrInt()
186 expectEquals(0, $opt$UShr(Integer.MAX_VALUE, 31)); in ushrInt()
187 expectEquals(1, $opt$UShr(Integer.MIN_VALUE, 31)); in ushrInt()
190 expectEquals(7, $opt$UShr(7, 32)); // 32 & 0x1f = 0 in ushrInt()
191 expectEquals(3, $opt$UShr(7, 33)); // 33 & 0x1f = 1 in ushrInt()
193 expectEquals(0, $opt$UShr(1, -1)); // -1 & 0x1f = 31 in ushrInt()
194 expectEquals(3, $opt$UShr(7, -31)); // -31 & 0x1f = 1 in ushrInt()
195 expectEquals(7, $opt$UShr(7, -32)); // -32 & 0x1f = 0 in ushrInt()
196 expectEquals(4, $opt$UShr(Integer.MIN_VALUE, -3)); // -3 & 0x1f = 29 in ushrInt()
198 expectEquals(0, $opt$UShr(7, Integer.MAX_VALUE)); in ushrInt()
199 expectEquals(7, $opt$UShr(7, Integer.MIN_VALUE)); in ushrInt()
203 expectEquals(3L, $opt$UShrConst2(12L)); in ushrLong()
204 expectEquals(12L, $opt$UShrConst0(12L)); in ushrLong()
205 expectEquals(4611686018427387901L, $opt$UShr(-12L, 2L)); in ushrLong()
206 expectEquals(1, $opt$UShr(32, 5)); in ushrLong()
208 expectEquals(7L, $opt$UShr(7L, 0L)); in ushrLong()
209 expectEquals(3L, $opt$UShr(7L, 1L)); in ushrLong()
210 expectEquals(0L, $opt$UShr(0L, 30L)); in ushrLong()
211 expectEquals(0L, $opt$UShr(1L, 30L)); in ushrLong()
212 expectEquals(17179869183L, $opt$UShr(-1L, 30L)); in ushrLong()
215 expectEquals(1L, $opt$UShr(1073741824L, 30L)); in ushrLong()
216 expectEquals(1L, $opt$UShr(2147483648L, 31L)); in ushrLong()
217 expectEquals(1073741824L, $opt$UShr(2147483648L, 1L)); in ushrLong()
220 expectEquals(1L, $opt$UShr(4294967296L, 32L)); in ushrLong()
221 expectEquals(7L, $opt$UShr(60129542144L, 33L)); in ushrLong()
222 expectEquals(0L, $opt$UShr(Long.MAX_VALUE, 63L)); in ushrLong()
223 expectEquals(1L, $opt$UShr(Long.MIN_VALUE, 63L)); in ushrLong()
226 expectEquals(7L, $opt$UShr(7L, 64L)); // 64 & 0x3f = 0 in ushrLong()
227 expectEquals(3L, $opt$UShr(7L, 65L)); // 65 & 0x3f = 1 in ushrLong()
229 expectEquals(1L, $opt$UShr(Long.MIN_VALUE, -1L)); // -1 & 0x3f = 63 in ushrLong()
230 expectEquals(3L, $opt$UShr(7L, -63L)); // -63 & 0x3f = 1 in ushrLong()
231 expectEquals(7L, $opt$UShr(7L, -64L)); // -64 & 0x3f = 0 in ushrLong()
232 expectEquals(1L, $opt$UShr(2305843009213693952L, -3L)); // -3 & 0x3f = 61 in ushrLong()
233 expectEquals(4L, $opt$UShr(Long.MIN_VALUE, -3L)); // -3 & 0x3f = 61 in ushrLong()
235 expectEquals(0L, $opt$UShr(7L, Long.MAX_VALUE)); in ushrLong()
236 expectEquals(7L, $opt$UShr(7L, Long.MIN_VALUE)); in ushrLong()
239 static int $opt$Shl(int a, int b) { in $opt$Shl()
243 static long $opt$Shl(long a, long b) { in $opt$Shl()
247 static int $opt$Shr(int a, int b) { in $opt$Shr()
251 static long $opt$Shr(long a, long b) { in $opt$Shr()
255 static int $opt$UShr(int a, int b) { in $opt$UShr()
259 static long $opt$UShr(long a, long b) { in $opt$UShr()
263 static int $opt$ShlConst2(int a) { in $opt$ShlConst2()
267 static long $opt$ShlConst2(long a) { in $opt$ShlConst2()
271 static int $opt$ShrConst2(int a) { in $opt$ShrConst2()
275 static long $opt$ShrConst2(long a) { in $opt$ShrConst2()
279 static int $opt$UShrConst2(int a) { in $opt$UShrConst2()
283 static long $opt$UShrConst2(long a) { in $opt$UShrConst2()
287 static int $opt$ShlConst0(int a) { in $opt$ShlConst0()
291 static long $opt$ShlConst0(long a) { in $opt$ShlConst0()
295 static int $opt$ShrConst0(int a) { in $opt$ShrConst0()
299 static long $opt$ShrConst0(long a) { in $opt$ShrConst0()
303 static int $opt$UShrConst0(int a) { in $opt$UShrConst0()
307 static long $opt$UShrConst0(long a) { in $opt$UShrConst0()
311 static long $opt$ShlConst1(long a) { in $opt$ShlConst1()
315 static long $opt$ShlConst32(long a) { in $opt$ShlConst32()
319 static long $opt$ShlConst33(long a) { in $opt$ShlConst33()
323 static long $opt$ShlConst34(long a) { in $opt$ShlConst34()
327 static long $opt$ShlConst35(long a) { in $opt$ShlConst35()