blob: 8e5f51f9d8b23adb3695c3fa590d2ccebc419b81 (
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 { ilp32 && nonpic } } } */
/* { dg-options "-O2 -msse2 -mpreferred-stack-boundary=4 -mstackrealign" } */
/* { 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();
}
|