Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.c-torture / execute / 930603-3.c
blob22e5aed4a8b9e5bdb490828abc31acd9b262de74
1 f (b, c)
2 unsigned char *b;
3 int c;
5 unsigned long v = 0;
6 switch (c)
8 case 'd':
9 v = ((unsigned long)b[0] << 8) + b[1];
10 v >>= 9;
11 break;
13 case 'k':
14 v = b[3] >> 4;
15 break;
17 default:
18 abort ();
21 return v;
23 main ()
25 char buf[4];
26 buf[0] = 170; buf[1] = 5;
27 if (f (buf, 'd') != 85)
28 abort ();
29 exit (0);