| 1 |
/* { dg-do compile { target lp64 } } */ |
| 2 |
/* { dg-options "-O3 -fno-vect-cost-model -fdump-tree-slp2-details" } */ |
| 3 |
|
| 4 |
struct x { double d[2]; }; |
| 5 |
|
| 6 |
struct x |
| 7 |
pack (double a, double aa) |
| 8 |
{ |
| 9 |
struct x u; |
| 10 |
u.d[0] = a; |
| 11 |
u.d[1] = aa; |
| 12 |
return u; |
| 13 |
} |
| 14 |
|
| 15 |
/* The function should be optimized to just return as arguments and |
| 16 |
result exactly overlap even when previously vectorized. */ |
| 17 |
|
| 18 |
/* { dg-final { scan-tree-dump "optimized: basic block" "slp2" } } */ |
| 19 |
/* { dg-final { scan-assembler-not "mov" } } */ |