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 unsigned int aint0 = 0;
18 unsigned int aint1 = 0;
19 unsigned char achar0 = 0;
20 unsigned char achar1 = 0;
21 unsigned char achar2 = 0;
34 void shift_left_1(void)
41 void shift_left_2(void)
49 void shift_left_3(void)
57 void shift_left_4(void)
65 void shift_left_5(void)
73 void shift_left_6(void)
81 void shift_left_7(void)
89 void shift_right_1(void)
96 void shift_right_2(void)
103 void shift_right_3(void)
110 void shift_right_4(void)
117 void shift_right_5(void)
124 void shift_right_6(void)
131 void shift_right_7(void)
140 /* call with both values zero */
145 for(achar2=0; achar2<6; achar2++) {
198 printf("failures: %d\n",failures);