PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / indirect-thunk-register-4.c
blobf0cd9b75be80a38bda3edca279608cd95f6e5298
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mindirect-branch=keep -fno-pic" } */
4 extern void (*func_p) (void);
6 void
7 foo (void)
9 asm("call __x86_indirect_thunk_%V0" : : "a" (func_p));
12 /* { dg-final { scan-assembler "call\[ \t\]*__x86_indirect_thunk_eax" { target ia32 } } } */
13 /* { dg-final { scan-assembler "call\[ \t\]*__x86_indirect_thunk_rax" { target { ! ia32 } } } } */