1 /* Verify that overloaded built-ins for vec_splat with short
2 inputs produce the right code. */
4 /* { dg-do compile } */
5 /* { dg-require-effective-target powerpc_altivec_ok } */
6 /* { dg-options "-maltivec -O2" } */
11 test3s (signed short x
)
13 return vec_splats (x
);
17 test3u (unsigned short x
)
19 return vec_splats (x
);
22 /* { dg-final { scan-assembler-times "vsplth" 2 } } */