blob: 8e4e2d4c2d2d9544f2d47b89d71fe1fa7436730b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
/* { 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" "slp2" } } */
|