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
] = {2,3,4,5,6,7,8,9,9};
18 int main1 (int x
, int y
) {
21 p
= (struct extraction
*) malloc (sizeof (struct extraction
));
23 for (i
= 0; i
< N
; i
++)
27 abort (); /* to avoid vectorization */
30 /* Not vectorizable: distance 1. */
31 for (i
= 0; i
< N
- 1; i
++)
33 *((int *)p
+ x
+ i
) = *((int *)p
+ x
+ i
+ 1);
37 for (i
= 0; i
< N
; i
++)
52 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 0 "vect" } } */
53 /* { dg-final { scan-tree-dump-times "possible dependence between data-refs" 1 "vect" } } */
54 /* { dg-final { cleanup-tree-dump "vect" } } */