llvm-project
6a6ae874 - [Mips] Print %a on a register operand as 0($reg) (#244994)

Commit
1 day ago
[Mips] Print %a on a register operand as 0($reg) (#244994) The generic AsmPrinter handles %a on a register by calling PrintAsmMemoryOperand, but the Mips version expects a base register followed by an offset immediate. For a plain register operand it read the next INLINEASM operand as the offset, e.g. the flag of the $at clobber, and printed 12($reg). Print the register with a zero offset, as GCC does. Fixes #243133. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Author
Parents
Loading