Skip to content

Commit be8fd0e

Browse files
committed
feat: Target features for 1st group of RISC-V Bitmanip extensions
These use the same names as LLVM and is_riscv_feature_detected!: - zba (address generation instructions) - zbb (basic bit manipulation) - zbc (carry-less multiplication) - zbs (single-bit manipulation)
1 parent 2fbc08e commit be8fd0e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compiler/rustc_codegen_ssa/src/target_features.rs

+4
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,10 @@ const RISCV_ALLOWED_FEATURES: &[(&str, Option<Symbol>)] = &[
227227
("zhinxmin", Some(sym::riscv_target_feature)),
228228
("zfh", Some(sym::riscv_target_feature)),
229229
("zfhmin", Some(sym::riscv_target_feature)),
230+
("zba", Some(sym::riscv_target_feature)),
231+
("zbb", Some(sym::riscv_target_feature)),
232+
("zbc", Some(sym::riscv_target_feature)),
233+
("zbs", Some(sym::riscv_target_feature)),
230234
("zbkb", Some(sym::riscv_target_feature)),
231235
("zbkc", Some(sym::riscv_target_feature)),
232236
("zbkx", Some(sym::riscv_target_feature)),

0 commit comments

Comments
 (0)