/* Verify that overloaded built-ins for vec_eqv with char inputs produce the right results. */ /* { dg-do compile } */ /* { dg-options "-mvsx -O2" } */ /* { dg-additional-options "-mdejagnu-cpu=power8" { target { ! has_arch_pwr8 } } } */ /* { dg-require-effective-target powerpc_vsx } */ #include vector bool char test1 (vector bool char x, vector bool char y) { return vec_eqv (x, y); } vector signed char test3 (vector signed char x, vector signed char y) { return vec_eqv (x, y); } vector unsigned char test6 (vector unsigned char x, vector unsigned char y) { return vec_eqv (x, y); } /* { dg-final { scan-assembler-times "xxleqv" 3 } } */