mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-16 05:56:56 +00:00
feat: more RISC-V features
These features include: - V for vector extension - Zfinx, Zdinx, Zhinx and Zhinxmin float in integer register extensions - Zfh, Zfhmin 16-bit float pointer extensions - Zbkb, Zkbc, Zbkc, Zk* cryptography extensions It matches name in LLVM feature and is_riscv_feature_detected!.
This commit is contained in:
parent
a2af9cf1cf
commit
f119a7b6ab
@ -223,6 +223,26 @@ const RISCV_ALLOWED_FEATURES: &[(&str, Option<Symbol>)] = &[
|
||||
("f", Some(sym::riscv_target_feature)),
|
||||
("d", Some(sym::riscv_target_feature)),
|
||||
("e", Some(sym::riscv_target_feature)),
|
||||
("v", Some(sym::riscv_target_feature)),
|
||||
("zfinx", Some(sym::riscv_target_feature)),
|
||||
("zdinx", Some(sym::riscv_target_feature)),
|
||||
("zhinx", Some(sym::riscv_target_feature)),
|
||||
("zhinxmin", Some(sym::riscv_target_feature)),
|
||||
("zfh", Some(sym::riscv_target_feature)),
|
||||
("zfhmin", Some(sym::riscv_target_feature)),
|
||||
("zbkb", Some(sym::riscv_target_feature)),
|
||||
("zbkc", Some(sym::riscv_target_feature)),
|
||||
("zbkx", Some(sym::riscv_target_feature)),
|
||||
("zknd", Some(sym::riscv_target_feature)),
|
||||
("zkne", Some(sym::riscv_target_feature)),
|
||||
("zknh", Some(sym::riscv_target_feature)),
|
||||
("zksed", Some(sym::riscv_target_feature)),
|
||||
("zksh", Some(sym::riscv_target_feature)),
|
||||
("zkr", Some(sym::riscv_target_feature)),
|
||||
("zkn", Some(sym::riscv_target_feature)),
|
||||
("zks", Some(sym::riscv_target_feature)),
|
||||
("zk", Some(sym::riscv_target_feature)),
|
||||
("zkt", Some(sym::riscv_target_feature)),
|
||||
];
|
||||
|
||||
const WASM_ALLOWED_FEATURES: &[(&str, Option<Symbol>)] = &[
|
||||
|
Loading…
Reference in New Issue
Block a user