Skip to content

Commit 3ec3eea

Browse files
committed
RISCV: rva23u64/rva23s64 feature need llvm version > 20
1 parent e00d0a0 commit 3ec3eea

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

compiler/rustc_codegen_llvm/src/llvm_util.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,11 @@ pub(crate) fn to_llvm_features<'a>(sess: &Session, s: &'a str) -> Option<LLVMFea
278278
None
279279
}
280280
// Filter out features that are not supported by the current LLVM version
281-
("riscv32" | "riscv64", "zacas") if get_version().0 < 20 => None,
281+
("riscv32" | "riscv64", "zacas" | "rva23s64" | "rva23u64" | "sha" | "ssnpm" | "supm")
282+
if get_version().0 < 20 =>
283+
{
284+
None
285+
}
282286
(
283287
"s390x",
284288
"message-security-assist-extension12"

0 commit comments

Comments
 (0)