summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr37843-4.c
blob: f5e024cc4250b7a586759a50a2c62ea4f96fd1f6 (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 { ilp32 && nonpic } } } */
/* { dg-options "-O2 -msse2 -mpreferred-stack-boundary=4 -mstackrealign" } */
/* { dg-require-effective-target sse2 } */
/* { dg-final { scan-assembler-not "andl\[\\t \]*\\$-16,\[\\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();
}