Compile gcc.target/i386/fuse-caller-save.c with -fomit-frame-pointer (PR target/61533)
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / fuse-caller-save.c
blob4ec49952b27f554978546c7ee08d23082819fab0
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fuse-caller-save -fomit-frame-pointer" } */
3 /* { dg-additional-options "-mregparm=1" { target ia32 } } */
5 /* Testing -fuse-caller-save optimization option. */
7 static int __attribute__((noinline))
8 bar (int x)
10 return x + 3;
13 int __attribute__((noinline))
14 foo (int y)
16 return y + bar (y);
19 int
20 main (void)
22 return !(foo (5) == 13);
25 /* { dg-final { scan-assembler-not "\.cfi_def_cfa_offset" } } */
26 /* { dg-final { scan-assembler-not "\.cfi_offset" } } */