================ @@ -1671,6 +1707,8 @@ bool RISCVAsmParser::matchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode, return generateImmOutOfRangeError(Operands, ErrorInfo, 0, (1 << 10) - 1); case Match_InvalidUImm11: return generateImmOutOfRangeError(Operands, ErrorInfo, 0, (1 << 11) - 1); + case Match_InvalidUImm16NonZero: + return generateImmOutOfRangeError(Operands, ErrorInfo, 1, (1 << 15) - 1); ---------------- hchandel wrote:
Thanks for pointing this out. Corrected in the latest commit. https://github.com/llvm/llvm-project/pull/130779 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits