1 /* Verify that overloaded built-ins for vec_perm with int
2 inputs produce the right code. */
4 /* { dg-do compile } */
5 /* { dg-require-effective-target powerpc_altivec_ok } */
6 /* { dg-options "-maltivec -O2" } */
11 testbi (vector
bool int vbi2
, vector
bool int vbi3
,
12 vector
unsigned char vuc
)
14 return vec_perm (vbi2
, vbi3
, vuc
);
18 testsi (vector
signed int vsi2
, vector
signed int vsi3
,
19 vector
unsigned char vuc
)
21 return vec_perm (vsi2
, vsi3
, vuc
);
25 testui (vector
unsigned int vui2
, vector
unsigned int vui3
,
26 vector
unsigned char vuc
)
28 return vec_perm (vui2
, vui3
, vuc
);
31 /* { dg-final { scan-assembler-times {\m(?:v|xx)permr?\M} 3 } } */