[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 17:25:53 PST 2023
================
@@ -636,14 +664,13 @@ static int readModRM(struct InternalInstruction *insn) {
break;
}
- reg |= rFromREX(insn->rexPrefix) << 3;
- rm |= bFromREX(insn->rexPrefix) << 3;
+ reg |= (rFromREX(insn->rexPrefix) << 3) |
+ (r2FromREX2(insn->rex2ExtensionPrefix[1]) << 4);
+ rm |= (bFromREX(insn->rexPrefix) << 3) |
+ (b2FromREX2(insn->rex2ExtensionPrefix[1]) << 4);
----------------
KanRobert wrote:
No need. As I said in the description, we "Simulate the REX2 prefix w/ the 2nd and 3rd payloads of EVEX"
https://github.com/llvm/llvm-project/pull/72102
More information about the llvm-commits
mailing list