Skip to content

Commit 34f687c

Browse files
committed
[test] Canonicalize PowerPC detection macros to __powerpc__
1 parent 0f91ec2 commit 34f687c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clang/test/Sema/128bitfloat.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#if defined(__FLOAT128__) || defined(__SIZEOF_FLOAT128__)
99

10-
#if defined(__ppc__)
10+
#if defined(__powerpc__)
1111
template <typename> struct __is_float128 { static constexpr bool value = false; };
1212
template <> struct __is_float128<__float128> { static constexpr bool value = true; };
1313
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
4545
#endif
4646
#endif
4747

48-
#ifdef __ppc__
48+
#ifdef __powerpc__
4949
__ibm128 i;
5050
template <> struct __is_floating_point_helper<__ibm128> {};
5151
int w(int x, __ibm128 *y) {

clang/test/Sema/attr-mode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ typedef _Complex double c32 __attribute((mode(SC)));
4646
int c32_test[sizeof(c32) == 8 ? 1 : -1];
4747
typedef _Complex float c64 __attribute((mode(DC)));
4848

49-
#if !defined(__ppc__) && !defined(__mips__) // Note, 'XC' mode is illegal for PPC64 and MIPS machines.
49+
#if !defined(__powerpc__) && !defined(__mips__) // Note, 'XC' mode is illegal for PPC64 and MIPS machines.
5050
typedef _Complex float c80 __attribute((mode(XC)));
5151
#endif
5252

0 commit comments

Comments
 (0)