[llvm] [X86][MC] Support decoding of EGPR for APX (PR #72102)

Shengchen Kan via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 14 20:08:37 PST 2023


================
@@ -474,6 +483,23 @@ static int readPrefixes(struct InternalInstruction *insn) {
                                   insn->vectorExtensionPrefix[1],
                                   insn->vectorExtensionPrefix[2]));
     }
+  } else if (isREX2(insn, byte)) {
+    uint8_t byte1;
+    if (peek(insn, byte1)) {
+      LLVM_DEBUG(dbgs() << "Couldn't read second byte of REX2");
+      return -1;
+    }
+    insn->rex2ExtensionPrefix[0] = byte;
----------------
KanRobert wrote:

We have rex2 prefix with payload 0 for two cases 
1. jmpabs
2. pseudo {rex2}


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


More information about the llvm-commits mailing list