blob: 45060b73c065d977ac3fb7250e00fe02c88c9132 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O2 -msse2 -mno-avx" } */
/* { dg-final { scan-assembler-times {(?n)movhpd[ \t]+} "2" } } */
struct X { double x[4]; };
typedef double v2df __attribute__((vector_size(16)));
v2df __attribute__((noipa))
foo (struct X x, struct X y)
{
return (v2df) {x.x[1], x.x[0] } + (v2df) { y.x[1], y.x[0] };
}