[llvm] [ARM][TableGen][MC] Change the ARM mnemonic operands to be optional for ASM parsing (PR #83436)

Sergei Barannikov via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 6 04:56:42 PST 2024


================
@@ -7050,29 +7098,24 @@ bool ARMAsmParser::ParseInstruction(ParseInstructionInfo &Info, StringRef Name,
   }
 
   // Add the carry setting operand, if necessary.
-  if (CanAcceptCarrySet) {
+  if (CanAcceptCarrySet && CarrySetting != 0) {
----------------
s-barannikov wrote:

```suggestion
  if (CanAcceptCarrySet && CarrySetting) {
```

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


More information about the llvm-commits mailing list