Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

lntue
Copy link
Contributor

@lntue lntue commented Jun 6, 2024

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

…g-11 bug.

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

lntue commented Jun 6, 2024

@overmighty

@llvmbot
Copy link
Collaborator

llvmbot commented Jun 6, 2024

@llvm/pr-subscribers-libc

Author: None (lntue)

Changes

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants