[libc-commits] [libc] [libc][math] Temporarily disable nexttowardf16 on aarch64 due to clang-11 bug. (PR #94569)
via libc-commits
libc-commits at lists.llvm.org
Wed Jun 5 21:48:39 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: None (lntue)
<details>
<summary>Changes</summary>
The conversion between _Float16 and long double will crash clang-11 on aarch64. This is fixed in clang-12: https://godbolt.org/z/8ceT9454c
---
Full diff: https://github.com/llvm/llvm-project/pull/94569.diff
1 Files Affected:
- (modified) libc/config/linux/aarch64/entrypoints.txt (+4-1)
``````````diff
diff --git a/libc/config/linux/aarch64/entrypoints.txt b/libc/config/linux/aarch64/entrypoints.txt
index a8cb468b3cba9..13a4445aca76b 100644
--- a/libc/config/linux/aarch64/entrypoints.txt
+++ b/libc/config/linux/aarch64/entrypoints.txt
@@ -516,7 +516,10 @@ if(LIBC_TYPES_HAS_FLOAT16)
libc.src.math.nearbyintf16
libc.src.math.nextafterf16
libc.src.math.nextdownf16
- libc.src.math.nexttowardf16
+ # Temporarily disable nexttowardf16 on aarch64 because the conversion
+ # between _Float16 and long double will crash clang-11. This is fixed in
+ # clang-12 and after: https://godbolt.org/z/8ceT9454c
+ # libc.src.math.nexttowardf16
libc.src.math.nextupf16
libc.src.math.rintf16
libc.src.math.roundf16
``````````
</details>
https://github.com/llvm/llvm-project/pull/94569
More information about the libc-commits
mailing list