Skip to content

Commit 91bbdd9

Browse files
committed
Auto merge of rust-lang#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 rust-lang#44839. This is also a part of rust-lang#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 (https://rust-lang.zulipchat.com/#narrow/stream/250483-t-compiler.2Frisc-v/topic/Stabilization.20of.20RISC-V.20Target.20Features/near/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`
2 parents 1dfb6b1 + 6988d22 commit 91bbdd9

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

compiler/rustc_codegen_ssa/src/target_features.rs

+20-20
Original file line numberDiff line numberDiff line change
@@ -244,38 +244,38 @@ const MIPS_ALLOWED_FEATURES: &[(&str, Option<Symbol>)] = &[
244244

245245
const RISCV_ALLOWED_FEATURES: &[(&str, Option<Symbol>)] = &[
246246
// tidy-alphabetical-start
247-
("a", Some(sym::riscv_target_feature)),
248-
("c", Some(sym::riscv_target_feature)),
247+
("a", None),
248+
("c", None),
249249
("d", Some(sym::riscv_target_feature)),
250250
("e", Some(sym::riscv_target_feature)),
251251
("f", Some(sym::riscv_target_feature)),
252-
("m", Some(sym::riscv_target_feature)),
252+
("m", None),
253253
("relax", Some(sym::riscv_target_feature)),
254254
("unaligned-scalar-mem", Some(sym::riscv_target_feature)),
255255
("v", Some(sym::riscv_target_feature)),
256-
("zba", Some(sym::riscv_target_feature)),
257-
("zbb", Some(sym::riscv_target_feature)),
258-
("zbc", Some(sym::riscv_target_feature)),
259-
("zbkb", Some(sym::riscv_target_feature)),
260-
("zbkc", Some(sym::riscv_target_feature)),
261-
("zbkx", Some(sym::riscv_target_feature)),
262-
("zbs", Some(sym::riscv_target_feature)),
256+
("zba", None),
257+
("zbb", None),
258+
("zbc", None),
259+
("zbkb", None),
260+
("zbkc", None),
261+
("zbkx", None),
262+
("zbs", None),
263263
("zdinx", Some(sym::riscv_target_feature)),
264264
("zfh", Some(sym::riscv_target_feature)),
265265
("zfhmin", Some(sym::riscv_target_feature)),
266266
("zfinx", Some(sym::riscv_target_feature)),
267267
("zhinx", Some(sym::riscv_target_feature)),
268268
("zhinxmin", Some(sym::riscv_target_feature)),
269-
("zk", Some(sym::riscv_target_feature)),
270-
("zkn", Some(sym::riscv_target_feature)),
271-
("zknd", Some(sym::riscv_target_feature)),
272-
("zkne", Some(sym::riscv_target_feature)),
273-
("zknh", Some(sym::riscv_target_feature)),
274-
("zkr", Some(sym::riscv_target_feature)),
275-
("zks", Some(sym::riscv_target_feature)),
276-
("zksed", Some(sym::riscv_target_feature)),
277-
("zksh", Some(sym::riscv_target_feature)),
278-
("zkt", Some(sym::riscv_target_feature)),
269+
("zk", None),
270+
("zkn", None),
271+
("zknd", None),
272+
("zkne", None),
273+
("zknh", None),
274+
("zkr", None),
275+
("zks", None),
276+
("zksed", None),
277+
("zksh", None),
278+
("zkt", None),
279279
// tidy-alphabetical-end
280280
];
281281

0 commit comments

Comments
 (0)