gcc/testsuite/gcc.target/i386/pr101908-1.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -msse2 -mno-avx" } */ |
| 3 | /* { dg-final { scan-assembler-not {(?n)movhpd[ \t]} } } */ |
| 4 | |
| 5 | struct X { double x[2]; }; |
| 6 | typedef double v2df __attribute__((vector_size(16))); |
| 7 | |
| 8 | v2df __attribute__((noipa)) |
| 9 | foo (struct X* x, struct X* y) |
| 10 | { |
| 11 | return (v2df) {x->x[1], x->x[0] } + (v2df) { y->x[1], y->x[0] }; |
| 12 | } |