aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.4.3/gcc/testsuite/gcc.target/i386/pr37843-2.c
blob: e36cb0d95e790d7f3c381e6b5e8b47b244dd949b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* Test for stack alignment with sibcall optimization.  */
/* { dg-do compile { target nonpic } } */
/* { dg-options "-O2 -mpreferred-stack-boundary=6 -mincoming-stack-boundary=6" } */
/* { dg-final { scan-assembler-not "and\[lq\]?\[\\t \]*\\$-64,\[\\t \]*%\[re\]?sp" } } */
/* { dg-final { scan-assembler-not "call\[\\t \]*foo" } } */
/* { dg-final { scan-assembler "jmp\[\\t \]*foo" } } */

extern int foo (void);

int bar (void)
{
    return foo();
}