c++: normalizing ttp constraints [PR115656]
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-logical-eqv-int.c
blob3435e3a0e4582ff8f7457f5cccdce2df52a5b6d5
1 /* Verify that overloaded built-ins for vec_eqv with int
2 inputs produce the right results. */
4 /* { dg-do compile } */
5 /* { dg-options "-mvsx -O2" } */
6 /* { dg-additional-options "-mdejagnu-cpu=power8" { target { ! has_arch_pwr8 } } } */
7 /* { dg-require-effective-target powerpc_vsx } */
9 #include <altivec.h>
11 vector bool int
12 test1 (vector bool int x, vector bool int y)
14 return vec_eqv (x, y);
17 vector signed int
18 test3 (vector signed int x, vector signed int y)
20 return vec_eqv (x, y);
23 vector unsigned int
24 test6 (vector unsigned int x, vector unsigned int y)
26 return vec_eqv (x, y);
29 /* { dg-final { scan-assembler-times "xxleqv" 3 } } */