Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / ret-thunk-25.c
blobf73553c9a9f8087dcc27fff3d2c42006230f9cb6
1 /* PR target/r84530 */
2 /* { dg-do compile { target ia32 } } */
3 /* { dg-options "-O2 -mfunction-return=thunk -fcheck-pointer-bounds -mmpx -fno-pic" } */
5 struct s { _Complex unsigned short x; };
6 struct s gs = { 100 + 200i };
7 struct s __attribute__((noinline)) foo (void) { return gs; }
9 /* { dg-final { scan-assembler-times "popl\[\\t \]*%ecx" 1 } } */
10 /* { dg-final { scan-assembler "lea\[l\]?\[\\t \]*4\\(%esp\\), %esp" } } */
11 /* { dg-final { scan-assembler "jmp\[ \t\]*__x86_return_thunk_bnd_ecx" } } */
12 /* { dg-final { scan-assembler "jmp\[ \t\]*\.LIND" } } */
13 /* { dg-final { scan-assembler "call\[ \t\]*\.LIND" } } */
14 /* { dg-final { scan-assembler {\tpause} } } */
15 /* { dg-final { scan-assembler {\tlfence} } } */