[clang] [llvm] [RISC-V][MC] Introduce initial support for RVY (CHERI) (PR #199771)

Craig Topper via cfe-commits cfe-commits at lists.llvm.org
Tue May 26 18:22:25 PDT 2026


================
@@ -1737,6 +1768,17 @@ bool RISCVAsmParser::matchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
         ErrorLoc,
         "stack adjustment is invalid for this instruction and register list");
   }
+  case Match_InvalidYBNDSWImm: {
+    const SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
+    return Error(ErrorLoc, "immediate must be an integer in the range "
+                           "[1, 255], a multiple of 8 in the range [256, 508], "
----------------
topperc wrote:

508 isn't a multiple of 8.

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


More information about the cfe-commits mailing list