3 extern void abort(void);
6 #if __LONG_LONG_MAX__ == 9223372036854775807LL
9 static long long const zext
[64] = {
76 static long long const sext
[64] = {
100 0xffffff1db9753eecLL
,
101 0xffffff8edcba9f76LL
,
102 0xffffffc76e5d4fbbLL
,
103 0xffffffe3b72ea7ddLL
,
104 0xfffffff1db9753eeLL
,
105 0xfffffff8edcba9f7LL
,
106 0xfffffffc76e5d4fbLL
,
107 0xfffffffe3b72ea7dLL
,
108 0xffffffff1db9753eLL
,
109 0xffffffff8edcba9fLL
,
110 0xffffffffc76e5d4fLL
,
111 0xffffffffe3b72ea7LL
,
112 0xfffffffff1db9753LL
,
113 0xfffffffff8edcba9LL
,
114 0xfffffffffc76e5d4LL
,
115 0xfffffffffe3b72eaLL
,
116 0xffffffffff1db975LL
,
117 0xffffffffff8edcbaLL
,
118 0xffffffffffc76e5dLL
,
119 0xffffffffffe3b72eLL
,
120 0xfffffffffff1db97LL
,
121 0xfffffffffff8edcbLL
,
122 0xfffffffffffc76e5LL
,
123 0xfffffffffffe3b72LL
,
124 0xffffffffffff1db9LL
,
125 0xffffffffffff8edcLL
,
126 0xffffffffffffc76eLL
,
127 0xffffffffffffe3b7LL
,
128 0xfffffffffffff1dbLL
,
129 0xfffffffffffff8edLL
,
130 0xfffffffffffffc76LL
,
131 0xfffffffffffffe3bLL
,
132 0xffffffffffffff1dLL
,
133 0xffffffffffffff8eLL
,
134 0xffffffffffffffc7LL
,
135 0xffffffffffffffe3LL
,
136 0xfffffffffffffff1LL
,
137 0xfffffffffffffff8LL
,
138 0xfffffffffffffffcLL
,
139 0xfffffffffffffffeLL
,
143 #elif __LONG_LONG_MAX__ == 2147483647LL
146 static long long const zext
[32] = {
181 static long long const sext
[64] = {
217 #error "Update the test case."
221 variable_shift(long long x
, int i
)
227 constant_shift(long long x
, int i
)
231 case 0: x
= x
>> 0; break;
232 case 1: x
= x
>> 1; break;
233 case 2: x
= x
>> 2; break;
234 case 3: x
= x
>> 3; break;
235 case 4: x
= x
>> 4; break;
236 case 5: x
= x
>> 5; break;
237 case 6: x
= x
>> 6; break;
238 case 7: x
= x
>> 7; break;
239 case 8: x
= x
>> 8; break;
240 case 9: x
= x
>> 9; break;
241 case 10: x
= x
>> 10; break;
242 case 11: x
= x
>> 11; break;
243 case 12: x
= x
>> 12; break;
244 case 13: x
= x
>> 13; break;
245 case 14: x
= x
>> 14; break;
246 case 15: x
= x
>> 15; break;
247 case 16: x
= x
>> 16; break;
248 case 17: x
= x
>> 17; break;
249 case 18: x
= x
>> 18; break;
250 case 19: x
= x
>> 19; break;
251 case 20: x
= x
>> 20; break;
252 case 21: x
= x
>> 21; break;
253 case 22: x
= x
>> 22; break;
254 case 23: x
= x
>> 23; break;
255 case 24: x
= x
>> 24; break;
256 case 25: x
= x
>> 25; break;
257 case 26: x
= x
>> 26; break;
258 case 27: x
= x
>> 27; break;
259 case 28: x
= x
>> 28; break;
260 case 29: x
= x
>> 29; break;
261 case 30: x
= x
>> 30; break;
262 case 31: x
= x
>> 31; break;
264 case 32: x
= x
>> 32; break;
265 case 33: x
= x
>> 33; break;
266 case 34: x
= x
>> 34; break;
267 case 35: x
= x
>> 35; break;
268 case 36: x
= x
>> 36; break;
269 case 37: x
= x
>> 37; break;
270 case 38: x
= x
>> 38; break;
271 case 39: x
= x
>> 39; break;
272 case 40: x
= x
>> 40; break;
273 case 41: x
= x
>> 41; break;
274 case 42: x
= x
>> 42; break;
275 case 43: x
= x
>> 43; break;
276 case 44: x
= x
>> 44; break;
277 case 45: x
= x
>> 45; break;
278 case 46: x
= x
>> 46; break;
279 case 47: x
= x
>> 47; break;
280 case 48: x
= x
>> 48; break;
281 case 49: x
= x
>> 49; break;
282 case 50: x
= x
>> 50; break;
283 case 51: x
= x
>> 51; break;
284 case 52: x
= x
>> 52; break;
285 case 53: x
= x
>> 53; break;
286 case 54: x
= x
>> 54; break;
287 case 55: x
= x
>> 55; break;
288 case 56: x
= x
>> 56; break;
289 case 57: x
= x
>> 57; break;
290 case 58: x
= x
>> 58; break;
291 case 59: x
= x
>> 59; break;
292 case 60: x
= x
>> 60; break;
293 case 61: x
= x
>> 61; break;
294 case 62: x
= x
>> 62; break;
295 case 63: x
= x
>> 63; break;
309 for (i
= 0; i
< BITS
; ++i
)
311 long long y
= variable_shift (zext
[0], i
);
315 for (i
= 0; i
< BITS
; ++i
)
317 long long y
= variable_shift (sext
[0], i
);
321 for (i
= 0; i
< BITS
; ++i
)
323 long long y
= constant_shift (zext
[0], i
);
327 for (i
= 0; i
< BITS
; ++i
)
329 long long y
= constant_shift (sext
[0], i
);