Debian Codegraph @

gcc/testsuite/gcc.target/i386/indirect-thunk-register-4.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mindirect-branch=keep " } */
3 /* { dg-additional-options "-fno-pic" { target { ! *-*-darwin* } } } */
4
5 extern void (*func_p) (void);
6
7 void
8 foo (void)
9 {
10 asm("call __x86_indirect_thunk_%V0" : : "a" (func_p));
11 }
12
13 /* { dg-final { scan-assembler "call\[ \t\]*__x86_indirect_thunk_eax" { target ia32 } } } */
14 /* { dg-final { scan-assembler "call\[ \t\]*__x86_indirect_thunk_rax" { target { ! ia32 } } } } */