This commit was manufactured by cvs2svn to create branch 'gomp-branch'.
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-27a.c
blob9dd75498676b06cde745a91a6326ac5eec674ce5
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 -mmmx" { target i?86-*-* x86_64-*-* } } */
6 #include <stdarg.h>
7 #include "tree-vect.h"
9 #define N 128
11 /* unaligned load. */
13 int main1 ()
15 int i;
16 int ia[N];
17 int ib[N+1];
19 for (i=0; i < N; i++)
21 ib[i] = i;
24 for (i = 1; i <= N; i++)
26 ia[i-1] = ib[i];
29 /* check results: */
30 for (i = 1; i <= N; i++)
32 if (ia[i-1] != ib[i])
33 abort ();
36 return 0;
39 int main (void)
41 check_vect ();
43 return main1 ();
46 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */