[llvm] [X86][MC] Support encoding/decoding for APX variant ADD/SUB/ADC/SBB/OR/XOR instructions (PR #76319)
    Shengchen Kan via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Dec 27 02:10:13 PST 2023
    
    
  
================
@@ -1576,6 +1603,8 @@ void X86MCCodeEmitter::encodeInstruction(const MCInst &MI,
 
     if (HasVEX_4V) // Skip 1st src (which is encoded in VEX_VVVV)
       ++SrcRegNum;
+    if (IsND) // Skip the NDD operand encoded in EVEX_VVVV
+      ++CurOp;
----------------
KanRobert wrote:
It's not clean and would be caught by static analysis tool.  We can add a comment for it.
https://github.com/llvm/llvm-project/pull/76319
    
    
More information about the llvm-commits
mailing list