[llvm] X86: Support dollar symbol for AT&T syntax and add output-asm-variant to llc (PR #147876)

LIU Hao via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 9 22:32:30 PDT 2025


lhmouse wrote:

> > In your commit I suspect this will not be correct: `calll ($hen at PLT)` It should be `calll ($hen)@PLT`. The modifier is not to be mistaken as part of the symbol.
> 
> Both `calll ($hen at PLT)` and `calll ($hen)@PLT` are assembled correctly in GAS and LLVM integrated assembler. This patch prints the first form as it minimizes changes to the generic MCAsmInfo::printExpr MCExpr::print.

Have you tried the FreeBSD assembler, or the Solaris one?



https://github.com/llvm/llvm-project/pull/147876


More information about the llvm-commits mailing list