OSDN Git Service

PR middle-end/21969
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / vect / vect-shift-1.c
1 /* { dg-require-effective-target vect_shift } */
2
3 #include <stdarg.h>
4 #include <signal.h>
5
6 #define N 16
7 #define MAX 42
8
9 extern void abort(void); 
10
11 int main ()
12 {  
13   unsigned int A[4] =  {0x08000000,0x08000001,0xff0000ff,0xf0000001};
14   unsigned int Answer[4] = {0x01000000,0x01000000,0x01fe0001f,0x1e000000};
15   unsigned int B[4];
16   int i, j;
17   
18   for (i=0; i<4; i++)
19     B[i] = A[i] >> 3;
20   for (i=0; i<4; i++)
21     if (B[i] != Answer[i])
22       abort ();
23   return 0;
24 }
25
26
27
28 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail i?86-*-* x86_64-*-* } } } */