[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr104894.c
blobf46fe88168f0a2d229a34413dd7ab6631ee1beec
1 /* PR target/104894 */
2 /* { dg-require-effective-target powerpc_elfv2 } */
3 /* { dg-require-effective-target power10_ok } */
4 /* { dg-options "-O2 -mdejagnu-cpu=power10 -fno-plt" } */
6 /* Verify we do not ICE on the following test case and that we emit an
7 indirect sibcall, with r12 and CTR containing the function address. */
9 void foo (void);
11 void
12 bar (void)
14 foo ();
17 /* { dg-final { scan-assembler-times {\mmtctr 12\M} 1 } } */
18 /* { dg-final { scan-assembler-times {\mbctr\M} 1 } } */
19 /* { dg-final { scan-assembler-not {\mbl\M} } } */
20 /* { dg-final { scan-assembler-not {\mbctrl\M} } } */