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

2018-01-14 Thread H.J. Lu
* gcc.target/i386/indirect-thunk-register-4.c: New test. > > OK. > Honza Here is the backport for GCC 7. OK for gcc-7-branch? -- H.J. From 5e977dfedb93e764dc480c0e0674500590ef5604 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Sat, 6 Jan 2018 22:29:56 -0800 Subject: [PATC

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

2018-01-14 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/5] x86: Add 'V' register operand modifier

2018-01-13 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__x86_indirect_thunk