[llvm] [X86] Fix an assembler bug of CMPCCXADD. (PR #66748)

Shengchen Kan via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 19 02:47:35 PDT 2023


================
@@ -948,10 +948,10 @@ X86MCCodeEmitter::emitVEXOpcodePrefix(int MemOperand, const MCInst &MI,
     llvm_unreachable("Unexpected form in emitVEXOpcodePrefix!");
   case X86II::MRMDestMem4VOp3CC: {
     //  MemAddr, src1(ModR/M), src2(VEX_4V)
+    Prefix.setR(MI, CurOp++);
----------------
KanRobert wrote:

Yes, I think so. The comment at line 950 needs to be corrected too.

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


More information about the llvm-commits mailing list