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,0};
18 __attribute__ ((noinline
))
19 int main1 (int x
, int y
) {
22 p
= (struct extraction
*) malloc (sizeof (struct extraction
));
24 /* Not vectorizable: different unknown offset. */
25 for (i
= 0; i
< N
; i
++)
27 *((int *)p
+ x
+ i
) = a
[i
];
28 *((int *)p
+ y
+ i
) = b
[i
];
32 for (i
= 0; i
< N
; i
++)
34 if (p
->a
[i
] != a
[i
] || p
->b
[i
] != b
[i
])
47 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 0 "vect" } } */
48 /* { dg-final { scan-tree-dump-times "can't determine dependence" 1 "vect" } } */
49 /* { dg-final { cleanup-tree-dump "vect" } } */