1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mno-indirect-branch-register -mfunction-return=keep -mindirect-branch=thunk-extern -fno-pic" } */
4 typedef void (*dispatch_t
)(long offset
);
9 male_indirect_jump (long offset
)
15 /* { dg-final { scan-assembler "mov(?:l|q)\[ \t\]*_?dispatch" { target *-*-linux* } } } */
16 /* { dg-final { scan-assembler "call\[ \t\]*__x86_indirect_thunk_(r|e)ax" } } */
17 /* { dg-final { scan-assembler-not {\t(lfence|pause)} } } */
18 /* { dg-final { scan-assembler-not "jmp\[ \t\]*\.LIND" } } */
19 /* { dg-final { scan-assembler-not "call\[ \t\]*\.LIND" } } */