[libc-commits] [libc] [libc][math][c23] Temporarily disable asinpif16 C23 math function (PR #150754)
via libc-commits
libc-commits at lists.llvm.org
Sat Jul 26 04:22:29 PDT 2025
https://github.com/overmighty created https://github.com/llvm/llvm-project/pull/150754
The MPFR test uses `mpfr_asinpi` which requires MPFR 4.2.0 or later, but
the Buildbots are running an older version of MPFR.
See https://lab.llvm.org/buildbot/#/builders/104/builds/27743 for
example.
>From dd56da3fe794af48ad071f6ddf6c09dbddccd147 Mon Sep 17 00:00:00 2001
From: OverMighty <its.overmighty at gmail.com>
Date: Sat, 26 Jul 2025 14:20:13 +0300
Subject: [PATCH] [libc][math][c23] Temporarily disable asinpif16 C23 math
function
The MPFR test uses `mpfr_asinpi` which requires MPFR 4.2.0 or later, but
the Buildbots are running an older version of MPFR.
See https://lab.llvm.org/buildbot/#/builders/104/builds/27743 for
example.
---
libc/config/linux/aarch64/entrypoints.txt | 3 ++-
libc/config/linux/x86_64/entrypoints.txt | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/libc/config/linux/aarch64/entrypoints.txt b/libc/config/linux/aarch64/entrypoints.txt
index fe7e055fafbe2..04e2a7a9295fa 100644
--- a/libc/config/linux/aarch64/entrypoints.txt
+++ b/libc/config/linux/aarch64/entrypoints.txt
@@ -660,7 +660,8 @@ if(LIBC_TYPES_HAS_FLOAT16)
list(APPEND TARGET_LIBM_ENTRYPOINTS
# math.h C23 _Float16 entrypoints
# libc.src.math.acoshf16
- libc.src.math.asinpif16
+ # Temporarily disabled due to mpfr_asinpi requiring MPFR >= 4.2.0.
+ # libc.src.math.asinpif16
libc.src.math.canonicalizef16
libc.src.math.ceilf16
libc.src.math.copysignf16
diff --git a/libc/config/linux/x86_64/entrypoints.txt b/libc/config/linux/x86_64/entrypoints.txt
index 0f5ec1ae444b3..7fc23759baba9 100644
--- a/libc/config/linux/x86_64/entrypoints.txt
+++ b/libc/config/linux/x86_64/entrypoints.txt
@@ -703,7 +703,8 @@ if(LIBC_TYPES_HAS_FLOAT16)
libc.src.math.acospif16
libc.src.math.asinf16
libc.src.math.asinhf16
- libc.src.math.asinpif16
+ # Temporarily disabled due to mpfr_asinpi requiring MPFR >= 4.2.0.
+ # libc.src.math.asinpif16
libc.src.math.atanf16
libc.src.math.atanhf16
libc.src.math.canonicalizef16
More information about the libc-commits
mailing list