[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr104894-2.c
blobd1a011ef4d9054d033906a77bb823dde103d0216
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 one
7 indirect call and one indirect sibcall, with r12 and CTR containing
8 the function addresses. */
10 void foo (void);
12 void
13 bar (void)
15 foo ();
16 foo ();
19 /* { dg-final { scan-assembler-times {\mmtctr 12\M} 2 } } */
20 /* { dg-final { scan-assembler-times {\mbctrl\M} 1 } } */
21 /* { dg-final { scan-assembler-times {\mbctr\M} 1 } } */
22 /* { dg-final { scan-assembler-not {\mbl\M} } } */