[llvm] [Xtensa] Implement Code Density Option. (PR #119639)

Andrei Safronov via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 13 06:30:44 PST 2024


================
@@ -480,6 +485,12 @@ bool XtensaAsmParser::matchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
   case Match_InvalidImm1_16:
     return Error(RefineErrorLoc(IDLoc, Operands, ErrorInfo),
                  "expected immediate in range [1, 16]");
+  case Match_InvalidImm1n_15:
+    return Error(RefineErrorLoc(IDLoc, Operands, ErrorInfo),
+                 "expected immediate in range [-1, 15] except 0");
+  case Match_InvalidImm32n_95:
+    return Error(RefineErrorLoc(IDLoc, Operands, ErrorInfo),
+                 "expected immediate in range [-32, 95] except 0");
----------------
andreisfr wrote:

Thank you very much for comments. I fixed error message.

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


More information about the llvm-commits mailing list