Merge branches/gcc-4_9-branch rev 225109.
[official-gcc.git] / gcc-4_9-branch / gcc / testsuite / gcc.dg / vect / vect-pre-interact.c
blob8b7a72ba7e638cff5da0fc7d94a931a9e4e5ebd0
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_float } */
4 /* This checks that PRE doesn't create situations that prevent vectorization.
5 I.e. PR39300, PR35229. */
6 float res[1024], data[1025];
8 void foo (void)
10 int i;
11 for (i = 0; i < 1024; ++i)
12 res[i] = data[i] + data[i + 1];
15 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail { vect_no_align && { ! vect_hw_misalign } } } } } */
16 /* { dg-final { cleanup-tree-dump "vect" } } */