PR tree-optimization/84740
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr60092.c
blob1d9876d423aabb5ef7ef1bce6adf76ba5cb0befa
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_int } */
4 void bar (int *);
6 int *foo (int n)
8 int *p = __builtin_aligned_alloc (256, n * sizeof (int));
9 int *q = __builtin_aligned_alloc (256, n * sizeof (int));
10 bar (q);
11 int i;
12 for (i = 0; i < n; ++i)
13 p[i] = q[i] + q[i];
14 return p;
17 /* { dg-final { scan-tree-dump "LOOP VECTORIZED" "vect" } } */
18 /* { dg-final { scan-tree-dump-not "Peeling for alignment will be applied" "vect" } } */
19 /* { dg-final { scan-tree-dump-not "Vectorizing an unaligned access" "vect" } } */