1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fipa-ra -fomit-frame-pointer -fno-optimize-sibling-calls" } */
3 /* { dg-additional-options "-mregparm=1" { target ia32 } } */
5 /* Test -fipa-ra optimization on self-recursive function. */
7 static int __attribute__((noinline
))
15 int __attribute__((noinline
))
21 /* For !nonpic && ia32 xfails, see PR64895. */
23 /* Check that no registers are saved/restored. */
24 /* { dg-final { scan-assembler-not "push" { xfail { { ! nonpic } && ia32 } } } } */
25 /* { dg-final { scan-assembler-not "pop" { xfail { { ! nonpic } && ia32 } } } } */
27 /* Check that addition uses dx. */
28 /* { dg-final { scan-assembler-times "addl\t%\[re\]?dx, %\[re\]?ax" 1 { xfail { { ! nonpic } && ia32 } } } } */
30 /* Verify that bar is self-recursive. */
31 /* { dg-final { scan-assembler-times "call\t_?bar" 2 } } */