From 30641f002254c7211a4d62106c464f1263279ac4 Mon Sep 17 00:00:00 2001
From: Trevor Gross <tmgross@umich.edu>
Date: Wed, 21 Aug 2024 19:46:54 -0500
Subject: [PATCH] Enable `f16` tests on loongarch

Loongarch previously had a selection failure for `f16` math [1]. This
was fixed in [2], which Rust got with the update to LLVM 19 [3].

Enable loongarch in `std/build.rs` so we start running tests.

[1]: https://github.com/llvm/llvm-project/issues/93894
[2]: https://github.com/llvm/llvm-project/pull/94456
[3]: https://github.com/rust-lang/rust/pull/127513
---
 library/std/build.rs | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/library/std/build.rs b/library/std/build.rs
index 35a5977b6ebaf..af0b34ed1e61b 100644
--- a/library/std/build.rs
+++ b/library/std/build.rs
@@ -94,9 +94,6 @@ fn main() {
     let has_reliable_f16 = match (target_arch.as_str(), target_os.as_str()) {
         // We can always enable these in Miri as that is not affected by codegen bugs.
         _ if is_miri => true,
-        // Selection failure until recent LLVM <https://github.com/llvm/llvm-project/issues/93894>
-        // FIXME(llvm19): can probably be removed at the version bump
-        ("loongarch64", _) => false,
         // Selection failure <https://github.com/llvm/llvm-project/issues/50374>
         ("s390x", _) => false,
         // Unsupported <https://github.com/llvm/llvm-project/issues/94434>