(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
powerpc/
pr104894-2.c
       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 one
       7     indirect call and one indirect sibcall, with r12 and CTR containing
       8     the function addresses.  */
       9  
      10  void foo (void);
      11  
      12  void
      13  bar (void)
      14  {
      15    foo ();
      16    foo ();
      17  }
      18  
      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} } } */