Skip to content

Commit

Permalink
[test] Canonicalize PowerPC detection macros to __powerpc__
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskRay committed Nov 7, 2022
1 parent 0f91ec2 commit 34f687c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions clang/test/Sema/128bitfloat.cpp
Expand Up @@ -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");
Expand Down Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion clang/test/Sema/attr-mode.c
Expand Up @@ -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

Expand Down

0 comments on commit 34f687c

Please sign in to comment.