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