aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/vect/bb-slp-31.c
blob: 7ea341216d659a333331f9faaff57c9def0dad0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */
/* { dg-require-effective-target vect_double } */

typedef double vec __attribute__ ((vector_size (2 * sizeof (double))));
vec a;

void f(){
  a[0]=1+2*a[0]*a[0];
  a[1]=1+2*a[1]*a[1];
}

/* { dg-final { scan-tree-dump "basic block vectorized" "slp" } } */
/* { dg-final { cleanup-tree-dump "slp" } } */