diff options
author | Bill Schmidt <wschmidt@linux.vnet.ibm.com> | 2013-02-01 20:23:10 +0000 |
---|---|---|
committer | Bill Schmidt <wschmidt@linux.vnet.ibm.com> | 2013-02-01 20:23:10 +0000 |
commit | 2821e180094459cbdef37e7d7c12bb406d5b82ba (patch) | |
tree | b03f3c7366ff1d87259f2525c5c3bf11ed1e7170 /test/Preprocessor/init.c | |
parent | 41f7b1a854362f7de5cb6d6b0c2964373dede51d (diff) |
Add some missing PPC cpus
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174215 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor/init.c')
-rw-r--r-- | test/Preprocessor/init.c | 145 |
1 files changed, 145 insertions, 0 deletions
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 |