ubuntu-buildroot/output/build/host-gcc-initial-11.4.0/gcc/testsuite/gcc.target/powerpc/pr79439-3.c

27 lines
541 B
C
Raw Normal View History

2024-04-01 15:19:46 +00:00
/* { dg-do compile { target { powerpc-*-linux* && ilp32 } } } */
/* { dg-options "-O2 -fpic -fno-reorder-blocks" } */
/* { dg-require-effective-target fpic } */
/* Analog of pr79439-1.c for 32-bit Linux. */
int f (void);
void
g (void)
{
}
int
rec (int a)
{
int ret = 0;
if (a > 10 && f ())
ret += rec (a - 1);
g ();
return a + ret;
}
/* { dg-final { scan-assembler-times {\mbl f@plt\M} 1 } } */
/* { dg-final { scan-assembler-times {\mbl g@plt\M} 1 } } */
/* { dg-final { scan-assembler-times {\mbl rec@plt\M} 0 } } */