[llvm] [ARM][TableGen][MC] Change the ARM mnemonic operands to be optional for ASM parsing (PR #83436)
Alfie Richards via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 7 02:47:54 PST 2024
================
@@ -10984,6 +11087,12 @@ unsigned ARMAsmParser::checkTargetMatchPredicate(MCInst &Inst) {
if (!hasV8Ops() && (Inst.getOperand(0).getReg() == ARM::SP))
return Match_RequiresV8;
break;
+ case ARM::tMUL:
+ // The second source operand must be the same register as the destination
+ // operand.
+ if (Inst.getOperand(0).getReg() != Inst.getOperand(3).getReg())
+ return Match_RequiresDestinationRegisterMatchASourceRegister;
----------------
AlfieRichardsArm wrote:
Hmm yeah I can't see where in `build/lib/Target/ARM/ARMGenAsmMatcher.inc` such operand restrictions would be checked. Is this supported for instruction selection at all do you know?
https://github.com/llvm/llvm-project/pull/83436
More information about the llvm-commits
mailing list