| 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" } */ |
| 5 |
|
| 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. */ |
| 8 |
|
| 9 |
void foo (void); |
| 10 |
|
| 11 |
void |
| 12 |
bar (void) |
| 13 |
{ |
| 14 |
foo (); |
| 15 |
} |
| 16 |
|
| 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} } } */ |