Use conditional internal functions in if-conversion
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-logical-eqv-char.c
blob6810848dee1c071132e6786ea17955bd93d46f5c
1 /* Verify that overloaded built-ins for vec_eqv with char
2 inputs produce the right results. */
4 /* { dg-do compile } */
5 /* { dg-require-effective-target powerpc_p8vector_ok } */
6 /* { dg-options "-mpower8-vector -O2" } */
8 #include <altivec.h>
10 vector bool char
11 test1 (vector bool char x, vector bool char y)
13 return vec_eqv (x, y);
16 vector signed char
17 test3 (vector signed char x, vector signed char y)
19 return vec_eqv (x, y);
22 vector unsigned char
23 test6 (vector unsigned char x, vector unsigned char y)
25 return vec_eqv (x, y);
28 /* { dg-final { scan-assembler-times "xxleqv" 3 } } */