Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / ret-thunk-15.c
blobbc2bedf5a9c7b4c63c28f872df44ce0ead9d8472
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mno-indirect-branch-register -mfunction-return=keep -mindirect-branch=keep -fno-pic" } */
4 extern void (*bar) (void);
6 __attribute__ ((function_return("thunk-extern"), indirect_branch("thunk")))
7 int
8 foo (void)
10 bar ();
11 return 0;
14 /* { dg-final { scan-assembler "jmp\[ \t\]*__x86_return_thunk" } } */
15 /* { dg-final { scan-assembler "jmp\[ \t\]*\.LIND" } } */
16 /* { dg-final { scan-assembler "call\[ \t\]*\.LIND" } } */
17 /* { dg-final { scan-assembler-times {\tpause} 1 } } */
18 /* { dg-final { scan-assembler-times {\tlfence} 1 } } */
19 /* { dg-final { scan-assembler "mov(?:l|q)\[ \t\]*_?bar" { target *-*-linux* } } } */
20 /* { dg-final { scan-assembler "call\[ \t\]*__x86_indirect_thunk_(r|e)ax" } } */
21 /* { dg-final { scan-assembler-not "pushq\[ \t\]%rax" } } */