[clang] [llvm] [RISCV][MC] Add experimental Smcsps and Sscsps support (PR #211712)
Sam Elliott via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 24 00:57:04 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>;
----------------
lenary wrote:
The convention for system registers is to only set `FeaturesRequired` for vendor extensions, looking at what we've done so far.
```suggestion
def : SysReg<"sspcs", 0x149>;
```
https://github.com/llvm/llvm-project/pull/211712
More information about the cfe-commits
mailing list