1 /* Verify that overloaded built-ins for vec_unpackh and vec_unpackl with float
2 inputs produce the right code. */
4 /* { dg-do compile } */
5 /* { dg-options "-mvsx -O2" } */
6 /* { dg-additional-options "-mdejagnu-cpu=power8" { target { ! has_arch_pwr8 } } } */
7 /* { dg-require-effective-target powerpc_vsx } */
12 testf_l (vector
float vf2
)
14 return vec_unpackl (vf2
);
18 testf_h (vector
float vf2
)
20 return vec_unpackh (vf2
);
23 /* { dg-final { scan-assembler-times "xxsldwi" 4 } } */
24 /* { dg-final { scan-assembler-times "xvcvspdp" 2 } } */