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};
19 int main1 (int x
, int y
) {
22 p
= (struct extraction
*) malloc (sizeof (struct extraction
));
24 for (i
= 0; i
< N
; i
++)
29 abort (); /* to avoid vectorization */
32 /* Vectorizable: distance > VF. */
33 for (i
= 0; i
< N
; i
++)
35 *((int *)p
+ x
+ i
) = *((int *)p
+ x
+ i
+ 8);
39 for (i
= 0; i
< N
; i
++)
54 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
55 /* { dg-final { scan-tree-dump-times "dependence distance modulo vf == 0" 1 "vect" } } */
56 /* { dg-final { cleanup-tree-dump "vect" } } */