Auto merge of #116485 - coastalwhite:stabilize-riscv-target-features, r=Amanieu
Stabilize Ratified RISC-V Target Features
Stabilization PR for the ratified RISC-V target features. This stabilizes some of the target features tracked by #44839. This is also a part of #114544 and eventually needed for the RISC-V part of rust-lang/rfcs#3268.
There is a similar PR for the the stdarch crate which can be found at rust-lang/stdarch#1476.
This was briefly discussed on Zulip
(394793704
).
Specifically, this PR stabilizes the:
* Atomic Instructions (A) on v2.0
* Compressed Instructions (C) on v2.0
* ~Double-Precision Floating-Point (D) on v2.2~
* ~Embedded Base (E) (Given as `RV32E` / `RV64E`) on v2.0~
* ~Single-Precision Floating-Point (F) on v2.2~
* Integer Multiplication and Division (M) on v2.0
* ~Vector Operations (V) on v1.0~
* Bit Manipulations (B) on v1.0 listed as `zba`, `zbc`, `zbs`
* Scalar Cryptography (Zk) v1.0.1 listed as `zk`, `zkn`, `zknd`, `zkne`, `zknh`, `zkr`, `zks`, `zksed`, `zksh`, `zkt`, `zbkb`, `zbkc` `zkbx`
* ~Double-Precision Floating-Point in Integer Register (Zdinx) on v1.0~
* ~Half-Precision Floating-Point (Zfh) on v1.0~
* ~Minimal Half-Precision Floating-Point (Zfhmin) on v1.0~
* ~Single-Precision Floating-Point in Integer Register (Zfinx) on v1.0~
* ~Half-Precision Floating-Point in Integer Register (Zhinx) on v1.0~
* ~Minimal Half-Precision Floating-Point in Integer Register (Zhinxmin) on v1.0~
r? `@Amanieu`
This commit is contained in:
commit
91bbdd927a
1 changed files with 20 additions and 20 deletions
|
@ -244,38 +244,38 @@ const MIPS_ALLOWED_FEATURES: &[(&str, Option<Symbol>)] = &[
|
||||||
|
|
||||||
const RISCV_ALLOWED_FEATURES: &[(&str, Option<Symbol>)] = &[
|
const RISCV_ALLOWED_FEATURES: &[(&str, Option<Symbol>)] = &[
|
||||||
// tidy-alphabetical-start
|
// tidy-alphabetical-start
|
||||||
("a", Some(sym::riscv_target_feature)),
|
("a", None),
|
||||||
("c", Some(sym::riscv_target_feature)),
|
("c", None),
|
||||||
("d", Some(sym::riscv_target_feature)),
|
("d", Some(sym::riscv_target_feature)),
|
||||||
("e", Some(sym::riscv_target_feature)),
|
("e", Some(sym::riscv_target_feature)),
|
||||||
("f", Some(sym::riscv_target_feature)),
|
("f", Some(sym::riscv_target_feature)),
|
||||||
("m", Some(sym::riscv_target_feature)),
|
("m", None),
|
||||||
("relax", Some(sym::riscv_target_feature)),
|
("relax", Some(sym::riscv_target_feature)),
|
||||||
("unaligned-scalar-mem", Some(sym::riscv_target_feature)),
|
("unaligned-scalar-mem", Some(sym::riscv_target_feature)),
|
||||||
("v", Some(sym::riscv_target_feature)),
|
("v", Some(sym::riscv_target_feature)),
|
||||||
("zba", Some(sym::riscv_target_feature)),
|
("zba", None),
|
||||||
("zbb", Some(sym::riscv_target_feature)),
|
("zbb", None),
|
||||||
("zbc", Some(sym::riscv_target_feature)),
|
("zbc", None),
|
||||||
("zbkb", Some(sym::riscv_target_feature)),
|
("zbkb", None),
|
||||||
("zbkc", Some(sym::riscv_target_feature)),
|
("zbkc", None),
|
||||||
("zbkx", Some(sym::riscv_target_feature)),
|
("zbkx", None),
|
||||||
("zbs", Some(sym::riscv_target_feature)),
|
("zbs", None),
|
||||||
("zdinx", Some(sym::riscv_target_feature)),
|
("zdinx", Some(sym::riscv_target_feature)),
|
||||||
("zfh", Some(sym::riscv_target_feature)),
|
("zfh", Some(sym::riscv_target_feature)),
|
||||||
("zfhmin", Some(sym::riscv_target_feature)),
|
("zfhmin", Some(sym::riscv_target_feature)),
|
||||||
("zfinx", Some(sym::riscv_target_feature)),
|
("zfinx", Some(sym::riscv_target_feature)),
|
||||||
("zhinx", Some(sym::riscv_target_feature)),
|
("zhinx", Some(sym::riscv_target_feature)),
|
||||||
("zhinxmin", Some(sym::riscv_target_feature)),
|
("zhinxmin", Some(sym::riscv_target_feature)),
|
||||||
("zk", Some(sym::riscv_target_feature)),
|
("zk", None),
|
||||||
("zkn", Some(sym::riscv_target_feature)),
|
("zkn", None),
|
||||||
("zknd", Some(sym::riscv_target_feature)),
|
("zknd", None),
|
||||||
("zkne", Some(sym::riscv_target_feature)),
|
("zkne", None),
|
||||||
("zknh", Some(sym::riscv_target_feature)),
|
("zknh", None),
|
||||||
("zkr", Some(sym::riscv_target_feature)),
|
("zkr", None),
|
||||||
("zks", Some(sym::riscv_target_feature)),
|
("zks", None),
|
||||||
("zksed", Some(sym::riscv_target_feature)),
|
("zksed", None),
|
||||||
("zksh", Some(sym::riscv_target_feature)),
|
("zksh", None),
|
||||||
("zkt", Some(sym::riscv_target_feature)),
|
("zkt", None),
|
||||||
// tidy-alphabetical-end
|
// tidy-alphabetical-end
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue