summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/align-main-3.c
blob: d2f88d859610c15652d1549ef6645a7c044f0d45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* Test for stack alignment with sibcall optimization.  */
/* { dg-do compile { target { *-*-linux* && ilp32 } } } */
/* { dg-options "-O2 -mpreferred-stack-boundary=4 -mincoming-stack-boundary=2" } */
/* { dg-final { scan-assembler "andl\[\\t \]*\\$-16,\[\\t \]*%\[re\]?sp" } } */
/* { dg-final { scan-assembler "call\[\\t \]*foo" } } */
/* { dg-final { scan-assembler-not "jmp\[\\t \]*foo" } } */

extern int foo (void);

int
main ()
{
  return foo ();
}