[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-pack-longlong.c
blobb5e8db2ec42a4793301c8725c1adc2ca1859f2fb
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-require-effective-target powerpc_vsx_ok } */
6 /* { dg-options "-mvsx -O2" } */
7 /* { dg-additional-options "-mdejagnu-cpu=power8" { target { ! has_arch_pwr8 } } } */
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 } } */