about summary refs log tree commit diff
path: root/library
diff options
context:
space:
mode:
authorhev <wangrui@loongson.cn>2024-11-01 18:00:00 +0800
committerGitHub <noreply@github.com>2024-11-01 10:00:00 +0000
commit53b3e71bbcab44510a0c3e0ff9e721a6592d677d (patch)
treeca6beda70eebb26bc167a1095ab51612dff175ec /library
parent94e6ed373a0597f4a9c6141c7a5e6d5fa0209daf (diff)
downloadrust-53b3e71bbcab44510a0c3e0ff9e721a6592d677d.tar.gz
rust-53b3e71bbcab44510a0c3e0ff9e721a6592d677d.zip
Disable `f16` for LoongArch64 (#722)
Disable `f161` for LoongArch64 due to incorrect code generation on LLVM 19,
which causes failures in `testcrate/tests/conv.rs`. This workaround will
remain in place until llvm/llvm-project#109093 is merged or we upgrade to
LLVM 20.
Diffstat (limited to 'library')
-rw-r--r--library/compiler-builtins/configure.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/compiler-builtins/configure.rs b/library/compiler-builtins/configure.rs
index e23c0e83935..68b4d68e61b 100644
--- a/library/compiler-builtins/configure.rs
+++ b/library/compiler-builtins/configure.rs
@@ -64,6 +64,8 @@ pub fn configure_f16_f128(target: &Target) {
         "arm64ec" => (false, false),
         // `f16` crashes <https://github.com/llvm/llvm-project/issues/50374>
         "s390x" => (false, true),
+        // FIXME(llvm): `f16` test failures fixed by <https://github.com/llvm/llvm-project/pull/107791>
+        "loongarch64" => (false, true),
         // `f128` crashes <https://github.com/llvm/llvm-project/issues/96432>
         "mips64" | "mips64r6" => (true, false),
         // `f128` crashes <https://github.com/llvm/llvm-project/issues/101545>