[clang] 7d21086 - Revert "[clang] Predefined macros for float128 support (#67196)"
Pranav Kant via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 4 11:20:09 PDT 2023
Author: Pranav Kant
Date: 2023-10-04T18:19:24Z
New Revision: 7d21086d0ca4a680e96e0f4cd3e2597ebe027a48
URL: https://github.com/llvm/llvm-project/commit/7d21086d0ca4a680e96e0f4cd3e2597ebe027a48
DIFF: https://github.com/llvm/llvm-project/commit/7d21086d0ca4a680e96e0f4cd3e2597ebe027a48.diff
LOG: Revert "[clang] Predefined macros for float128 support (#67196)"
This reverts commit 457f582ffe23e951380bc345c4c96ec053c09681.
Added:
Modified:
clang/lib/Frontend/InitPreprocessor.cpp
clang/test/Preprocessor/init-x86.c
clang/test/Preprocessor/init.c
Removed:
################################################################################
diff --git a/clang/lib/Frontend/InitPreprocessor.cpp b/clang/lib/Frontend/InitPreprocessor.cpp
index 9e1e02e04ca7a00..846e5fce6de7b2c 100644
--- a/clang/lib/Frontend/InitPreprocessor.cpp
+++ b/clang/lib/Frontend/InitPreprocessor.cpp
@@ -1081,8 +1081,6 @@ static void InitializePredefinedMacros(const TargetInfo &TI,
DefineFloatMacros(Builder, "FLT", &TI.getFloatFormat(), "F");
DefineFloatMacros(Builder, "DBL", &TI.getDoubleFormat(), "");
DefineFloatMacros(Builder, "LDBL", &TI.getLongDoubleFormat(), "L");
- if (TI.hasFloat128Type())
- DefineFloatMacros(Builder, "FLT128", &TI.getFloat128Format(), "Q");
// Define a __POINTER_WIDTH__ macro for stdint.h.
Builder.defineMacro("__POINTER_WIDTH__",
diff --git a/clang/test/Preprocessor/init-x86.c b/clang/test/Preprocessor/init-x86.c
index 1ee770df0c4a303..58be9b716571747 100644
--- a/clang/test/Preprocessor/init-x86.c
+++ b/clang/test/Preprocessor/init-x86.c
@@ -1023,21 +1023,6 @@
// X86_64-LINUX:#define __DBL_MIN_EXP__ (-1021)
// X86_64-LINUX:#define __DBL_MIN__ 2.2250738585072014e-308
// X86_64-LINUX:#define __DECIMAL_DIG__ __LDBL_DECIMAL_DIG__
-// X86_64-LINUX:#define __FLOAT128__ 1
-// X86_64-LINUX:#define __FLT128_DECIMAL_DIG__ 36
-// X86_64-LINUX:#define __FLT128_DENORM_MIN__ 6.47517511943802511092443895822764655e-4966Q
-// X86_64-LINUX:#define __FLT128_DIG__ 33
-// X86_64-LINUX:#define __FLT128_EPSILON__ 1.92592994438723585305597794258492732e-34Q
-// X86_64-LINUX:#define __FLT128_HAS_DENORM__ 1
-// X86_64-LINUX:#define __FLT128_HAS_INFINITY__ 1
-// X86_64-LINUX:#define __FLT128_HAS_QUIET_NAN__ 1
-// X86_64-LINUX:#define __FLT128_MANT_DIG__ 113
-// X86_64-LINUX:#define __FLT128_MAX_10_EXP__ 4932
-// X86_64-LINUX:#define __FLT128_MAX_EXP__ 16384
-// X86_64-LINUX:#define __FLT128_MAX__ 1.18973149535723176508575932662800702e+4932Q
-// X86_64-LINUX:#define __FLT128_MIN_10_EXP__ (-4931)
-// X86_64-LINUX:#define __FLT128_MIN_EXP__ (-16381)
-// X86_64-LINUX:#define __FLT128_MIN__ 3.36210314311209350626267781732175260e-4932Q
// X86_64-LINUX:#define __FLT_DENORM_MIN__ 1.40129846e-45F
// X86_64-LINUX:#define __FLT_DIG__ 6
// X86_64-LINUX:#define __FLT_EPSILON__ 1.19209290e-7F
diff --git a/clang/test/Preprocessor/init.c b/clang/test/Preprocessor/init.c
index 395c4cebfa5be76..59c5122afe1e4c3 100644
--- a/clang/test/Preprocessor/init.c
+++ b/clang/test/Preprocessor/init.c
@@ -1576,20 +1576,6 @@
// EMSCRIPTEN-NEXT:#define __EMSCRIPTEN__ 1
// WEBASSEMBLY-NEXT:#define __FINITE_MATH_ONLY__ 0
// WEBASSEMBLY-NEXT:#define __FLOAT128__ 1
-// WEBASSEMBLY-NEXT:#define __FLT128_DECIMAL_DIG__ 36
-// WEBASSEMBLY-NEXT:#define __FLT128_DENORM_MIN__ 6.47517511943802511092443895822764655e-4966Q
-// WEBASSEMBLY-NEXT:#define __FLT128_DIG__ 33
-// WEBASSEMBLY-NEXT:#define __FLT128_EPSILON__ 1.92592994438723585305597794258492732e-34Q
-// WEBASSEMBLY-NEXT:#define __FLT128_HAS_DENORM__ 1
-// WEBASSEMBLY-NEXT:#define __FLT128_HAS_INFINITY__ 1
-// WEBASSEMBLY-NEXT:#define __FLT128_HAS_QUIET_NAN__ 1
-// WEBASSEMBLY-NEXT:#define __FLT128_MANT_DIG__ 113
-// WEBASSEMBLY-NEXT:#define __FLT128_MAX_10_EXP__ 4932
-// WEBASSEMBLY-NEXT:#define __FLT128_MAX_EXP__ 16384
-// WEBASSEMBLY-NEXT:#define __FLT128_MAX__ 1.18973149535723176508575932662800702e+4932Q
-// WEBASSEMBLY-NEXT:#define __FLT128_MIN_10_EXP__ (-4931)
-// WEBASSEMBLY-NEXT:#define __FLT128_MIN_EXP__ (-16381)
-// WEBASSEMBLY-NEXT:#define __FLT128_MIN__ 3.36210314311209350626267781732175260e-4932Q
// WEBASSEMBLY-NOT:#define __FLT16_DECIMAL_DIG__
// WEBASSEMBLY-NOT:#define __FLT16_DENORM_MIN__
// WEBASSEMBLY-NOT:#define __FLT16_DIG__
More information about the cfe-commits
mailing list