Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.target / i386 / pr37843-1.c
blob981988223e04b06cc459059b29e5b54154fd0fb4
1 /* Test for stack alignment with sibcall optimization. */
2 /* { dg-do compile { target nonpic } } */
3 /* { dg-options "-O2 -mpreferred-stack-boundary=6 -mincoming-stack-boundary=5" } */
4 /* { dg-final { scan-assembler "and\[lq\]?\[\\t \]*\\$-64,\[\\t \]*%\[re\]?sp" } } */
5 /* { dg-final { scan-assembler "call\[\\t \]*_?foo" } } */
6 /* { dg-final { scan-assembler-not "jmp\[\\t \]*_?foo" } } */
8 extern int foo (void);
10 int bar (void)
12 return foo();