gcc/testsuite/gcc.dg/vect/fast-math-slp-27.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-additional-options "-ffast-math" } */ |
| 3 | /* { dg-require-effective-target vect_float } */ |
| 4 | |
| 5 | float x[2*256+1]; |
| 6 | |
| 7 | void foo(void) |
| 8 | { |
| 9 | int i; |
| 10 | for (i=0; i<256; ++i) |
| 11 | { |
| 12 | x[2*i] = x[2*i] * x[2*i]; |
| 13 | x[2*i+1] = x[2*i+1] * x[2*i+1]; |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | /* { dg-final { scan-tree-dump "vectorized 1 loops" "vect" { target vect_strided2 } } } */ |