PR target/55146
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-73-big-array.c
blob5f40055e2c8fe8673023ab756a917b258dfc7035
1 /* { dg-require-effective-target vect_int } */
3 #include <stdarg.h>
4 #include "tree-vect.h"
6 #define N 128
8 int ic[N*2];
9 int ib[N];
11 #define ia (ic+N)
13 volatile int y = 0;
15 __attribute__ ((noinline))
16 int main1 ()
18 int i, j;
20 for (i = 0; i < N; i++)
22 ib[i] = i*3;
23 if (y)
24 abort ();
27 for (i = 0; i < N; i++)
29 ia[i] = ib[i];
32 /* check results: */
33 for (i = 0; i < N; i++)
35 if (ia[i] != ib[i])
36 abort ();
39 return 0;
42 int main (void)
44 check_vect ();
46 return main1 ();
49 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
50 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 0 "vect" } } */
51 /* { dg-final { cleanup-tree-dump "vect" } } */