From: Bill Schmidt Date: Fri, 1 Feb 2013 20:23:10 +0000 (+0000) Subject: Add some missing PPC cpus X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2821e180094459cbdef37e7d7c12bb406d5b82ba;p=clang Add some missing PPC cpus git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174215 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index c225206208..6f8dfe9b65 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -661,11 +661,19 @@ public: ArchDefine603 = 1 << 4, ArchDefine604 = 1 << 5, ArchDefinePwr4 = 1 << 6, - ArchDefinePwr6 = 1 << 7, - ArchDefineA2 = 1 << 8, - ArchDefineA2q = 1 << 9 + ArchDefinePwr5 = 1 << 7, + ArchDefinePwr5x = 1 << 8, + ArchDefinePwr6 = 1 << 9, + ArchDefinePwr6x = 1 << 10, + ArchDefinePwr7 = 1 << 11, + ArchDefineA2 = 1 << 12, + ArchDefineA2q = 1 << 13 } ArchDefineTypes; + // Note: GCC recognizes the following additional cpus: + // 401, 403, 405, 405fp, 440fp, 464, 464fp, 476, 476fp, 505, 740, 801, + // 821, 823, 8540, 8548, e300c2, e300c3, e500mc64, e6500, 860, cell, + // titan, rs64. virtual bool setCPU(const std::string &Name) { bool CPUKnown = llvm::StringSwitch(Name) .Case("generic", true) @@ -679,6 +687,7 @@ public: .Case("604", true) .Case("604e", true) .Case("620", true) + .Case("630", true) .Case("g3", true) .Case("7400", true) .Case("g4", true) @@ -691,9 +700,23 @@ public: .Case("a2q", true) .Case("e500mc", true) .Case("e5500", true) + .Case("power3", true) + .Case("pwr3", true) + .Case("power4", true) + .Case("pwr4", true) + .Case("power5", true) + .Case("pwr5", true) + .Case("power5x", true) + .Case("pwr5x", true) + .Case("power6", true) .Case("pwr6", true) + .Case("power6x", true) + .Case("pwr6x", true) + .Case("power7", true) .Case("pwr7", true) + .Case("powerpc", true) .Case("ppc", true) + .Case("powerpc64", true) .Case("ppc64", true) .Default(false); @@ -889,16 +912,42 @@ void PPCTargetInfo::getTargetDefines(const LangOptions &Opts, .Case("604", ArchDefineName | ArchDefinePpcgr) .Case("604e", ArchDefineName | ArchDefine604 | ArchDefinePpcgr) .Case("620", ArchDefineName | ArchDefinePpcgr) + .Case("630", ArchDefineName | ArchDefinePpcgr) .Case("7400", ArchDefineName | ArchDefinePpcgr) .Case("7450", ArchDefineName | ArchDefinePpcgr) .Case("750", ArchDefineName | ArchDefinePpcgr) .Case("970", ArchDefineName | ArchDefinePwr4 | ArchDefinePpcgr | ArchDefinePpcsq) - .Case("pwr6", ArchDefinePwr6 | ArchDefinePpcgr | ArchDefinePpcsq) - .Case("pwr7", ArchDefineName | ArchDefinePwr6 | ArchDefinePpcgr - | ArchDefinePpcsq) .Case("a2", ArchDefineA2) .Case("a2q", ArchDefineName | ArchDefineA2 | ArchDefineA2q) + .Case("pwr3", ArchDefinePpcgr) + .Case("pwr4", ArchDefineName | ArchDefinePpcgr | ArchDefinePpcsq) + .Case("pwr5", ArchDefineName | ArchDefinePwr4 | ArchDefinePpcgr + | ArchDefinePpcsq) + .Case("pwr5x", ArchDefineName | ArchDefinePwr5 | ArchDefinePwr4 + | ArchDefinePpcgr | ArchDefinePpcsq) + .Case("pwr6", ArchDefineName | ArchDefinePwr5x | ArchDefinePwr5 + | ArchDefinePwr4 | ArchDefinePpcgr | ArchDefinePpcsq) + .Case("pwr6x", ArchDefineName | ArchDefinePwr6 | ArchDefinePwr5x + | ArchDefinePwr5 | ArchDefinePwr4 | ArchDefinePpcgr + | ArchDefinePpcsq) + .Case("pwr7", ArchDefineName | ArchDefinePwr6x | ArchDefinePwr6 + | ArchDefinePwr5x | ArchDefinePwr5 | ArchDefinePwr4 + | ArchDefinePwr6 | ArchDefinePpcgr | ArchDefinePpcsq) + .Case("power3", ArchDefinePpcgr) + .Case("power4", ArchDefinePwr4 | ArchDefinePpcgr | ArchDefinePpcsq) + .Case("power5", ArchDefinePwr5 | ArchDefinePwr4 | ArchDefinePpcgr + | ArchDefinePpcsq) + .Case("power5x", ArchDefinePwr5x | ArchDefinePwr5 | ArchDefinePwr4 + | ArchDefinePpcgr | ArchDefinePpcsq) + .Case("power6", ArchDefinePwr6 | ArchDefinePwr5x | ArchDefinePwr5 + | ArchDefinePwr4 | ArchDefinePpcgr | ArchDefinePpcsq) + .Case("power6x", ArchDefinePwr6x | ArchDefinePwr6 | ArchDefinePwr5x + | ArchDefinePwr5 | ArchDefinePwr4 | ArchDefinePpcgr + | ArchDefinePpcsq) + .Case("power7", ArchDefinePwr7 | ArchDefinePwr6x | ArchDefinePwr6 + | ArchDefinePwr5x | ArchDefinePwr5 | ArchDefinePwr4 + | ArchDefinePwr6 | ArchDefinePpcgr | ArchDefinePpcsq) .Default(ArchDefineNone); if (defs & ArchDefineName) @@ -913,12 +962,18 @@ void PPCTargetInfo::getTargetDefines(const LangOptions &Opts, Builder.defineMacro("_ARCH_603"); if (defs & ArchDefine604) Builder.defineMacro("_ARCH_604"); - if (defs & (ArchDefinePwr4 | ArchDefinePwr6)) + if (defs & ArchDefinePwr4) Builder.defineMacro("_ARCH_PWR4"); - if (defs & ArchDefinePwr6) { + if (defs & ArchDefinePwr5) Builder.defineMacro("_ARCH_PWR5"); + if (defs & ArchDefinePwr5x) + Builder.defineMacro("_ARCH_PWR5X"); + if (defs & ArchDefinePwr6) Builder.defineMacro("_ARCH_PWR6"); - } + if (defs & ArchDefinePwr6x) + Builder.defineMacro("_ARCH_PWR6X"); + if (defs & ArchDefinePwr7) + Builder.defineMacro("_ARCH_PWR7"); if (defs & ArchDefineA2) Builder.defineMacro("_ARCH_A2"); if (defs & ArchDefineA2q) { @@ -932,6 +987,27 @@ void PPCTargetInfo::getTargetDefines(const LangOptions &Opts, Builder.defineMacro("__bgq__"); Builder.defineMacro("__TOS_BGQ__"); } + + // FIXME: The following are not yet generated here by Clang, but are + // generated by GCC: + // + // _SOFT_FLOAT_ + // __RECIP_PRECISION__ + // __APPLE_ALTIVEC__ + // __VSX__ + // __RECIP__ + // __RECIPF__ + // __RSQRTE__ + // __RSQRTEF__ + // _SOFT_DOUBLE_ + // __NO_LWSYNC__ + // __HAVE_BSWAP__ + // __LONGDOUBLE128 + // __CMODEL_MEDIUM__ + // __CMODEL_LARGE__ + // _CALL_SYSV + // _CALL_DARWIN + // __NO_FPRS__ } void PPCTargetInfo::getDefaultFeatures(llvm::StringMap &Features) const { diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index c5392164e9..dbd25dfbea 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -1044,6 +1044,7 @@ static std::string getPPCTargetCPU(const ArgList &Args) { .Case("604", "604") .Case("604e", "604e") .Case("620", "620") + .Case("630", "pwr3") .Case("G3", "g3") .Case("7400", "7400") .Case("G4", "g4") @@ -1056,8 +1057,20 @@ static std::string getPPCTargetCPU(const ArgList &Args) { .Case("a2q", "a2q") .Case("e500mc", "e500mc") .Case("e5500", "e5500") + .Case("power3", "pwr3") + .Case("power4", "pwr4") + .Case("power5", "pwr5") + .Case("power5x", "pwr5x") .Case("power6", "pwr6") + .Case("power6x", "pwr6x") .Case("power7", "pwr7") + .Case("pwr3", "pwr3") + .Case("pwr4", "pwr4") + .Case("pwr5", "pwr5") + .Case("pwr5x", "pwr5x") + .Case("pwr6", "pwr6") + .Case("pwr6x", "pwr6x") + .Case("pwr7", "pwr7") .Case("powerpc", "ppc") .Case("powerpc64", "ppc64") .Default(""); diff --git a/test/Driver/clang-translation.c b/test/Driver/clang-translation.c index 7010385252..3b2b7e81f9 100644 --- a/test/Driver/clang-translation.c +++ b/test/Driver/clang-translation.c @@ -72,6 +72,102 @@ // PPCA2Q: "-cc1" // PPCA2Q: "-target-cpu" "a2q" +// RUN: %clang -target powerpc64-unknown-linux-gnu \ +// RUN: -### -S %s -mcpu=630 2>&1 | FileCheck -check-prefix=PPC630 %s +// PPC630: clang +// PPC630: "-cc1" +// PPC630: "-target-cpu" "pwr3" + +// RUN: %clang -target powerpc64-unknown-linux-gnu \ +// RUN: -### -S %s -mcpu=power3 2>&1 | FileCheck -check-prefix=PPCPOWER3 %s +// PPCPOWER3: clang +// PPCPOWER3: "-cc1" +// PPCPOWER3: "-target-cpu" "pwr3" + +// RUN: %clang -target powerpc64-unknown-linux-gnu \ +// RUN: -### -S %s -mcpu=pwr3 2>&1 | FileCheck -check-prefix=PPCPWR3 %s +// PPCPWR3: clang +// PPCPWR3: "-cc1" +// PPCPWR3: "-target-cpu" "pwr3" + +// RUN: %clang -target powerpc64-unknown-linux-gnu \ +// RUN: -### -S %s -mcpu=power4 2>&1 | FileCheck -check-prefix=PPCPOWER4 %s +// PPCPOWER4: clang +// PPCPOWER4: "-cc1" +// PPCPOWER4: "-target-cpu" "pwr4" + +// RUN: %clang -target powerpc64-unknown-linux-gnu \ +// RUN: -### -S %s -mcpu=pwr4 2>&1 | FileCheck -check-prefix=PPCPWR4 %s +// PPCPWR4: clang +// PPCPWR4: "-cc1" +// PPCPWR4: "-target-cpu" "pwr4" + +// RUN: %clang -target powerpc64-unknown-linux-gnu \ +// RUN: -### -S %s -mcpu=power5 2>&1 | FileCheck -check-prefix=PPCPOWER5 %s +// PPCPOWER5: clang +// PPCPOWER5: "-cc1" +// PPCPOWER5: "-target-cpu" "pwr5" + +// RUN: %clang -target powerpc64-unknown-linux-gnu \ +// RUN: -### -S %s -mcpu=pwr5 2>&1 | FileCheck -check-prefix=PPCPWR5 %s +// PPCPWR5: clang +// PPCPWR5: "-cc1" +// PPCPWR5: "-target-cpu" "pwr5" + +// RUN: %clang -target powerpc64-unknown-linux-gnu \ +// RUN: -### -S %s -mcpu=power5x 2>&1 | FileCheck -check-prefix=PPCPOWER5X %s +// PPCPOWER5X: clang +// PPCPOWER5X: "-cc1" +// PPCPOWER5X: "-target-cpu" "pwr5x" + +// RUN: %clang -target powerpc64-unknown-linux-gnu \ +// RUN: -### -S %s -mcpu=pwr5x 2>&1 | FileCheck -check-prefix=PPCPWR5X %s +// PPCPWR5X: clang +// PPCPWR5X: "-cc1" +// PPCPWR5X: "-target-cpu" "pwr5x" + +// RUN: %clang -target powerpc64-unknown-linux-gnu \ +// RUN: -### -S %s -mcpu=power6 2>&1 | FileCheck -check-prefix=PPCPOWER6 %s +// PPCPOWER6: clang +// PPCPOWER6: "-cc1" +// PPCPOWER6: "-target-cpu" "pwr6" + +// RUN: %clang -target powerpc64-unknown-linux-gnu \ +// RUN: -### -S %s -mcpu=pwr6 2>&1 | FileCheck -check-prefix=PPCPWR6 %s +// PPCPWR6: clang +// PPCPWR6: "-cc1" +// PPCPWR6: "-target-cpu" "pwr6" + +// RUN: %clang -target powerpc64-unknown-linux-gnu \ +// RUN: -### -S %s -mcpu=power6x 2>&1 | FileCheck -check-prefix=PPCPOWER6X %s +// PPCPOWER6X: clang +// PPCPOWER6X: "-cc1" +// PPCPOWER6X: "-target-cpu" "pwr6x" + +// RUN: %clang -target powerpc64-unknown-linux-gnu \ +// RUN: -### -S %s -mcpu=pwr6x 2>&1 | FileCheck -check-prefix=PPCPWR6X %s +// PPCPWR6X: clang +// PPCPWR6X: "-cc1" +// PPCPWR6X: "-target-cpu" "pwr6x" + +// RUN: %clang -target powerpc64-unknown-linux-gnu \ +// RUN: -### -S %s -mcpu=power7 2>&1 | FileCheck -check-prefix=PPCPOWER7 %s +// PPCPOWER7: clang +// PPCPOWER7: "-cc1" +// PPCPOWER7: "-target-cpu" "pwr7" + +// RUN: %clang -target powerpc64-unknown-linux-gnu \ +// RUN: -### -S %s -mcpu=powerpc 2>&1 | FileCheck -check-prefix=PPCPOWERPC %s +// PPCPOWERPC: clang +// PPCPOWERPC: "-cc1" +// PPCPOWERPC: "-target-cpu" "ppc" + +// RUN: %clang -target powerpc64-unknown-linux-gnu \ +// RUN: -### -S %s -mcpu=powerpc64 2>&1 | FileCheck -check-prefix=PPCPOWERPC64 %s +// PPCPOWERPC64: clang +// PPCPOWERPC64: "-cc1" +// PPCPOWERPC64: "-target-cpu" "ppc64" + // RUN: %clang -target powerpc64-unknown-linux-gnu \ // RUN: -### -S %s 2>&1 | FileCheck -check-prefix=PPC64NS %s // PPC64NS: clang diff --git a/test/Preprocessor/init.c b/test/Preprocessor/init.c index 73590f7035..73a3a7353e 100644 --- a/test/Preprocessor/init.c +++ b/test/Preprocessor/init.c @@ -1678,6 +1678,151 @@ // PPCBGQ:#define __bg__ 1 // PPCBGQ:#define __bgq__ 1 // +// RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc64-none-none -target-cpu 630 -fno-signed-char < /dev/null | FileCheck -check-prefix PPC630 %s +// +// PPC630:#define _ARCH_630 1 +// PPC630:#define _ARCH_PPC 1 +// PPC630:#define _ARCH_PPC64 1 +// PPC630:#define _ARCH_PPCGR 1 +// +// RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc64-none-none -target-cpu pwr3 -fno-signed-char < /dev/null | FileCheck -check-prefix PPCPWR3 %s +// +// PPCPWR3:#define _ARCH_PPC 1 +// PPCPWR3:#define _ARCH_PPC64 1 +// PPCPWR3:#define _ARCH_PPCGR 1 +// +// RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc64-none-none -target-cpu power3 -fno-signed-char < /dev/null | FileCheck -check-prefix PPCPOWER3 %s +// +// PPCPOWER3:#define _ARCH_PPC 1 +// PPCPOWER3:#define _ARCH_PPC64 1 +// PPCPOWER3:#define _ARCH_PPCGR 1 +// +// RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc64-none-none -target-cpu pwr4 -fno-signed-char < /dev/null | FileCheck -check-prefix PPCPWR4 %s +// +// PPCPWR4:#define _ARCH_PPC 1 +// PPCPWR4:#define _ARCH_PPC64 1 +// PPCPWR4:#define _ARCH_PPCGR 1 +// PPCPWR4:#define _ARCH_PPCSQ 1 +// PPCPWR4:#define _ARCH_PWR4 1 +// +// RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc64-none-none -target-cpu power4 -fno-signed-char < /dev/null | FileCheck -check-prefix PPCPOWER4 %s +// +// PPCPOWER4:#define _ARCH_PPC 1 +// PPCPOWER4:#define _ARCH_PPC64 1 +// PPCPOWER4:#define _ARCH_PPCGR 1 +// PPCPOWER4:#define _ARCH_PPCSQ 1 +// PPCPOWER4:#define _ARCH_PWR4 1 +// +// RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc64-none-none -target-cpu pwr5 -fno-signed-char < /dev/null | FileCheck -check-prefix PPCPWR5 %s +// +// PPCPWR5:#define _ARCH_PPC 1 +// PPCPWR5:#define _ARCH_PPC64 1 +// PPCPWR5:#define _ARCH_PPCGR 1 +// PPCPWR5:#define _ARCH_PPCSQ 1 +// PPCPWR5:#define _ARCH_PWR4 1 +// PPCPWR5:#define _ARCH_PWR5 1 +// +// RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc64-none-none -target-cpu power5 -fno-signed-char < /dev/null | FileCheck -check-prefix PPCPOWER5 %s +// +// PPCPOWER5:#define _ARCH_PPC 1 +// PPCPOWER5:#define _ARCH_PPC64 1 +// PPCPOWER5:#define _ARCH_PPCGR 1 +// PPCPOWER5:#define _ARCH_PPCSQ 1 +// PPCPOWER5:#define _ARCH_PWR4 1 +// PPCPOWER5:#define _ARCH_PWR5 1 +// +// RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc64-none-none -target-cpu pwr5x -fno-signed-char < /dev/null | FileCheck -check-prefix PPCPWR5X %s +// +// PPCPWR5X:#define _ARCH_PPC 1 +// PPCPWR5X:#define _ARCH_PPC64 1 +// PPCPWR5X:#define _ARCH_PPCGR 1 +// PPCPWR5X:#define _ARCH_PPCSQ 1 +// PPCPWR5X:#define _ARCH_PWR4 1 +// PPCPWR5X:#define _ARCH_PWR5 1 +// PPCPWR5X:#define _ARCH_PWR5X 1 +// +// RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc64-none-none -target-cpu power5x -fno-signed-char < /dev/null | FileCheck -check-prefix PPCPOWER5X %s +// +// PPCPOWER5X:#define _ARCH_PPC 1 +// PPCPOWER5X:#define _ARCH_PPC64 1 +// PPCPOWER5X:#define _ARCH_PPCGR 1 +// PPCPOWER5X:#define _ARCH_PPCSQ 1 +// PPCPOWER5X:#define _ARCH_PWR4 1 +// PPCPOWER5X:#define _ARCH_PWR5 1 +// PPCPOWER5X:#define _ARCH_PWR5X 1 +// +// RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc64-none-none -target-cpu pwr6 -fno-signed-char < /dev/null | FileCheck -check-prefix PPCPWR6 %s +// +// PPCPWR6:#define _ARCH_PPC 1 +// PPCPWR6:#define _ARCH_PPC64 1 +// PPCPWR6:#define _ARCH_PPCGR 1 +// PPCPWR6:#define _ARCH_PPCSQ 1 +// PPCPWR6:#define _ARCH_PWR4 1 +// PPCPWR6:#define _ARCH_PWR5 1 +// PPCPWR6:#define _ARCH_PWR5X 1 +// PPCPWR6:#define _ARCH_PWR6 1 +// +// RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc64-none-none -target-cpu power6 -fno-signed-char < /dev/null | FileCheck -check-prefix PPCPOWER6 %s +// +// PPCPOWER6:#define _ARCH_PPC 1 +// PPCPOWER6:#define _ARCH_PPC64 1 +// PPCPOWER6:#define _ARCH_PPCGR 1 +// PPCPOWER6:#define _ARCH_PPCSQ 1 +// PPCPOWER6:#define _ARCH_PWR4 1 +// PPCPOWER6:#define _ARCH_PWR5 1 +// PPCPOWER6:#define _ARCH_PWR5X 1 +// PPCPOWER6:#define _ARCH_PWR6 1 +// +// RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc64-none-none -target-cpu pwr6x -fno-signed-char < /dev/null | FileCheck -check-prefix PPCPWR6X %s +// +// PPCPWR6X:#define _ARCH_PPC 1 +// PPCPWR6X:#define _ARCH_PPC64 1 +// PPCPWR6X:#define _ARCH_PPCGR 1 +// PPCPWR6X:#define _ARCH_PPCSQ 1 +// PPCPWR6X:#define _ARCH_PWR4 1 +// PPCPWR6X:#define _ARCH_PWR5 1 +// PPCPWR6X:#define _ARCH_PWR5X 1 +// PPCPWR6X:#define _ARCH_PWR6 1 +// PPCPWR6X:#define _ARCH_PWR6X 1 +// +// RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc64-none-none -target-cpu power6x -fno-signed-char < /dev/null | FileCheck -check-prefix PPCPOWER6X %s +// +// PPCPOWER6X:#define _ARCH_PPC 1 +// PPCPOWER6X:#define _ARCH_PPC64 1 +// PPCPOWER6X:#define _ARCH_PPCGR 1 +// PPCPOWER6X:#define _ARCH_PPCSQ 1 +// PPCPOWER6X:#define _ARCH_PWR4 1 +// PPCPOWER6X:#define _ARCH_PWR5 1 +// PPCPOWER6X:#define _ARCH_PWR5X 1 +// PPCPOWER6X:#define _ARCH_PWR6 1 +// PPCPOWER6X:#define _ARCH_PWR6X 1 +// +// RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc64-none-none -target-cpu pwr7 -fno-signed-char < /dev/null | FileCheck -check-prefix PPCPWR7 %s +// +// PPCPWR7:#define _ARCH_PPC 1 +// PPCPWR7:#define _ARCH_PPC64 1 +// PPCPWR7:#define _ARCH_PPCGR 1 +// PPCPWR7:#define _ARCH_PPCSQ 1 +// PPCPWR7:#define _ARCH_PWR4 1 +// PPCPWR7:#define _ARCH_PWR5 1 +// PPCPWR7:#define _ARCH_PWR5X 1 +// PPCPWR7:#define _ARCH_PWR6 1 +// PPCPWR7:#define _ARCH_PWR6X 1 +// PPCPWR7:#define _ARCH_PWR7 1 +// +// RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc64-none-none -target-cpu power7 -fno-signed-char < /dev/null | FileCheck -check-prefix PPCPOWER7 %s +// +// PPCPOWER7:#define _ARCH_PPC 1 +// PPCPOWER7:#define _ARCH_PPC64 1 +// PPCPOWER7:#define _ARCH_PPCGR 1 +// PPCPOWER7:#define _ARCH_PPCSQ 1 +// PPCPOWER7:#define _ARCH_PWR4 1 +// PPCPOWER7:#define _ARCH_PWR5 1 +// PPCPOWER7:#define _ARCH_PWR5X 1 +// PPCPOWER7:#define _ARCH_PWR6 1 +// PPCPOWER7:#define _ARCH_PWR6X 1 +// PPCPOWER7:#define _ARCH_PWR7 1 +// // RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc64-unknown-linux-gnu -fno-signed-char < /dev/null | FileCheck -check-prefix PPC64-LINUX %s // // PPC64-LINUX:#define _ARCH_PPC 1