2010-06-16 Mikael Pettersson <mikpe@it.uu.se>
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / fast-math-slp-27.c
blobd4c7d19925b203bed763c3c4f78801968b5e5ea3
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_float } */
4 float x[256];
6 void foo(void)
8 int i;
9 for (i=0; i<256; ++i)
11 x[2*i] = x[2*i] * x[2*i];
12 x[2*i+1] = x[2*i+1] * x[2*i+1];
16 /* { dg-final { scan-tree-dump "vectorized 1 loops" "vect" { target vect_strided } } } */
17 /* { dg-final { cleanup-tree-dump "vect" } } */