summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr37843-2.c
blob: fa177714ab0b1a8f35404699bc1b1891ccd2744b (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();
}