Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.c-torture / execute / 20010717-1.c
blob65199da90350baff01b1ca8c5a7b408b72b11bc6
1 extern void abort (void);
3 int
4 main ()
6 int i, j;
7 unsigned long u, r1, r2;
9 i = -16;
10 j = 1;
11 u = i + j;
13 /* no sign extension upon shift */
14 r1 = u >> 1;
15 /* sign extension upon shift, but there shouldn't be */
16 r2 = ((unsigned long) (i + j)) >> 1;
18 if (r1 != r2)
19 abort ();
21 return 0;