[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-abs-longlong-fwrapv.p9.c
blob471244b74d41d34c3c261af748bae8aace493d1e
1 /* Verify that overloaded built-ins for vec_abs with long long
2 inputs produce the right results. */
4 /* { dg-do compile } */
5 /* { dg-require-effective-target powerpc_vsx_ok } */
6 /* { dg-options "-O2 -mdejagnu-cpu=power9 -mvsx" } */
8 #include <altivec.h>
10 vector signed long long
11 test3 (vector signed long long x)
13 return vec_abs (x);
16 /* { dg-final { scan-assembler-times "vnegd" 1 } } */
17 /* { dg-final { scan-assembler-times "vmaxsd" 1 } } */