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

Phoebe Wang via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 27 03:54:19 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:

`{evex}` doesn't check in this way. Given a asm string without `{nf}`, it should be selected to non-NF instruction, otherwise, there's something wrong during match instruction. That's why I think it just need to assert for this case.

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


More information about the llvm-commits mailing list