Skip to content

Commit 2fe49ea

Browse files
committed
[clang][PowerPC] Remove remaining Darwin support
POWER Darwin support in the backend has been removed for some time: https://discourse.llvm.org/t/rfc-remove-darwin-support-from-power-backends but Clang still has the TargetInfo and other remnants lying around. This patch does some cleanup and removes those and other related frontend support still remaining. We adjust any tests using the triple to either remove the test if unneeded or switch to another Power triple. Reviewed By: MaskRay, nemanjai Differential Revision: https://reviews.llvm.org/D146459
1 parent a6f5585 commit 2fe49ea

File tree

12 files changed

+6
-256
lines changed

12 files changed

+6
-256
lines changed

clang/lib/Basic/Targets.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,6 @@ TargetInfo *AllocateTarget(const llvm::Triple &Triple,
347347
return new Le64TargetInfo(Triple, Opts);
348348

349349
case llvm::Triple::ppc:
350-
if (Triple.isOSDarwin())
351-
return new DarwinPPC32TargetInfo(Triple, Opts);
352350
switch (os) {
353351
case llvm::Triple::Linux:
354352
return new LinuxTargetInfo<PPC32TargetInfo>(Triple, Opts);
@@ -377,8 +375,6 @@ TargetInfo *AllocateTarget(const llvm::Triple &Triple,
377375
}
378376

379377
case llvm::Triple::ppc64:
380-
if (Triple.isOSDarwin())
381-
return new DarwinPPC64TargetInfo(Triple, Opts);
382378
switch (os) {
383379
case llvm::Triple::Linux:
384380
return new LinuxTargetInfo<PPC64TargetInfo>(Triple, Opts);

clang/lib/Basic/Targets/PPC.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,8 @@ void PPCTargetInfo::getTargetDefines(const LangOptions &Opts,
336336
Builder.defineMacro("__LONGDOUBLE64");
337337
}
338338

339-
// Define this for elfv2 (64-bit only) or 64-bit darwin.
340-
if (ABI == "elfv2" ||
341-
(getTriple().getOS() == llvm::Triple::Darwin && PointerWidth == 64))
339+
// Define this for elfv2 (64-bit only).
340+
if (ABI == "elfv2")
342341
Builder.defineMacro("__STRUCT_PARM_ALIGN__", "16");
343342

344343
if (ArchDefs & ArchDefineName)

clang/lib/Basic/Targets/PPC.h

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ class LLVM_LIBRARY_VISIBILITY PPC32TargetInfo : public PPCTargetInfo {
400400
}
401401

402402
BuiltinVaListKind getBuiltinVaListKind() const override {
403-
// This is the ELF definition, and is overridden by the Darwin sub-target
403+
// This is the ELF definition
404404
return TargetInfo::PowerABIBuiltinVaList;
405405
}
406406
};
@@ -481,33 +481,6 @@ class LLVM_LIBRARY_VISIBILITY PPC64TargetInfo : public PPCTargetInfo {
481481
}
482482
};
483483

484-
class LLVM_LIBRARY_VISIBILITY DarwinPPC32TargetInfo
485-
: public DarwinTargetInfo<PPC32TargetInfo> {
486-
public:
487-
DarwinPPC32TargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts)
488-
: DarwinTargetInfo<PPC32TargetInfo>(Triple, Opts) {
489-
HasAlignMac68kSupport = true;
490-
BoolWidth = BoolAlign = 32; // XXX support -mone-byte-bool?
491-
PtrDiffType = SignedInt; // for http://llvm.org/bugs/show_bug.cgi?id=15726
492-
LongLongAlign = 32;
493-
resetDataLayout("E-m:o-p:32:32-f64:32:64-n32", "_");
494-
}
495-
496-
BuiltinVaListKind getBuiltinVaListKind() const override {
497-
return TargetInfo::CharPtrBuiltinVaList;
498-
}
499-
};
500-
501-
class LLVM_LIBRARY_VISIBILITY DarwinPPC64TargetInfo
502-
: public DarwinTargetInfo<PPC64TargetInfo> {
503-
public:
504-
DarwinPPC64TargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts)
505-
: DarwinTargetInfo<PPC64TargetInfo>(Triple, Opts) {
506-
HasAlignMac68kSupport = true;
507-
resetDataLayout("E-m:o-i64:64-n32:64", "_");
508-
}
509-
};
510-
511484
class LLVM_LIBRARY_VISIBILITY AIXPPC32TargetInfo :
512485
public AIXTargetInfo<PPC32TargetInfo> {
513486
public:

clang/lib/CodeGen/TargetInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ unsigned TargetCodeGenInfo::getSizeOfUnwindException() const {
467467
// Verified for:
468468
// x86-64 FreeBSD, Linux, Darwin
469469
// x86-32 FreeBSD, Linux, Darwin
470-
// PowerPC Linux, Darwin
470+
// PowerPC Linux
471471
// ARM Darwin (*not* EABI)
472472
// AArch64 Linux
473473
return 32;

clang/lib/Driver/ToolChains/Darwin.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2475,17 +2475,6 @@ void DarwinClang::AddClangCXXStdlibIncludeArgs(
24752475
switch (arch) {
24762476
default: break;
24772477

2478-
case llvm::Triple::ppc:
2479-
case llvm::Triple::ppc64:
2480-
IsBaseFound = AddGnuCPlusPlusIncludePaths(DriverArgs, CC1Args, UsrIncludeCxx,
2481-
"4.2.1",
2482-
"powerpc-apple-darwin10",
2483-
arch == llvm::Triple::ppc64 ? "ppc64" : "");
2484-
IsBaseFound |= AddGnuCPlusPlusIncludePaths(DriverArgs, CC1Args, UsrIncludeCxx,
2485-
"4.0.0", "powerpc-apple-darwin10",
2486-
arch == llvm::Triple::ppc64 ? "ppc64" : "");
2487-
break;
2488-
24892478
case llvm::Triple::x86:
24902479
case llvm::Triple::x86_64:
24912480
IsBaseFound = AddGnuCPlusPlusIncludePaths(DriverArgs, CC1Args, UsrIncludeCxx,

clang/lib/Sema/SemaAttr.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,6 @@ void Sema::ActOnPragmaOptionsAlign(PragmaOptionsAlignKind Kind,
223223
switch (Kind) {
224224
// For most of the platforms we support, native and natural are the same.
225225
// With XL, native is the same as power, natural means something else.
226-
//
227-
// FIXME: This is not true on Darwin/PPC.
228226
case POAK_Native:
229227
case POAK_Power:
230228
Action = Sema::PSK_Push_Set;

clang/test/Driver/default-toolchain.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
// RUN: %clang -target i386-unknown-unknown -m64 -v 2> %t
22
// RUN: grep 'Target: x86_64-unknown-unknown' %t
33

4-
// RUN: %clang -target i386-apple-darwin9 -arch ppc -m64 -v 2> %t
5-
// RUN: grep 'Target: powerpc64-apple-darwin9' %t
6-
7-
// RUN: %clang -target i386-apple-darwin9 -arch ppc64 -m32 -v 2> %t
8-
// RUN: grep 'Target: powerpc-apple-darwin9' %t
9-
104
// RUN: %clang -target x86_64-apple-macos11 -arch arm64 -v 2>&1 | FileCheck --check-prefix=ARM64 %s
115
// ARM64: Target: arm64-apple-macos11

clang/test/Parser/altivec.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// RUN: %clang_cc1 -triple=powerpc-apple-darwin8 -target-feature +altivec -fsyntax-only -verify=expected,novsx %s
21
// RUN: %clang_cc1 -triple=powerpc64-unknown-linux-gnu -target-feature +altivec -target-feature +vsx -fsyntax-only -verify=expected,nonaix %s
32
// RUN: %clang_cc1 -triple=powerpc64le-unknown-linux-gnu -target-feature +altivec -target-feature -vsx -fsyntax-only -verify=expected,novsx %s
43
// RUN: %clang_cc1 -triple=powerpc-ibm-aix -target-feature +altivec -fsyntax-only -verify=expected,aix %s

clang/test/Parser/cxx-altivec.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// RUN: %clang_cc1 -triple=powerpc-apple-darwin8 -target-feature +altivec -fsyntax-only -verify=expected,novsx -std=c++11 %s
21
// RUN: %clang_cc1 -triple=powerpc64-unknown-linux-gnu -target-feature +altivec -target-feature +vsx -fsyntax-only -verify=expected,nonaix -std=c++11 %s
32
// RUN: %clang_cc1 -triple=powerpc64le-unknown-linux-gnu -target-feature +altivec -fsyntax-only -verify=expected,novsx -std=c++11 %s
43
// RUN: %clang_cc1 -triple=powerpc64-unknown-linux-gnu -target-feature +vsx -target-cpu pwr7 -fsyntax-only -verify=expected,nonaix -std=c++11 %s

clang/test/Preprocessor/init-ppc.c

Lines changed: 0 additions & 197 deletions
Original file line numberDiff line numberDiff line change
@@ -975,202 +975,5 @@
975975
// PPC8548:#define __NO_LWSYNC__ 1
976976
// PPC8548:#define __SPE__ 1
977977

978-
// RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc-apple-darwin8 < /dev/null | FileCheck -match-full-lines -check-prefix PPC-DARWIN %s
979-
//
980-
// PPC-DARWIN:#define _ARCH_PPC 1
981-
// PPC-DARWIN:#define _BIG_ENDIAN 1
982-
// PPC-DARWIN:#define __BIGGEST_ALIGNMENT__ 16
983-
// PPC-DARWIN:#define __BIG_ENDIAN__ 1
984-
// PPC-DARWIN:#define __BYTE_ORDER__ __ORDER_BIG_ENDIAN__
985-
// PPC-DARWIN:#define __CHAR16_TYPE__ unsigned short
986-
// PPC-DARWIN:#define __CHAR32_TYPE__ unsigned int
987-
// PPC-DARWIN:#define __CHAR_BIT__ 8
988-
// PPC-DARWIN:#define __DBL_DENORM_MIN__ 4.9406564584124654e-324
989-
// PPC-DARWIN:#define __DBL_DIG__ 15
990-
// PPC-DARWIN:#define __DBL_EPSILON__ 2.2204460492503131e-16
991-
// PPC-DARWIN:#define __DBL_HAS_DENORM__ 1
992-
// PPC-DARWIN:#define __DBL_HAS_INFINITY__ 1
993-
// PPC-DARWIN:#define __DBL_HAS_QUIET_NAN__ 1
994-
// PPC-DARWIN:#define __DBL_MANT_DIG__ 53
995-
// PPC-DARWIN:#define __DBL_MAX_10_EXP__ 308
996-
// PPC-DARWIN:#define __DBL_MAX_EXP__ 1024
997-
// PPC-DARWIN:#define __DBL_MAX__ 1.7976931348623157e+308
998-
// PPC-DARWIN:#define __DBL_MIN_10_EXP__ (-307)
999-
// PPC-DARWIN:#define __DBL_MIN_EXP__ (-1021)
1000-
// PPC-DARWIN:#define __DBL_MIN__ 2.2250738585072014e-308
1001-
// PPC-DARWIN:#define __DECIMAL_DIG__ __LDBL_DECIMAL_DIG__
1002-
// PPC-DARWIN:#define __FLT_DENORM_MIN__ 1.40129846e-45F
1003-
// PPC-DARWIN:#define __FLT_DIG__ 6
1004-
// PPC-DARWIN:#define __FLT_EPSILON__ 1.19209290e-7F
1005-
// PPC-DARWIN:#define __FLT_HAS_DENORM__ 1
1006-
// PPC-DARWIN:#define __FLT_HAS_INFINITY__ 1
1007-
// PPC-DARWIN:#define __FLT_HAS_QUIET_NAN__ 1
1008-
// PPC-DARWIN:#define __FLT_MANT_DIG__ 24
1009-
// PPC-DARWIN:#define __FLT_MAX_10_EXP__ 38
1010-
// PPC-DARWIN:#define __FLT_MAX_EXP__ 128
1011-
// PPC-DARWIN:#define __FLT_MAX__ 3.40282347e+38F
1012-
// PPC-DARWIN:#define __FLT_MIN_10_EXP__ (-37)
1013-
// PPC-DARWIN:#define __FLT_MIN_EXP__ (-125)
1014-
// PPC-DARWIN:#define __FLT_MIN__ 1.17549435e-38F
1015-
// PPC-DARWIN:#define __FLT_RADIX__ 2
1016-
// PPC-DARWIN:#define __HAVE_BSWAP__ 1
1017-
// PPC-DARWIN:#define __INT16_C_SUFFIX__
1018-
// PPC-DARWIN:#define __INT16_FMTd__ "hd"
1019-
// PPC-DARWIN:#define __INT16_FMTi__ "hi"
1020-
// PPC-DARWIN:#define __INT16_MAX__ 32767
1021-
// PPC-DARWIN:#define __INT16_TYPE__ short
1022-
// PPC-DARWIN:#define __INT32_C_SUFFIX__
1023-
// PPC-DARWIN:#define __INT32_FMTd__ "d"
1024-
// PPC-DARWIN:#define __INT32_FMTi__ "i"
1025-
// PPC-DARWIN:#define __INT32_MAX__ 2147483647
1026-
// PPC-DARWIN:#define __INT32_TYPE__ int
1027-
// PPC-DARWIN:#define __INT64_C_SUFFIX__ LL
1028-
// PPC-DARWIN:#define __INT64_FMTd__ "lld"
1029-
// PPC-DARWIN:#define __INT64_FMTi__ "lli"
1030-
// PPC-DARWIN:#define __INT64_MAX__ 9223372036854775807LL
1031-
// PPC-DARWIN:#define __INT64_TYPE__ long long int
1032-
// PPC-DARWIN:#define __INT8_C_SUFFIX__
1033-
// PPC-DARWIN:#define __INT8_FMTd__ "hhd"
1034-
// PPC-DARWIN:#define __INT8_FMTi__ "hhi"
1035-
// PPC-DARWIN:#define __INT8_MAX__ 127
1036-
// PPC-DARWIN:#define __INT8_TYPE__ signed char
1037-
// PPC-DARWIN:#define __INTMAX_C_SUFFIX__ LL
1038-
// PPC-DARWIN:#define __INTMAX_FMTd__ "lld"
1039-
// PPC-DARWIN:#define __INTMAX_FMTi__ "lli"
1040-
// PPC-DARWIN:#define __INTMAX_MAX__ 9223372036854775807LL
1041-
// PPC-DARWIN:#define __INTMAX_TYPE__ long long int
1042-
// PPC-DARWIN:#define __INTMAX_WIDTH__ 64
1043-
// PPC-DARWIN:#define __INTPTR_FMTd__ "ld"
1044-
// PPC-DARWIN:#define __INTPTR_FMTi__ "li"
1045-
// PPC-DARWIN:#define __INTPTR_MAX__ 2147483647L
1046-
// PPC-DARWIN:#define __INTPTR_TYPE__ long int
1047-
// PPC-DARWIN:#define __INTPTR_WIDTH__ 32
1048-
// PPC-DARWIN:#define __INT_FAST16_FMTd__ "hd"
1049-
// PPC-DARWIN:#define __INT_FAST16_FMTi__ "hi"
1050-
// PPC-DARWIN:#define __INT_FAST16_MAX__ 32767
1051-
// PPC-DARWIN:#define __INT_FAST16_TYPE__ short
1052-
// PPC-DARWIN:#define __INT_FAST32_FMTd__ "d"
1053-
// PPC-DARWIN:#define __INT_FAST32_FMTi__ "i"
1054-
// PPC-DARWIN:#define __INT_FAST32_MAX__ 2147483647
1055-
// PPC-DARWIN:#define __INT_FAST32_TYPE__ int
1056-
// PPC-DARWIN:#define __INT_FAST64_FMTd__ "lld"
1057-
// PPC-DARWIN:#define __INT_FAST64_FMTi__ "lli"
1058-
// PPC-DARWIN:#define __INT_FAST64_MAX__ 9223372036854775807LL
1059-
// PPC-DARWIN:#define __INT_FAST64_TYPE__ long long int
1060-
// PPC-DARWIN:#define __INT_FAST8_FMTd__ "hhd"
1061-
// PPC-DARWIN:#define __INT_FAST8_FMTi__ "hhi"
1062-
// PPC-DARWIN:#define __INT_FAST8_MAX__ 127
1063-
// PPC-DARWIN:#define __INT_FAST8_TYPE__ signed char
1064-
// PPC-DARWIN:#define __INT_LEAST16_FMTd__ "hd"
1065-
// PPC-DARWIN:#define __INT_LEAST16_FMTi__ "hi"
1066-
// PPC-DARWIN:#define __INT_LEAST16_MAX__ 32767
1067-
// PPC-DARWIN:#define __INT_LEAST16_TYPE__ short
1068-
// PPC-DARWIN:#define __INT_LEAST32_FMTd__ "d"
1069-
// PPC-DARWIN:#define __INT_LEAST32_FMTi__ "i"
1070-
// PPC-DARWIN:#define __INT_LEAST32_MAX__ 2147483647
1071-
// PPC-DARWIN:#define __INT_LEAST32_TYPE__ int
1072-
// PPC-DARWIN:#define __INT_LEAST64_FMTd__ "lld"
1073-
// PPC-DARWIN:#define __INT_LEAST64_FMTi__ "lli"
1074-
// PPC-DARWIN:#define __INT_LEAST64_MAX__ 9223372036854775807LL
1075-
// PPC-DARWIN:#define __INT_LEAST64_TYPE__ long long int
1076-
// PPC-DARWIN:#define __INT_LEAST8_FMTd__ "hhd"
1077-
// PPC-DARWIN:#define __INT_LEAST8_FMTi__ "hhi"
1078-
// PPC-DARWIN:#define __INT_LEAST8_MAX__ 127
1079-
// PPC-DARWIN:#define __INT_LEAST8_TYPE__ signed char
1080-
// PPC-DARWIN:#define __INT_MAX__ 2147483647
1081-
// PPC-DARWIN:#define __LDBL_DENORM_MIN__ 4.94065645841246544176568792868221e-324L
1082-
// PPC-DARWIN:#define __LDBL_DIG__ 31
1083-
// PPC-DARWIN:#define __LDBL_EPSILON__ 4.94065645841246544176568792868221e-324L
1084-
// PPC-DARWIN:#define __LDBL_HAS_DENORM__ 1
1085-
// PPC-DARWIN:#define __LDBL_HAS_INFINITY__ 1
1086-
// PPC-DARWIN:#define __LDBL_HAS_QUIET_NAN__ 1
1087-
// PPC-DARWIN:#define __LDBL_MANT_DIG__ 106
1088-
// PPC-DARWIN:#define __LDBL_MAX_10_EXP__ 308
1089-
// PPC-DARWIN:#define __LDBL_MAX_EXP__ 1024
1090-
// PPC-DARWIN:#define __LDBL_MAX__ 1.79769313486231580793728971405301e+308L
1091-
// PPC-DARWIN:#define __LDBL_MIN_10_EXP__ (-291)
1092-
// PPC-DARWIN:#define __LDBL_MIN_EXP__ (-968)
1093-
// PPC-DARWIN:#define __LDBL_MIN__ 2.00416836000897277799610805135016e-292L
1094-
// PPC-DARWIN:#define __LONGDOUBLE128 1
1095-
// PPC-DARWIN:#define __LONG_DOUBLE_128__ 1
1096-
// PPC-DARWIN:#define __LONG_LONG_MAX__ 9223372036854775807LL
1097-
// PPC-DARWIN:#define __LONG_MAX__ 2147483647L
1098-
// PPC-DARWIN:#define __MACH__ 1
1099-
// PPC-DARWIN:#define __NATURAL_ALIGNMENT__ 1
1100-
// PPC-DARWIN:#define __ORDER_BIG_ENDIAN__ 4321
1101-
// PPC-DARWIN:#define __ORDER_LITTLE_ENDIAN__ 1234
1102-
// PPC-DARWIN:#define __ORDER_PDP_ENDIAN__ 3412
1103-
// PPC-DARWIN:#define __POINTER_WIDTH__ 32
1104-
// PPC-DARWIN:#define __POWERPC__ 1
1105-
// PPC-DARWIN:#define __PPC__ 1
1106-
// PPC-DARWIN:#define __PTRDIFF_TYPE__ int
1107-
// PPC-DARWIN:#define __PTRDIFF_WIDTH__ 32
1108-
// PPC-DARWIN:#define __REGISTER_PREFIX__
1109-
// PPC-DARWIN:#define __SCHAR_MAX__ 127
1110-
// PPC-DARWIN:#define __SHRT_MAX__ 32767
1111-
// PPC-DARWIN:#define __SIG_ATOMIC_MAX__ 2147483647
1112-
// PPC-DARWIN:#define __SIG_ATOMIC_WIDTH__ 32
1113-
// PPC-DARWIN:#define __SIZEOF_DOUBLE__ 8
1114-
// PPC-DARWIN:#define __SIZEOF_FLOAT__ 4
1115-
// PPC-DARWIN:#define __SIZEOF_INT__ 4
1116-
// PPC-DARWIN:#define __SIZEOF_LONG_DOUBLE__ 16
1117-
// PPC-DARWIN:#define __SIZEOF_LONG_LONG__ 8
1118-
// PPC-DARWIN:#define __SIZEOF_LONG__ 4
1119-
// PPC-DARWIN:#define __SIZEOF_POINTER__ 4
1120-
// PPC-DARWIN:#define __SIZEOF_PTRDIFF_T__ 4
1121-
// PPC-DARWIN:#define __SIZEOF_SHORT__ 2
1122-
// PPC-DARWIN:#define __SIZEOF_SIZE_T__ 4
1123-
// PPC-DARWIN:#define __SIZEOF_WCHAR_T__ 4
1124-
// PPC-DARWIN:#define __SIZEOF_WINT_T__ 4
1125-
// PPC-DARWIN:#define __SIZE_MAX__ 4294967295UL
1126-
// PPC-DARWIN:#define __SIZE_TYPE__ long unsigned int
1127-
// PPC-DARWIN:#define __SIZE_WIDTH__ 32
1128-
// PPC-DARWIN:#define __STDC_HOSTED__ 0
1129-
// PPC-DARWIN:#define __STDC_VERSION__ 201710L
1130-
// PPC-DARWIN:#define __STDC__ 1
1131-
// PPC-DARWIN:#define __UINT16_C_SUFFIX__
1132-
// PPC-DARWIN:#define __UINT16_MAX__ 65535
1133-
// PPC-DARWIN:#define __UINT16_TYPE__ unsigned short
1134-
// PPC-DARWIN:#define __UINT32_C_SUFFIX__ U
1135-
// PPC-DARWIN:#define __UINT32_MAX__ 4294967295U
1136-
// PPC-DARWIN:#define __UINT32_TYPE__ unsigned int
1137-
// PPC-DARWIN:#define __UINT64_C_SUFFIX__ ULL
1138-
// PPC-DARWIN:#define __UINT64_MAX__ 18446744073709551615ULL
1139-
// PPC-DARWIN:#define __UINT64_TYPE__ long long unsigned int
1140-
// PPC-DARWIN:#define __UINT8_C_SUFFIX__
1141-
// PPC-DARWIN:#define __UINT8_MAX__ 255
1142-
// PPC-DARWIN:#define __UINT8_TYPE__ unsigned char
1143-
// PPC-DARWIN:#define __UINTMAX_C_SUFFIX__ ULL
1144-
// PPC-DARWIN:#define __UINTMAX_MAX__ 18446744073709551615ULL
1145-
// PPC-DARWIN:#define __UINTMAX_TYPE__ long long unsigned int
1146-
// PPC-DARWIN:#define __UINTMAX_WIDTH__ 64
1147-
// PPC-DARWIN:#define __UINTPTR_MAX__ 4294967295UL
1148-
// PPC-DARWIN:#define __UINTPTR_TYPE__ long unsigned int
1149-
// PPC-DARWIN:#define __UINTPTR_WIDTH__ 32
1150-
// PPC-DARWIN:#define __UINT_FAST16_MAX__ 65535
1151-
// PPC-DARWIN:#define __UINT_FAST16_TYPE__ unsigned short
1152-
// PPC-DARWIN:#define __UINT_FAST32_MAX__ 4294967295U
1153-
// PPC-DARWIN:#define __UINT_FAST32_TYPE__ unsigned int
1154-
// PPC-DARWIN:#define __UINT_FAST64_MAX__ 18446744073709551615ULL
1155-
// PPC-DARWIN:#define __UINT_FAST64_TYPE__ long long unsigned int
1156-
// PPC-DARWIN:#define __UINT_FAST8_MAX__ 255
1157-
// PPC-DARWIN:#define __UINT_FAST8_TYPE__ unsigned char
1158-
// PPC-DARWIN:#define __UINT_LEAST16_MAX__ 65535
1159-
// PPC-DARWIN:#define __UINT_LEAST16_TYPE__ unsigned short
1160-
// PPC-DARWIN:#define __UINT_LEAST32_MAX__ 4294967295U
1161-
// PPC-DARWIN:#define __UINT_LEAST32_TYPE__ unsigned int
1162-
// PPC-DARWIN:#define __UINT_LEAST64_MAX__ 18446744073709551615ULL
1163-
// PPC-DARWIN:#define __UINT_LEAST64_TYPE__ long long unsigned int
1164-
// PPC-DARWIN:#define __UINT_LEAST8_MAX__ 255
1165-
// PPC-DARWIN:#define __UINT_LEAST8_TYPE__ unsigned char
1166-
// PPC-DARWIN:#define __USER_LABEL_PREFIX__ _
1167-
// PPC-DARWIN:#define __WCHAR_MAX__ 2147483647
1168-
// PPC-DARWIN:#define __WCHAR_TYPE__ int
1169-
// PPC-DARWIN:#define __WCHAR_WIDTH__ 32
1170-
// PPC-DARWIN:#define __WINT_TYPE__ int
1171-
// PPC-DARWIN:#define __WINT_WIDTH__ 32
1172-
// PPC-DARWIN:#define __powerpc__ 1
1173-
// PPC-DARWIN:#define __ppc__ 1
1174-
1175978
// RUN: %clang_cc1 -E -dM -triple=powerpc-unknown-openbsd -x c++ < /dev/null | FileCheck -match-full-lines -check-prefix PPC-OPENBSD-CXX %s
1176979
// PPC-OPENBSD-CXX: #define __STDCPP_DEFAULT_NEW_ALIGNMENT__ 16UL

clang/test/Sema/altivec-init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 %s -triple=powerpc-apple-darwin8 -target-feature +altivec -verify -pedantic -fsyntax-only
1+
// RUN: %clang_cc1 %s -triple=powerpc-ibm-aix -target-feature +altivec -verify -pedantic -fsyntax-only
22

33
typedef int v4 __attribute((vector_size(16)));
44
typedef short v8 __attribute((vector_size(16)));

clang/test/SemaCXX/cxx-altivec.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -triple=powerpc-apple-darwin8 -target-feature +altivec -fsyntax-only -verify %s
1+
// RUN: %clang_cc1 -triple=powerpc-ibm-aix -target-feature +altivec -fsyntax-only -verify %s
22

33
struct Vector {
44
__vector float xyzw;

0 commit comments

Comments
 (0)