2 !!DESCRIPTION!! Shift bytes left and right by a constant.
3 !!ORIGIN!! SDCC regression tests
4 !!LICENCE!! GPL, read COPYING.GPL
10 unsigned char success=0;
11 unsigned char failures=0;
12 unsigned char dummy=0;
14 #ifdef SUPPORT_BIT_TYPES
17 #ifdef SIZEOF_INT_16BIT
18 #if defined(__LINUX__) || defined(LINUX)
19 signed short aint0 = 0;
20 signed short aint1 = 0;
33 signed char achar0 = 0;
34 signed char achar1 = 0;
35 signed char achar2 = 0;
48 void shift_left_1(void)
55 void shift_left_2(void)
63 void shift_left_3(void)
71 void shift_left_4(void)
79 void shift_left_5(void)
87 void shift_left_6(void)
95 void shift_left_7(void)
103 void shift_right_1(void)
110 void shift_right_2(void)
117 void shift_right_3(void)
124 void shift_right_4(void)
131 void shift_right_5(void)
138 void shift_right_6(void)
145 void shift_right_7(void)
154 /* call with both values zero */
156 printf("failures: %d\n",failures);
160 for(achar2=0; achar2<6; achar2++) {
164 printf("failures: %d\n",failures);
169 printf("failures: %d\n",failures);
174 printf("failures: %d\n",failures);
179 printf("failures: %d\n",failures);
184 printf("failures: %d\n",failures);
189 printf("failures: %d\n",failures);
194 printf("failures: %d\n",failures);
199 printf("failures: %d\n",failures);
203 printf("failures: %d\n",failures);
207 printf("failures: %d\n",failures);
211 printf("failures: %d\n",failures);
215 printf("failures: %d\n",failures);
219 printf("failures: %d\n",failures);
224 printf("failures: %d\n",failures);
229 printf("failures: %d\n",failures);
233 printf("failures: %d\n",failures);
237 printf("failures: %d\n",failures);
241 printf("failures: %d\n",failures);
245 printf("failures: %d\n",failures);
249 printf("failures: %d\n",failures);
257 printf("failures: %d\n",failures);