Skip to content

Commit 7d2efbb

Browse files
committed
Partially stabilize LoongArch target features
This PR stabilizes the following target features: - div32 - lam-bh - lamcas - ld-seq-sa - scq
1 parent 7e28c74 commit 7d2efbb

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

compiler/rustc_target/src/target_features.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -816,18 +816,18 @@ static LOONGARCH_FEATURES: &[(&str, Stability, ImpliedFeatures)] = &[
816816
// tidy-alphabetical-start
817817
("32s", Unstable(sym::loongarch_target_feature), &[]),
818818
("d", Stable, &["f"]),
819-
("div32", Unstable(sym::loongarch_target_feature), &[]),
819+
("div32", Stable, &[]),
820820
("f", Stable, &[]),
821821
("frecipe", Stable, &[]),
822-
("lam-bh", Unstable(sym::loongarch_target_feature), &[]),
823-
("lamcas", Unstable(sym::loongarch_target_feature), &[]),
822+
("lam-bh", Stable, &[]),
823+
("lamcas", Stable, &[]),
824824
("lasx", Stable, &["lsx"]),
825825
("lbt", Stable, &[]),
826-
("ld-seq-sa", Unstable(sym::loongarch_target_feature), &[]),
826+
("ld-seq-sa", Stable, &[]),
827827
("lsx", Stable, &["d"]),
828828
("lvz", Stable, &[]),
829829
("relax", Unstable(sym::loongarch_target_feature), &[]),
830-
("scq", Unstable(sym::loongarch_target_feature), &[]),
830+
("scq", Stable, &[]),
831831
("ual", Unstable(sym::loongarch_target_feature), &[]),
832832
// tidy-alphabetical-end
833833
];

library/std_detect/src/detect/arch/loongarch.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@ features! {
3535
/// D
3636
@FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.89.0")] frecipe: "frecipe";
3737
/// Frecipe
38-
@FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] div32: "div32";
38+
@FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.96.0")] div32: "div32";
3939
/// Div32
4040
@FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.89.0")] lsx: "lsx";
4141
/// LSX
4242
@FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.89.0")] lasx: "lasx";
4343
/// LASX
44-
@FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] lam_bh: "lam-bh";
44+
@FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.96.0")] lam_bh: "lam-bh";
4545
/// LAM-BH
46-
@FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] lamcas: "lamcas";
46+
@FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.96.0")] lamcas: "lamcas";
4747
/// LAM-CAS
48-
@FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] ld_seq_sa: "ld-seq-sa";
48+
@FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.96.0")] ld_seq_sa: "ld-seq-sa";
4949
/// LD-SEQ-SA
50-
@FEATURE: #[unstable(feature = "stdarch_loongarch_feature_detection", issue = "117425")] scq: "scq";
50+
@FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.96.0")] scq: "scq";
5151
/// SCQ
5252
@FEATURE: #[stable(feature = "stdarch_loongarch_feature", since = "1.89.0")] lbt: "lbt";
5353
/// LBT

0 commit comments

Comments
 (0)