[llvm] [X86][MC] Support Enc/Dec for NF for promoted BMI instructions in 73899 (PR #76709)

Phoebe Wang via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 2 23:24:27 PST 2024


================
@@ -1134,6 +1134,21 @@ static int getInstructionIDWithAttrMask(uint16_t *instructionID,
   return 0;
 }
 
+static bool isNFnotMap4(InternalInstruction *insn) {
+  // Promoted BMI instrs below has nf version.
+  if (insn->opcodeType == THREEBYTE_38 &&
+      ppFromEVEX3of4(insn->vectorExtensionPrefix[2]) == VEX_PREFIX_NONE) {
----------------
phoebewang wrote:

Should we check if it's EVEX encoding?

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


More information about the llvm-commits mailing list