[clang] 34f687c - [test] Canonicalize PowerPC detection macros to __powerpc__
Fangrui Song via cfe-commits
cfe-commits at lists.llvm.org
Sun Nov 6 17:39:01 PST 2022
Author: Fangrui Song
Date: 2022-11-06T17:38:57-08:00
New Revision: 34f687cbe468e8044e8d94c977a2e47cbd3f3799
URL: https://github.com/llvm/llvm-project/commit/34f687cbe468e8044e8d94c977a2e47cbd3f3799
DIFF: https://github.com/llvm/llvm-project/commit/34f687cbe468e8044e8d94c977a2e47cbd3f3799.diff
LOG: [test] Canonicalize PowerPC detection macros to __powerpc__
Added:
Modified:
clang/test/Sema/128bitfloat.cpp
clang/test/Sema/attr-mode.c
Removed:
################################################################################
diff --git a/clang/test/Sema/128bitfloat.cpp b/clang/test/Sema/128bitfloat.cpp
index 6b9d63e6af4cf..b98b42496e8db 100644
--- a/clang/test/Sema/128bitfloat.cpp
+++ b/clang/test/Sema/128bitfloat.cpp
@@ -7,7 +7,7 @@
#if defined(__FLOAT128__) || defined(__SIZEOF_FLOAT128__)
-#if defined(__ppc__)
+#if defined(__powerpc__)
template <typename> struct __is_float128 { static constexpr bool value = false; };
template <> struct __is_float128<__float128> { static constexpr bool value = true; };
static_assert(__is_float128<__ieee128>::value, "__ieee128 aliases to __float128");
@@ -45,7 +45,7 @@ int g(int x, __float128 *y) { // expected-error {{__float128 is not supported o
#endif
#endif
-#ifdef __ppc__
+#ifdef __powerpc__
__ibm128 i;
template <> struct __is_floating_point_helper<__ibm128> {};
int w(int x, __ibm128 *y) {
diff --git a/clang/test/Sema/attr-mode.c b/clang/test/Sema/attr-mode.c
index 71d82a20f66d0..5e99c4583155a 100644
--- a/clang/test/Sema/attr-mode.c
+++ b/clang/test/Sema/attr-mode.c
@@ -46,7 +46,7 @@ typedef _Complex double c32 __attribute((mode(SC)));
int c32_test[sizeof(c32) == 8 ? 1 : -1];
typedef _Complex float c64 __attribute((mode(DC)));
-#if !defined(__ppc__) && !defined(__mips__) // Note, 'XC' mode is illegal for PPC64 and MIPS machines.
+#if !defined(__powerpc__) && !defined(__mips__) // Note, 'XC' mode is illegal for PPC64 and MIPS machines.
typedef _Complex float c80 __attribute((mode(XC)));
#endif
More information about the cfe-commits
mailing list