gcc/ChangeLog:
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-logical-eqv-int.c
blobf5d292e8550de62801cad1490156f4bbd3d9bdf2
1 /* Verify that overloaded built-ins for vec_eqv with int
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 int
11 test1 (vector bool int x, vector bool int y)
13 return vec_eqv (x, y);
16 vector signed int
17 test3 (vector signed int x, vector signed int y)
19 return vec_eqv (x, y);
22 vector unsigned int
23 test6 (vector unsigned int x, vector unsigned int y)
25 return vec_eqv (x, y);
28 /* { dg-final { scan-assembler-times "xxleqv" 3 } } */