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 /* Vectorizable, before pointer plus we would get a redundant cast
21 (caused by pointer arithmetics), alias analysis fails to distinguish
22 between the pointers. */
23 for (i = 0; i < N; i++)
30 for (i = 0; i < N; i++)
32 if (*q != a[i] || *p != b[i])
41 for (i = 0; i < N; i++)
52 for (i = 0; i < N; i++)
54 if (*q != b[i] || *p != a[i])
70 /* { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect" } } */
71 /* { dg-final { cleanup-tree-dump "vect" } } */