This patch is base on D120886 and D120887
These 2 patches let Global Value inline asm operand visible in inline asm code string.
But they bring some problems in building inline asm in PIC model.
(Some problems of building inline asm in PIC model are always existed for a long time.)
There are 3 kind PIC models in X86 : GOTPIC, RIPPIC and StubPIC
This patch support building Global Value inline asm operand in GOTPIC, RIPPIC PIC model.
For StubPIC , there is always incorrect in using global value in inline asm. For example, the mangle and address calculation is incorrect in https://godbolt.org/z/3T4PGdeqM I will fix it in another patch if we have such requirement.
I suggest the following doc:
Print a memory reference or operand for use as the argument of a call instruction (e.g. omit (rip), even though it's PC-relative) or a memory reference with explict base reg and index reg.