================ @@ -940,6 +947,14 @@ struct RISCVOperand final : public MCParsedAsmOperand { [](int64_t Imm) { return Imm != INT64_MIN && isInt<5>(Imm - 1); }); } + bool isSImm18() const { return isBareSimmNLsbK<18, 0>(); } + + bool isSImm18Lsb0() const { return isBareSimmNLsb0<18>(); } + + bool isSImm19Lsb00() const { return isBareSimmNLsbK<19, 2>(); } + + bool isSImm20Lsb000() const { return isBareSimmNLsbK<20, 3>(); } ---------------- lenary wrote:
if these accept bare symbols, please call them `isBareSimm...`, and if they don't, they shouldn't be using `isBareSimmN` internally. https://github.com/llvm/llvm-project/pull/135110 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits