1 /* { dg-do compile { target { ! ia32 } } } */
2 /* { dg-options "-O2 -ffixed-rax -ffixed-rbx -ffixed-rcx -ffixed-rdx -ffixed-rdi -ffixed-rsi -mindirect-branch-cs-prefix -mindirect-branch=thunk-extern" } */
3 /* { dg-additional-options "-fno-pic" { target { ! *-*-darwin* } } } */
4
5 extern void (*fptr) (void);
6
7 void
8 foo (void)
9 {
10 fptr ();
11 }
12
13 /* { dg-final { scan-assembler-times "jmp\[ \t\]+_?__x86_indirect_thunk_r\[0-9\]+" 1 } } */
14 /* { dg-final { scan-assembler-times "\tcs" 1 } } */