On 01/07/2018 03:59 PM, H.J. Lu wrote:
> Add 'V', a special modifier which prints the name of the full integer
> register without '%'.  For
> 
> extern void (*func_p) (void);
> 
> void
> foo (void)
> {
>   asm ("call __x86_indirect_thunk_%V0" : : "a" (func_p));
> }
> 
> it generates:
> 
> foo:
>       movq    func_p(%rip), %rax
>       call    __x86_indirect_thunk_rax
>       ret
> 
> gcc/
> 
>       * config/i386/i386.c (print_reg): Print the name of the full
>       integer register without '%'.
>       (ix86_print_operand): Handle 'V'.
>        * doc/extend.texi: Document 'V' modifier.
> 
> gcc/testsuite/
> 
>       * gcc.target/i386/indirect-thunk-register-4.c: New test.
No comments from me.  Uros has final call here.

jeff

Reply via email to