[clang] [llvm] [CodeGen] Fix inline asm clobber-list registers incorrectly marked Ea… (PR #206222)

Tong Zhang via cfe-commits cfe-commits at lists.llvm.org
Sat Jun 27 19:48:00 PDT 2026


lzto wrote:

Thanks for the feedback let me double check

> Is this actually true? GCC's docs say:
> 
> > When the compiler selects which registers to use to represent input and output operands, it does not use any of the clobbered registers. As a result, clobbered registers are available for any use in the assembler code.
> 
> -- https://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html#Clobbers-and-Scratch-Registers
> 
> And I don't see how this change can be right, given that would prevent any inline asm that clobbers a fixed register before it has fully consumed its inputs.



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


More information about the cfe-commits mailing list