[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / rop-4.c
blob80faa9b3f7b420e36058ef93996877ff7ef817a2
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mdejagnu-cpu=power10 -mrop-protect" } */
3 /* { dg-require-effective-target rop_ok } */
5 /* Verify that no ROP-protect instructions are inserted when no
6 call is present. */
9 int bar ()
11 return 5;
14 /* { dg-final { scan-assembler-not {\mhashst\M} } } */
15 /* { dg-final { scan-assembler-not {\mhashchk\M} } } */