blob: d4c7d19925b203bed763c3c4f78801968b5e5ea3 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-require-effective-target vect_float } */
float x[256];
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" } } */