[committed] Fix previously latent bug in reorg affecting cris port
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-unpack-float.c
blobec8d12c97b74fce1f9395364d7de8a53227c2c24
1 /* Verify that overloaded built-ins for vec_unpackh and vec_unpackl with float
2 inputs produce the right code. */
4 /* { dg-do compile } */
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 double
12 testf_l (vector float vf2)
14 return vec_unpackl (vf2);
17 vector double
18 testf_h (vector float vf2)
20 return vec_unpackh (vf2);
23 /* { dg-final { scan-assembler-times "xxsldwi" 4 } } */
24 /* { dg-final { scan-assembler-times "xvcvspdp" 2 } } */