1 /* Verify that overloaded built-ins for vec_unpackh and vec_unpackl with int
2 inputs produce the right code. */
4 /* { dg-do compile } */
5 /* { dg-require-effective-target powerpc_p8vector_ok } */
6 /* { dg-options "-mpower8-vector -O2" } */
11 testbi_l (vector
bool int vbi2
)
13 return vec_unpackl (vbi2
);
16 vector
signed long long
17 testsi_l (vector
signed int vsi2
)
19 return vec_unpackl (vsi2
);
23 testbi_h (vector
bool int vbi2
)
25 return vec_unpackh (vbi2
);
28 vector
signed long long
29 testsi_h (vector
signed int vsi2
)
31 return vec_unpackh (vsi2
);
34 /* { dg-final { scan-assembler-times "vupkhsw" 2 } } */
35 /* { dg-final { scan-assembler-times "vupklsw" 2 } } */