[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-logical-eqv-float.c
blobedbf2d4ff37da1675578a9bf66581ced00633784
1 /* Verify that overloaded built-ins for vec_eqv with float
2 inputs produce the right results. */
4 /* { dg-do compile } */
5 /* { dg-require-effective-target powerpc_vsx_ok } */
6 /* { dg-options "-mvsx -O2" } */
7 /* { dg-additional-options "-mdejagnu-cpu=power8" { target { ! has_arch_pwr8 } } } */
9 #include <altivec.h>
11 vector float
12 test1 (vector float x, vector float y)
14 return vec_eqv (x, y);
17 /* { dg-final { scan-assembler-times "xxleqv" 1 } } */