[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
================
@@ -888,6 +890,12 @@ struct NDSVLNPseudo {
#define GET_RISCVVSXTable_DECL
#define GET_RISCVNDSVLNTable_DECL
#include "RISCVGenSearchableTables.inc"
+
+inline bool isValidYBNDSWImm(int64_t Imm) {
+ return (Imm >= 1 && Imm <= 255) ||
+ (Imm >= 256 && Imm <= 508 && (Imm % 8) == 0) ||
----------------
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