[llvm] Enable logf128 constant folding for hosts with 128bit long double (PR #96287)
Eli Friedman via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 29 15:15:22 PDT 2024
================
@@ -11,7 +11,15 @@
namespace llvm {
-#if defined(__clang__) && defined(__FLOAT128__) && \
+#if !defined(__LONG_DOUBLE_IBM128__) && (__SIZEOF_LONG_DOUBLE__ == 16) && \
+ (__SIZEOF_INT128__ == 16) && (__LDBL_MANT_DIG__ == 113)
+#define HAS_IEE754_FLOAT128
+#if (defined(__GNUC__) && __GNUC__ > 12)
----------------
efriedma-quic wrote:
Instead of explicitly checking the gcc version, can we `typedef decltype(logf128(0.)) float128;` or something like that?
https://github.com/llvm/llvm-project/pull/96287
More information about the llvm-commits
mailing list