[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
Mon Mar 4 01:30:21 PST 2024


================
@@ -1474,7 +1513,7 @@ void AsmMatcherInfo::buildOperandMatchInfo() {
         OperandMask |= maskTrailingOnes<unsigned>(NumOptionalOps + 1)
                        << (i - NumOptionalOps);
       }
-      if (Op.Class->IsOptional)
+      if (Op.Class->IsOptional && Op.Class->OptionalShouldOffsetCustomParsers)
----------------
AlfieRichardsArm wrote:

Sorry, bad example `vmoveq.f32 q0, #0.125` works with `bin/llvm-mc -debug -triple armv8a-none-eabi -mattr=-fullfp16,+neon -show-encoding <<< "vmov.f32 q0, #0.125"`

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


More information about the llvm-commits mailing list