[clang] [llvm] [RISCV] Add Zilsd and Zclsd Extensions (PR #131094)
Sam Elliott via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 18 09:20:08 PDT 2025
================
@@ -780,6 +780,14 @@ Error RISCVISAInfo::checkDependency() {
return getIncompatibleError("xwchc", "zcb");
}
+ if (Exts.count("zclsd") != 0) {
+ if (XLen != 32)
+ return getError("'zclsd' is only supported for 'rv32'");
+
+ if (Exts.count("zcf") != 0)
+ return getIncompatibleError("zclsd", "zcf");
+ }
+
----------------
lenary wrote:
This code is not tested. There should be tests in RISCVISAInfoTest.cpp `TEST(ParseArchString, RejectsConflictingExtensions)`
https://github.com/llvm/llvm-project/pull/131094
More information about the llvm-commits
mailing list