[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-unpack-pixel.c
blob8e7d11026e96995815668d1bb34b0156d58e2ecd
1 /* Verify that overloaded built-ins for vec_unpackh and vec_unpackl with pixel
2 inputs produce the right code. */
4 /* { dg-do compile } */
5 /* { dg-require-effective-target powerpc_altivec_ok } */
6 /* { dg-options "-maltivec -O2" } */
8 #include <altivec.h>
10 vector unsigned int
11 testf_el (vector pixel vpx2)
13 return vec_unpackl (vpx2);
16 vector unsigned int
17 testf_eh (vector pixel vpx2)
19 return vec_unpackh (vpx2);
22 /* { dg-final { scan-assembler-times "vupkhpx" 1 } } */
23 /* { dg-final { scan-assembler-times "vupklpx" 1 } } */