1 /* Verify that overloaded built-ins for vec_perm with float
2 inputs produce the right code. */
3
4 /* { dg-do compile } */
5 /* { dg-require-effective-target powerpc_altivec_ok } */
6 /* { dg-options "-maltivec -O2" } */
7
8 #include <altivec.h>
9
10 vector float
testf(vector float vf2,vector float vf3,vector unsigned char vuc)11 testf (vector float vf2, vector float vf3, vector unsigned char vuc)
12 {
13 return vec_perm (vf2, vf3, vuc);
14 }
15
16 /* { dg-final { scan-assembler-times "vperm" 1 } } */
17