From 53b3e71bbcab44510a0c3e0ff9e721a6592d677d Mon Sep 17 00:00:00 2001 From: hev Date: Fri, 1 Nov 2024 18:00:00 +0800 Subject: [PATCH] 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. --- library/compiler-builtins/configure.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/compiler-builtins/configure.rs b/library/compiler-builtins/configure.rs index e23c0e839359..68b4d68e61bb 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 "s390x" => (false, true), + // FIXME(llvm): `f16` test failures fixed by + "loongarch64" => (false, true), // `f128` crashes "mips64" | "mips64r6" => (true, false), // `f128` crashes