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};
19 __attribute__ ((noinline
))
20 int main1 (int x
, int y
) {
23 p
= (struct extraction
*) malloc (sizeof (struct extraction
));
25 for (i
= 0; i
< N
; i
++)
29 abort (); /* to avoid vectorization */
32 /* Not vectorizable: distance 1. */
33 for (i
= 0; i
< N
- 1; i
++)
35 *((int *)p
+ x
+ i
+ 1) = *((int *)p
+ x
+ i
);
39 for (i
= 0; i
< N
; i
++)
55 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 0 "vect" } } */
56 /* { dg-final { scan-tree-dump-times "possible dependence between data-refs" 1 "vect" } } */
57 /* { dg-final { cleanup-tree-dump "vect" } } */