[llvm] Constant Fold logf128 calls (PR #90611)

Matthew Devereau via llvm-commits llvm-commits at lists.llvm.org
Wed May 1 06:51:44 PDT 2024


https://github.com/MDevereau updated https://github.com/llvm/llvm-project/pull/90611

>From e4eba5cf6b78e2c9bdd90b0fb3e50e90d69b1b7a Mon Sep 17 00:00:00 2001
From: Matt Devereau <matthew.devereau at arm.com>
Date: Tue, 30 Apr 2024 13:01:15 +0000
Subject: [PATCH] Update header file

---
 llvm/include/llvm/Support/float128.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/llvm/include/llvm/Support/float128.h b/llvm/include/llvm/Support/float128.h
index f7a442fce8dd32..3a9eb9d8f6a58b 100644
--- a/llvm/include/llvm/Support/float128.h
+++ b/llvm/include/llvm/Support/float128.h
@@ -11,9 +11,9 @@
 
 namespace llvm {
 
-#if defined(__clang__) && defined(__FLOAT128__)
+#if defined(__clang__) && defined(__FLOAT128__) && defined(__SIZEOF_INT128__) && !defined(__LONG_DOUBLE_IBM128__)
 typedef __float128 float128;
-#elif defined(__FLOAT128__) && (defined(__GNUC__) || defined(__GNUG__))
+#elif defined(__FLOAT128__) && defined(__SIZEOF_INT128__) && !defined(__LONG_DOUBLE_IBM128__) && (defined(__GNUC__) || defined(__GNUG__))
 typedef _Float128 float128;
 #endif
 



More information about the llvm-commits mailing list