[llvm] [X86][MC] Support encoding/decoding for APX variant ADD/SUB/ADC/SBB/OR/XOR instructions (PR #76319)

Phoebe Wang via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 27 01:58:29 PST 2023


================
@@ -3996,6 +4001,8 @@ unsigned X86AsmParser::checkTargetMatchPredicate(MCInst &Inst) {
 
   if (UseApxExtendedReg && !X86II::canUseApxExtendedReg(MCID))
     return Match_Unsupported;
+  if (ForcedNoFlag != static_cast<bool>(MCID.TSFlags & X86II::EVEX_NF))
----------------
phoebewang wrote:

Then how can non `{nf}` instruction correctly matched to non {nf} instruction?
Or we should concat `{nf}` in asm string since its mandatory?

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


More information about the llvm-commits mailing list