[clang] [llvm] [RISCV] Add Andes XAndesperf (Andes Performance) extension. (PR #135110)
Jim Lin via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 10 20:05:07 PDT 2025
================
@@ -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>(); }
----------------
tclin914 wrote:
Done. Thanks.
https://github.com/llvm/llvm-project/pull/135110
More information about the cfe-commits
mailing list