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

Phoebe Wang via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 14 07:52:44 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;
----------------
phoebewang wrote:

Why do we need this since it's a constant?

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


More information about the llvm-commits mailing list