1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_float } */
3
4 float x[256];
5
foo(void)6 void foo(void)
7 {
8 int i;
9 for (i=0; i<256; ++i)
10 x[i] = x[i] * x[i];
11 }
12
13 /* { dg-final { scan-tree-dump "vectorized 1 loops" "vect" } } */
14