2015-12-10 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr46470.c
blob11eb51a039404c69aba1f4c02844eb1c02ec3c22
1 /* { dg-do compile } */
2 /* The pic register save adds unavoidable stack pointer references. */
3 /* { dg-skip-if "" { ia32 && { ! nonpic } } { "*" } { "" } } */
4 /* These options are selected to ensure 1 word needs to be allocated
5 on the stack to maintain alignment for the call. This should be
6 transformed to push+pop. We also want to force unwind info updates. */
7 /* { dg-options "-Os -fomit-frame-pointer -fasynchronous-unwind-tables" } */
8 /* { dg-options "-Os -fomit-frame-pointer -mpreferred-stack-boundary=3 -fasynchronous-unwind-tables" { target ia32 } } */
9 /* ms_abi has reserved stack-region. */
10 /* { dg-skip-if "" { x86_64-*-mingw* } { "*" } { "" } } */
11 void f();
12 void g() { f(); f(); }
14 /* Both stack allocate and deallocate should be converted to push/pop. */
15 /* { dg-final { scan-assembler-not "sp" } } */