[libc-commits] [libc] [libc][arm] Use __ARM_FP to detect floating point support for FEnvImpl. (PR #72177)
via libc-commits
libc-commits at lists.llvm.org
Mon Nov 13 16:34:11 PST 2023
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: None (lntue)
<details>
<summary>Changes</summary>
https://github.com/llvm/llvm-project/issues/72157
---
Full diff: https://github.com/llvm/llvm-project/pull/72177.diff
1 Files Affected:
- (modified) libc/src/__support/FPUtil/FEnvImpl.h (+1-2)
``````````diff
diff --git a/libc/src/__support/FPUtil/FEnvImpl.h b/libc/src/__support/FPUtil/FEnvImpl.h
index 619f6a0a91c4c7e..6810659733de2c3 100644
--- a/libc/src/__support/FPUtil/FEnvImpl.h
+++ b/libc/src/__support/FPUtil/FEnvImpl.h
@@ -29,8 +29,7 @@
// the apple condition here should be removed.
#elif defined(LIBC_TARGET_ARCH_IS_X86) && !defined(__APPLE__)
#include "x86_64/FEnvImpl.h"
-#elif defined(LIBC_TARGET_ARCH_IS_ARM) && \
- LIBC_HAS_BUILTIN(__builtin_arm_get_fpscr)
+#elif defined(LIBC_TARGET_ARCH_IS_ARM) && defined(__ARM_FP)
#include "arm/FEnvImpl.h"
#elif defined(LIBC_TARGET_ARCH_IS_ANY_RISCV)
#include "riscv/FEnvImpl.h"
``````````
</details>
https://github.com/llvm/llvm-project/pull/72177
More information about the libc-commits
mailing list