[llvm] [X86] Fix misassemble due to not storing registers to state machine on RParen (PR #150252)

Phoebe Wang via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 23 20:03:22 PDT 2025


================
@@ -1054,9 +1054,27 @@ class X86AsmParser : public MCTargetAsmParser {
       case IES_RBRAC:
       case IES_RPAREN:
         State = IES_RPAREN;
+        // In the case of a multiply, onRegister has already set IndexReg
+        // directly, with appropriate scale
+        // Otherwise if we just saw a register it has only been stored in
+        // TmpReg, so we need to store it into the state machine
----------------
phoebewang wrote:

period

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


More information about the llvm-commits mailing list