Skip to content

Commit 88d1dcf

Browse files
committed
feat: RISC-V target feature B; implies Zba, Zbb, Zbs
zba, zbb, and zbs are already stable, B is a convenient alias for all three, so it seems reasonable to stabilize it as well. The fourth bitmanip extension, Zbc, is not implied by B.
1 parent 65fa0ab commit 88d1dcf

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

compiler/rustc_target/src/target_features.rs

+1
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,7 @@ const MIPS_FEATURES: &[(&str, Stability, ImpliedFeatures)] = &[
491491
static RISCV_FEATURES: &[(&str, Stability, ImpliedFeatures)] = &[
492492
// tidy-alphabetical-start
493493
("a", Stable, &["zaamo", "zalrsc"]),
494+
("b", Stable, &["zba", "zbb", "zbs"]),
494495
("c", Stable, &[]),
495496
("d", Unstable(sym::riscv_target_feature), &["f"]),
496497
("e", Unstable(sym::riscv_target_feature), &[]),

tests/ui/check-cfg/target_feature.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ LL | cfg!(target_feature = "_UNEXPECTED_VALUE");
4949
`avxvnni`
5050
`avxvnniint16`
5151
`avxvnniint8`
52+
`b`
5253
`backchain`
5354
`bf16`
5455
`bmi1`

0 commit comments

Comments
 (0)