1 /* Verify that overloaded built-ins for vec_eqv with short
2 inputs produce the right results. */
4 /* { dg-do compile } */
5 /* { dg-require-effective-target powerpc_vsx_ok } */
6 /* { dg-options "-mvsx -O2" } */
7 /* { dg-additional-options "-mdejagnu-cpu=power8" { target { ! has_arch_pwr8 } } } */
12 test1 (vector
bool short x
, vector
bool short y
)
14 return vec_eqv (x
, y
);
18 test3 (vector
signed short x
, vector
signed short y
)
20 return vec_eqv (x
, y
);
24 test6 (vector
unsigned short x
, vector
unsigned short y
)
26 return vec_eqv (x
, y
);
29 /* { dg-final { scan-assembler-times "xxleqv" 3 } } */