c++: normalizing ttp constraints [PR115656]
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-pack-longlong.c
blobb0f6c5038085d2491493e7ce203567ace9cb4c9e
1 /* Verify that overloaded built-ins for vec_pack with long long
2 inputs produce the right results. */
4 /* { dg-do compile { target lp64 } } */
5 /* { dg-options "-mvsx -O2" } */
6 /* { dg-additional-options "-mdejagnu-cpu=power8" { target { ! has_arch_pwr8 } } } */
7 /* { dg-require-effective-target powerpc_vsx } */
9 #include <altivec.h>
11 vector bool int
12 testbl_h (vector bool long long vbl2, vector bool long long vbl3)
14 return vec_pack (vbl2, vbl3);
17 vector signed int
18 testsl_h (vector signed long long vsl2, vector signed long long vsl3)
20 return vec_pack (vsl2, vsl3);
23 vector unsigned int
24 testul_h (vector unsigned long vul2, vector unsigned long vul3)
26 return vec_pack (vul2, vul3);
29 /* { dg-final { scan-assembler-times "vpkudum" 3 } } */