Merge to HEAD at tree-cleanup-merge-20041024 .
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-78.c
blob75ad3c2984380e773629d1cc4bd125214066d7e6
1 /* { dg-do run { target powerpc*-*-* } } */
2 /* { dg-do run { target i?86-*-* x86_64-*-* } } */
3 /* { dg-options "-O2 -ftree-vectorize -fdump-tree-vect-stats -maltivec" { target powerpc*-*-* } } */
4 /* { dg-options "-O2 -ftree-vectorize -fdump-tree-vect-stats -msse2" { target i?86-*-* x86_64-*-* } } */
6 #include <stdarg.h>
7 #include "tree-vect.h"
9 #define N 8
10 #define OFF 8
12 typedef int aint __attribute__ ((__aligned__(16)));
14 aint ib[N+OFF] = {0, 1, 3, 5, 7, 11, 13, 17, 0, 2, 6, 10, 14, 22, 26, 34};
15 int off = 8;
17 int main1 (aint *ib)
19 int i;
20 int ia[N];
22 for (i = 0; i < N; i++)
24 ia[i] = ib[i+off];
28 /* check results: */
29 for (i = 0; i < N; i++)
31 if (ia[i] != ib[i+off])
32 abort ();
35 return 0;
38 int main (void)
40 check_vect ();
42 main1 (ib);
43 return 0;
47 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail *-*-* } } } */