OSDN Git Service

PR middle-end/29274
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.target / i386 / align-main-3.c
1 /* Test for stack alignment with sibcall optimization.  */
2 /* { dg-do compile { target { *-*-linux* && ilp32 } } } */
3 /* { dg-options "-O2 -mpreferred-stack-boundary=4 -mincoming-stack-boundary=2" } */
4 /* { dg-final { scan-assembler "andl\[\\t \]*\\$-16,\[\\t \]*%\[re\]?sp" } } */
5 /* { dg-final { scan-assembler "call\[\\t \]*foo" } } */
6 /* { dg-final { scan-assembler-not "jmp\[\\t \]*foo" } } */
7
8 extern int foo (void);
9
10 int
11 main ()
12 {
13   return foo ();
14 }