[RS6000] Link power10 testcases
[gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-logical-eqv-short.c
1 /* Verify that overloaded built-ins for vec_eqv with short
2 inputs produce the right results. */
3
4 /* { dg-do compile } */
5 /* { dg-require-effective-target powerpc_p8vector_ok } */
6 /* { dg-options "-mpower8-vector -O2" } */
7
8 #include <altivec.h>
9
10 vector bool short
11 test1 (vector bool short x, vector bool short y)
12 {
13 return vec_eqv (x, y);
14 }
15
16 vector signed short
17 test3 (vector signed short x, vector signed short y)
18 {
19 return vec_eqv (x, y);
20 }
21
22 vector unsigned short
23 test6 (vector unsigned short x, vector unsigned short y)
24 {
25 return vec_eqv (x, y);
26 }
27
28 /* { dg-final { scan-assembler-times "xxleqv" 3 } } */