1 /* Verify that overloaded built-ins for vec_pack with long long
2 inputs produce the right results. */
3
4 /* { dg-do compile { target lp64 } } */
5 /* { dg-require-effective-target powerpc_p8vector_ok } */
6 /* { dg-options "-mvsx -mpower8-vector -O2" } */
7
8 #include <altivec.h>
9
10 vector bool int
11 testbl_h (vector bool long long vbl2, vector bool long long vbl3)
12 {
13 return vec_pack (vbl2, vbl3);
14 }
15
16 vector signed int
17 testsl_h (vector signed long long vsl2, vector signed long long vsl3)
18 {
19 return vec_pack (vsl2, vsl3);
20 }
21
22 vector unsigned int
23 testul_h (vector unsigned long vul2, vector unsigned long vul3)
24 {
25 return vec_pack (vul2, vul3);
26 }
27
28 /* { dg-final { scan-assembler-times "vpkudum" 3 } } */