Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / vect / vect-shift-1.c
blobc2e546457925090c8ed67a2ef254509b366c4b26
1 /* { dg-require-effective-target vect_shift } */
3 #include <stdarg.h>
4 #include "tree-vect.h"
6 #define N 4
8 int main ()
10 unsigned int A[N] = { 0x08000000, 0x08000001, 0x0ff0000ff, 0xf0000001 };
11 unsigned int B[N] = { 0x01000000, 0x01000000, 0x01fe0001f, 0x1e000000 };
12 int i;
14 check_vect ();
16 for (i = 0; i < N; i++)
17 A[i] = A[i] >> 3;
19 /* check results: */
20 for (i = 0; i < N; i++)
21 if (A[i] != B[i])
22 abort ();
24 return 0;
27 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
28 /* { dg-final { cleanup-tree-dump "vect" } } */