Skip to content

Commit e040474

Browse files
authored
[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
1 parent 10dcba7 commit e040474

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libc/config/linux/aarch64/entrypoints.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,10 @@ if(LIBC_TYPES_HAS_FLOAT16)
516516
libc.src.math.nearbyintf16
517517
libc.src.math.nextafterf16
518518
libc.src.math.nextdownf16
519-
libc.src.math.nexttowardf16
519+
# Temporarily disable nexttowardf16 on aarch64 because the conversion
520+
# between _Float16 and long double will crash clang-11. This is fixed in
521+
# clang-12 and after: https://godbolt.org/z/8ceT9454c
522+
# libc.src.math.nexttowardf16
520523
libc.src.math.nextupf16
521524
libc.src.math.rintf16
522525
libc.src.math.roundf16

0 commit comments

Comments
 (0)