[llvm] [X86][MC] Support Enc/Dec for EGPR for promoted MOVDIR instruction (PR #74713)

Phoebe Wang via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 13 23:11:05 PST 2023


================
@@ -1330,7 +1330,8 @@ static int getInstructionID(struct InternalInstruction *insn,
   //  any position.
   if ((insn->opcodeType == ONEBYTE && ((insn->opcode & 0xFC) == 0xA0)) ||
       (insn->opcodeType == TWOBYTE && (insn->opcode == 0xAE)) ||
-      (insn->opcodeType == THREEBYTE_38 && insn->opcode == 0xF8)) {
+      (insn->opcodeType == THREEBYTE_38 && insn->opcode == 0xF8) ||
+      (insn->vectorExtensionType == TYPE_EVEX && insn->opcode == 0xF8)) {
----------------
phoebewang wrote:

Should we add the limitation to MAP4? I think we should have other `insn->opcode == 0xF8` for EVEX encoding.

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


More information about the llvm-commits mailing list