Revert "loongarch: add frecipe and relax target feature"
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 24 Jun 2024 06:23:42 +0000 (08:23 +0200)
committerFabian Grünbichler <debian@fabian.gruenbichler.email>
Wed, 4 Sep 2024 18:13:19 +0000 (20:13 +0200)
This reverts commit e81df3f3225ce53921a87b9e490959c41b783b02.

Debian: this commit breaks a lot of tests on loong64 since our rustc build is
still based on LLVM-17. This revert should be dropped once we switch over to
LLVM 18.

Bug: https://github.com/rust-lang/rust/issues/114661

Gbp-Pq: Topic upstream
Gbp-Pq: Name Revert-loongarch-add-frecipe-and-relax-target-feature.patch

compiler/rustc_target/src/target_features.rs
tests/ui/abi/compatibility.rs

index d9812540e497d7937fc3a8fac3b6c7d18c9e411d..1b038a2c67a9c910e2e57f1f4c810982e02e0909 100644 (file)
@@ -376,12 +376,10 @@ const LOONGARCH_ALLOWED_FEATURES: &[(&str, Stability)] = &[
     // tidy-alphabetical-start
     ("d", Unstable(sym::loongarch_target_feature)),
     ("f", Unstable(sym::loongarch_target_feature)),
-    ("frecipe", Unstable(sym::loongarch_target_feature)),
     ("lasx", Unstable(sym::loongarch_target_feature)),
     ("lbt", Unstable(sym::loongarch_target_feature)),
     ("lsx", Unstable(sym::loongarch_target_feature)),
     ("lvz", Unstable(sym::loongarch_target_feature)),
-    ("relax", Unstable(sym::loongarch_target_feature)),
     ("ual", Unstable(sym::loongarch_target_feature)),
     // tidy-alphabetical-end
 ];
index c27a107a639f11354195cd450309f86ec9911281..2717cc7555479347a344ebc529f926e221d0df0b 100644 (file)
@@ -39,7 +39,7 @@
 //@ revisions: loongarch64
 //@[loongarch64] compile-flags: --target loongarch64-unknown-linux-gnu
 //@[loongarch64] needs-llvm-components: loongarch
-//@[loongarch64] min-llvm-version: 18
+//@[loongarch64] min-llvm-version: 17
 //@ revisions: wasm
 //@[wasm] compile-flags: --target wasm32-unknown-unknown
 //@[wasm] needs-llvm-components: webassembly