We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69482e8 commit a343dcbCopy full SHA for a343dcb
3 files changed
compiler/rustc_codegen_llvm/src/llvm_util.rs
@@ -281,6 +281,8 @@ pub(crate) fn to_llvm_features<'a>(sess: &Session, s: &'a str) -> Option<LLVMFea
281
("riscv32" | "riscv64", "zaamo") if get_version().0 < 19 => None,
282
("riscv32" | "riscv64", "zabha") if get_version().0 < 19 => None,
283
("riscv32" | "riscv64", "zalrsc") if get_version().0 < 19 => None,
284
+ ("riscv32" | "riscv64", "zama16b") if get_version().0 < 19 => None,
285
+ ("riscv32" | "riscv64", "zacas") if get_version().0 < 20 => None,
286
// Enable the evex512 target feature if an avx512 target feature is enabled.
287
("x86", s) if s.starts_with("avx512") => {
288
Some(LLVMFeature::with_dependency(s, TargetFeatureFoldStrength::EnableOnly("evex512")))
compiler/rustc_target/src/target_features.rs
@@ -497,9 +497,14 @@ static RISCV_FEATURES: &[(&str, Stability, ImpliedFeatures)] = &[
497
("relax", Unstable(sym::riscv_target_feature), &[]),
498
("unaligned-scalar-mem", Unstable(sym::riscv_target_feature), &[]),
499
("v", Unstable(sym::riscv_target_feature), &[]),
500
+ ("za128rs", Unstable(sym::riscv_target_feature), &[]),
501
+ ("za64rs", Unstable(sym::riscv_target_feature), &[]),
502
("zaamo", Unstable(sym::riscv_target_feature), &[]),
503
("zabha", Unstable(sym::riscv_target_feature), &["zaamo"]),
504
+ ("zacas", Unstable(sym::riscv_target_feature), &["zaamo"]),
505
("zalrsc", Unstable(sym::riscv_target_feature), &[]),
506
+ ("zama16b", Unstable(sym::riscv_target_feature), &[]),
507
+ ("zawrs", Unstable(sym::riscv_target_feature), &[]),
508
("zba", Stable, &[]),
509
("zbb", Stable, &[]),
510
("zbc", Stable, &[]),
tests/ui/check-cfg/target_feature.stderr
@@ -279,9 +279,14 @@ LL | cfg!(target_feature = "_UNEXPECTED_VALUE");
279
`xsavec`
280
`xsaveopt`
`xsaves`
+`za128rs`
+`za64rs`
`zaamo`
`zabha`
+`zacas`
`zalrsc`
+`zama16b`
289
+`zawrs`
290
`zba`
291
`zbb`
292
`zbc`
0 commit comments