Skip to content

Conversation

@vhscampos
Copy link
Member

This patch adds acos to the entrypoints of baremetal Arm and AArch64.

Tests have been run with Arm Toolchain for Embedded, a downstream toolchain, in conjunction with qemu, across several configurations of FPUs and architecture versions. All tests run are passing.

This patch adds `acos` to the entrypoints of baremetal Arm and AArch64.

Tests have been run with Arm Toolchain for Embedded, a downstream
toolchain, in conjunction with qemu, across several configurations of
FPUs and architecture versions. All tests run are passing.
@vhscampos vhscampos marked this pull request as ready for review November 6, 2025 12:23
@llvmbot llvmbot added the libc label Nov 6, 2025
@llvmbot
Copy link
Member

llvmbot commented Nov 6, 2025

@llvm/pr-subscribers-libc

Author: Victor Campos (vhscampos)

Changes

This patch adds acos to the entrypoints of baremetal Arm and AArch64.

Tests have been run with Arm Toolchain for Embedded, a downstream toolchain, in conjunction with qemu, across several configurations of FPUs and architecture versions. All tests run are passing.


Full diff: https://github.com/llvm/llvm-project/pull/166749.diff

2 Files Affected:

  • (modified) libc/config/baremetal/aarch64/entrypoints.txt (+1)
  • (modified) libc/config/baremetal/arm/entrypoints.txt (+1)
diff --git a/libc/config/baremetal/aarch64/entrypoints.txt b/libc/config/baremetal/aarch64/entrypoints.txt
index 935c95af0d4af..b6650d79f624b 100644
--- a/libc/config/baremetal/aarch64/entrypoints.txt
+++ b/libc/config/baremetal/aarch64/entrypoints.txt
@@ -321,6 +321,7 @@ set(TARGET_LIBM_ENTRYPOINTS
     libc.src.fenv.feupdateenv
 
     # math.h entrypoints
+    libc.src.math.acos
     libc.src.math.acosf
     libc.src.math.acoshf
     libc.src.math.asinf
diff --git a/libc/config/baremetal/arm/entrypoints.txt b/libc/config/baremetal/arm/entrypoints.txt
index 82e257c1d2b0d..eedd9f7418f1f 100644
--- a/libc/config/baremetal/arm/entrypoints.txt
+++ b/libc/config/baremetal/arm/entrypoints.txt
@@ -321,6 +321,7 @@ set(TARGET_LIBM_ENTRYPOINTS
     libc.src.fenv.feupdateenv
 
     # math.h entrypoints
+    libc.src.math.acos
     libc.src.math.acosf
     libc.src.math.acoshf
     libc.src.math.asinf

@vhscampos vhscampos merged commit 3a8f697 into llvm:main Nov 7, 2025
24 checks passed
@vhscampos vhscampos deleted the libc-math-enable-acos-arm-aarch64 branch November 7, 2025 09:23
vinay-deshmukh pushed a commit to vinay-deshmukh/llvm-project that referenced this pull request Nov 8, 2025
)

This patch adds `acos` to the entrypoints of baremetal Arm and AArch64.

Tests have been run with Arm Toolchain for Embedded, a downstream
toolchain, in conjunction with qemu, across several configurations of
FPUs and architecture versions. All tests run are passing.
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.

4 participants