Use conditional internal functions in if-conversion
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-logical-eqv-floatdouble.c
blob56b7cac503dd33364c7118216eaa77e33c6e6da3
1 /* Verify that overloaded built-ins for vec_eqv with float and
2 double inputs for VSX 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 float
11 test1 (vector float x, vector float y)
13 return vec_eqv (x, y);
16 vector double
17 test2 (vector double x, vector double y)
19 return vec_eqv (x, y);
22 /* { dg-final { scan-assembler-times "xxleqv" 2 } } */