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
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
* 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
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"
> 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
>
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