| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-require-effective-target vect_double } */ |
| 3 |
|
| 4 |
double a[2]; |
| 5 |
double b[2]; |
| 6 |
double c[2]; |
| 7 |
double d[2]; |
| 8 |
double e[2]; |
| 9 |
void foo(double x) |
| 10 |
{ |
| 11 |
double tembc0 = b[1] + c[1]; |
| 12 |
double tembc1 = b[0] + c[0]; |
| 13 |
double temde0 = d[0] + e[1]; |
| 14 |
double temde1 = d[1] + e[0]; |
| 15 |
a[0] = tembc0 + temde0; |
| 16 |
a[1] = tembc1 + temde1; |
| 17 |
} |
| 18 |
|
| 19 |
/* We should common the permutation on the tembc{0,1} operands. */ |
| 20 |
/* { dg-final { scan-tree-dump-times "add new stmt: \[^\\n\\r\]* = VEC_PERM_EXPR" 2 "slp2" } } */ |