[libc-commits] [libc] 86c57b9 - [libc][arm] Use __ARM_FP to detect floating point support for FEnvImpl. (#72177)

via libc-commits libc-commits at lists.llvm.org
Mon Nov 13 16:37:01 PST 2023


Author: lntue
Date: 2023-11-13T19:36:57-05:00
New Revision: 86c57b97958560a4d8e30ba959df26d5fed6ec6a

URL: https://github.com/llvm/llvm-project/commit/86c57b97958560a4d8e30ba959df26d5fed6ec6a
DIFF: https://github.com/llvm/llvm-project/commit/86c57b97958560a4d8e30ba959df26d5fed6ec6a.diff

LOG: [libc][arm] Use __ARM_FP to detect floating point support for FEnvImpl. (#72177)

https://github.com/llvm/llvm-project/issues/72157

Added: 
    

Modified: 
    libc/src/__support/FPUtil/FEnvImpl.h

Removed: 
    


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


        


More information about the libc-commits mailing list