[clang] [llvm] [RISCV][MC] Add experimental Smcsps and Sscsps support (PR #211712)

Zeyi Xu via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 24 06:02:08 PDT 2026


================
@@ -165,6 +165,8 @@ def : SysReg<"scause", 0x142>;
 def : SysReg<"stval", 0x143>;
 def : DeprecatedSysRegName<"sbadaddr", 0x143>;
 def : SysReg<"sip", 0x144>;
+let FeaturesRequired = [{ {RISCV::FeatureStdExtSscsps} }] in
+def : SysReg<"sspcs", 0x149>;
----------------
zeyi2 wrote:

Fixed, thanks. I also moved the `sspcs` and `mspcs` test cases to `machine-csr-names.s` and `supervisor-csr-names.s`, since those files contain most of the tests for standard CSRs (if I understand correctly).

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


More information about the cfe-commits mailing list