1 /* Verify that overloaded built-ins for vec_perm with char
2 inputs produce the right code. */
4 /* { dg-do compile } */
5 /* { dg-require-effective-target powerpc_altivec_ok } */
6 /* { dg-options "-maltivec -O2" } */
11 testbc (vector
bool char vbc2
, vector
bool char vbc3
,
12 vector
unsigned char vuc
)
14 return vec_perm (vbc2
, vbc3
, vuc
);
18 testsc (vector
signed char vsc2
, vector
signed char vsc3
,
19 vector
unsigned char vuc
)
21 return vec_perm (vsc2
, vsc3
, vuc
);
25 testuc (vector
unsigned char vuc2
, vector
unsigned char vuc3
,
26 vector
unsigned char vuc
)
28 return vec_perm (vuc2
, vuc3
, vuc
);
31 /* { dg-final { scan-assembler-times {\m(?:v|xx)permr?\M} 3 } } */