1 /* Verify that overloaded built-ins for vec_splat with float and
2 double inputs for VSX produce the right code. */
4 /* { dg-do compile } */
5 /* { dg-require-effective-target powerpc_vsx_ok } */
6 /* { dg-options "-mvsx -O1" } */
13 return vec_splats (x
);
19 return vec_splats (x
);
22 // double test generates the permute instruction.
23 /* { dg-final { scan-assembler-times "xxpermdi" 1 } } */
25 // float test generates a convert (double to single non-signalling) followed by a splat.
26 /* { dg-final { scan-assembler-times {\mxscvdpspn?\M} 1 } } */
27 /* { dg-final { scan-assembler-times {\mvspltw\M|\mxxspltw\M} 1 } } */