[committed] Fix previously latent bug in reorg affecting cris port
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-logical-eqv-char.c
blob9427c1f75f1bad332234716669d0d334f048dbfd
1 /* Verify that overloaded built-ins for vec_eqv with char
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 char
12 test1 (vector bool char x, vector bool char y)
14 return vec_eqv (x, y);
17 vector signed char
18 test3 (vector signed char x, vector signed char y)
20 return vec_eqv (x, y);
23 vector unsigned char
24 test6 (vector unsigned char x, vector unsigned char y)
26 return vec_eqv (x, y);
29 /* { dg-final { scan-assembler-times "xxleqv" 3 } } */