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>
Thu, 27 Jun 2024 12:30:53 +0000 (14:30 +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 1b507bb2a155ef1209677d80f4aed8124c92a0c5..800907bc54aac2bd1f64db68a15bb2da3be9d78f 100644 (file)
@@ -378,12 +378,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 373d1cce1d73dcd121c614b79ca87fe12763e2f9..f77766b89bc9b793c301c8201131749e7303d626 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