[libc-commits] [libc] e040474 - [libc][math] Temporarily disable nexttowardf16 on aarch64 due to clang-11 bug. (#94569)

via libc-commits libc-commits at lists.llvm.org
Thu Jun 6 04:59:05 PDT 2024


Author: lntue
Date: 2024-06-06T07:59:02-04:00
New Revision: e040474f493d3392af3fbd4284bb1448a7eb4341

URL: https://github.com/llvm/llvm-project/commit/e040474f493d3392af3fbd4284bb1448a7eb4341
DIFF: https://github.com/llvm/llvm-project/commit/e040474f493d3392af3fbd4284bb1448a7eb4341.diff

LOG: [libc][math] Temporarily disable nexttowardf16 on aarch64 due to clang-11 bug. (#94569)

The conversion between _Float16 and long double will crash clang-11 on
aarch64. This is fixed in clang-12: https://godbolt.org/z/8ceT9454c

Added: 
    

Modified: 
    libc/config/linux/aarch64/entrypoints.txt

Removed: 
    


################################################################################
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


        


More information about the libc-commits mailing list