Skip to content

Commit 5cf417a

Browse files
committed
Disable f16 on AArch64 without the neon feature
There is an LLVM regression that breaks some `f16`-related code when `fp-armv8` is disabled [1]. Since Rust ties that feature to `neon`, disable `f16` if `neon` is not available. [1]: llvm/llvm-project#129394
1 parent 3c7672c commit 5cf417a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

configure.rs

+2
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ pub fn configure_f16_f128(target: &Target) {
7171
let f16_enabled = match target.arch.as_str() {
7272
// Unsupported <https://github.com/llvm/llvm-project/issues/94434>
7373
"arm64ec" => false,
74+
// Crash in LLVM20 <https://github.com/llvm/llvm-project/issues/129394>
75+
"aarch64" if !target.features.iter().any(|f| f == "neon") => false,
7476
// Selection failure <https://github.com/llvm/llvm-project/issues/50374>
7577
"s390x" => false,
7678
// Infinite recursion <https://github.com/llvm/llvm-project/issues/97981>

0 commit comments

Comments
 (0)