summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/fast-math-slp-27.c
blob: 81240023777ac383d66bdcdc3458f36f7c19137c (plain)
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" } } */