1 /* Verify that overloaded built-ins for vec_splat with long long
2 inputs produce the right code. */
3
4 /* { dg-do compile { target lp64 } } */
5 /* { dg-require-effective-target powerpc_vsx_ok } */
6 /* { dg-options "-mvsx -O2" } */
7
8 #include <altivec.h>
9
10 vector signed long long
test3s(signed long long x)11 test3s (signed long long x)
12 {
13 return vec_splats (x);
14 }
15
16 vector unsigned long long
test3u(unsigned long long x)17 test3u (unsigned long long x)
18 {
19 return vec_splats (x);
20 }
21
22 /* { dg-final { scan-assembler-times "xxpermdi|mtvsrdd" 2 } } */
23