blob: 096839f9c2d35ab5b54a8dcc7136ff5fd437f67e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/* { dg-do compile } */
/* { dg-require-effective-target vect_float } */
/* This checks that PRE doesn't create situations that prevent vectorization.
I.e. PR39300, PR35229. */
float res[1024], data[1025];
void foo (void)
{
int i;
for (i = 0; i < 1024; ++i)
res[i] = data[i] + data[i + 1];
}
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail vect_no_align } } } */
/* { dg-final { cleanup-tree-dump "vect" } } */
|