1 /* { dg-require-effective-target vect_int } */
15 static int a[N] = {1,2,3,4,5,6,7,8,9};
16 static int b[N] = {17,24,7,0,2,3,4,31,82};
17 static int c[N] = {9,17,24,7,0,2,3,4,31};
20 __attribute__ ((noinline))
21 int main1 (int x, int y) {
24 p = (struct extraction *) malloc (sizeof (struct extraction));
26 for (i = 0; i < N; i++)
31 abort (); /* to avoid vectorization */
34 /* Vectorizable: distance > VF. */
35 for (i = 0; i < N; i++)
37 *((int *)p + x + i) = *((int *)p + x + i + 8);
41 for (i = 0; i < N; i++)
57 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
58 /* { dg-final { scan-tree-dump-times "dependence distance modulo vf == 0" 1 "vect" } } */
59 /* { dg-final { cleanup-tree-dump "vect" } } */