Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6da1daf

Browse files
committedMar 5, 2025·
Enable f16 for LoongArch
1 parent b7b9310 commit 6da1daf

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed
 

‎configure.rs

-2
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,8 @@ pub fn configure_f16_f128(target: &Target) {
7676
// Selection failure <https://github.com/llvm/llvm-project/issues/50374>
7777
"s390x" => false,
7878
// Infinite recursion <https://github.com/llvm/llvm-project/issues/97981>
79-
// FIXME(llvm20): loongarch fixed by <https://github.com/llvm/llvm-project/pull/107791>
8079
"csky" => false,
8180
"hexagon" => false,
82-
"loongarch64" => false,
8381
"powerpc" | "powerpc64" => false,
8482
"sparc" | "sparc64" => false,
8583
"wasm32" | "wasm64" => false,

‎testcrate/build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ fn main() {
9292
}
9393

9494
// These platforms do not have `__gnu_f2h_ieee` or `__gnu_h2f_ieee`.
95-
if false {
95+
if target.arch == "loongarch64" {
9696
features.insert(Feature::NoSysF16GnuConvert);
9797
}
9898

0 commit comments

Comments
 (0)
Please sign in to comment.