2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr37843-4.c
blobbf2fed9da2d0bfd0a2883e6f3ae225e5c11c1d60
1 /* Test for stack alignment with sibcall optimization. */
2 /* { dg-do compile { target { ia32 && nonpic } } } */
3 /* { dg-options "-O2 -msse2 -mpreferred-stack-boundary=4 -mstackrealign" } */
4 /* { dg-final { scan-assembler-not "andl\[\\t \]*\\$-16,\[\\t \]*%\[re\]?sp" } } */
5 /* { dg-final { scan-assembler-not "call\[\\t \]*_?foo" } } */
6 /* { dg-final { scan-assembler "jmp\[\\t \]*_?foo" } } */
8 extern int foo (void);
10 int bar (void)
12 return foo();