Re: [PATCH 4/4] x86: Add 'V' register operand modifier

2018-01-13 Thread Woodhouse, David
On Sat, 2018-01-13 at 08:36 -0800, H.J. Lu wrote: > On Sat, Jan 13, 2018 at 8:28 AM, Florian Weimer wrote: > > > > * H. J. Lu: > > > > > > > > On Fri, Jan 12, 2018 at 10:00 AM, Jan Hubicka wrote: > > > > > > > > > > > > > > Add 'V', a special modifier

Re: [PATCH 4/4] x86: Add 'V' register operand modifier

2018-01-13 Thread H.J. Lu
On Sat, Jan 13, 2018 at 8:28 AM, Florian Weimer wrote: > * H. J. Lu: > >> On Fri, Jan 12, 2018 at 10:00 AM, Jan Hubicka wrote: Add 'V', a special modifier which prints the name of the full integer register without '%'. For extern void

Re: [PATCH 4/4] x86: Add 'V' register operand modifier

2018-01-13 Thread Florian Weimer
* H. J. Lu: > On Fri, Jan 12, 2018 at 10:00 AM, Jan Hubicka 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

Re: [PATCH 4/4] x86: Add 'V' register operand modifier

2018-01-12 Thread H.J. Lu
On Fri, Jan 12, 2018 at 10:00 AM, Jan Hubicka 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"

Re: [PATCH 4/4] x86: Add 'V' register operand modifier

2018-01-12 Thread Jan Hubicka
> 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: > movqfunc_p(%rip), %rax >

[PATCH 4/4] x86: Add 'V' register operand modifier

2018-01-12 Thread H.J. Lu
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: movqfunc_p(%rip), %rax call