1 /* { dg-require-effective-target vect_int } */
9 static int a
[N
] = {1,2,3,4,5,6,7,8,9};
10 static int b
[N
] = {2,3,4,5,6,7,8,9,0};
15 p
= (unsigned int *) malloc (sizeof (unsigned int) * N
);
16 q
= (unsigned int *) malloc (sizeof (unsigned int) * N
);
20 /* Not vectorizable: because of the redundant cast (caused by ponter
21 arithmetics), alias analysis fails to distinguish between
23 for (i
= 0; i
< N
; i
++)
30 for (i
= 0; i
< N
; i
++)
32 if (*q
!= a
[i
] || *p
!= b
[i
])
48 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 0 "vect" } } */
49 /* { dg-final { scan-tree-dump-times "can't determine dependence" 1 "vect" } } */
50 /* { dg-final { cleanup-tree-dump "vect" } } */