diff options
| author | Bradley Smith <bradley.smith@arm.com> | 2015-02-18 10:34:48 +0000 |
|---|---|---|
| committer | Bradley Smith <bradley.smith@arm.com> | 2015-02-18 10:34:48 +0000 |
| commit | d86d670e8595fb4e7310a460c09d5c7bf0e24164 (patch) | |
| tree | 371890ebd8906f009cdb6a3de51539ceee30245e /clang/test/Preprocessor | |
| parent | 26c9922a598f7fd35e0c2a666f39906ad30dfaaf (diff) | |
| download | bcm5719-llvm-d86d670e8595fb4e7310a460c09d5c7bf0e24164.tar.gz bcm5719-llvm-d86d670e8595fb4e7310a460c09d5c7bf0e24164.zip | |
[ARM] Add missing M/R class CPUs
Add some of the missing M and R class Cortex CPUs, namely:
Cortex-M0+ (called Cortex-M0plus for GCC compatibility)
Cortex-M1
SC000
SC300
Cortex-R5
llvm-svn: 229661
Diffstat (limited to 'clang/test/Preprocessor')
| -rw-r--r-- | clang/test/Preprocessor/arm-target-features.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/arm-target-features.c b/clang/test/Preprocessor/arm-target-features.c index e95a50d0227..926a7534c92 100644 --- a/clang/test/Preprocessor/arm-target-features.c +++ b/clang/test/Preprocessor/arm-target-features.c @@ -273,13 +273,26 @@ // R5-THUMB:#define __ARM_ARCH_EXT_IDIV__ 1 // R5-THUMB:#define __ARM_FEATURE_DSP +// Test whether predefines are as expected when targeting cortex-r7. +// RUN: %clang -target armv7 -mcpu=cortex-r7 -x c -E -dM %s -o - | FileCheck --check-prefix=R7-ARM %s +// R7-ARM:#define __ARM_ARCH_EXT_IDIV__ 1 +// R7-ARM:#define __ARM_FEATURE_DSP + +// RUN: %clang -target armv7 -mthumb -mcpu=cortex-r7 -x c -E -dM %s -o - | FileCheck --check-prefix=R7-THUMB %s +// R7-THUMB:#define __ARM_ARCH_EXT_IDIV__ 1 +// R7-THUMB:#define __ARM_FEATURE_DSP + // Test whether predefines are as expected when targeting cortex-m0. // RUN: %clang -target armv7 -mthumb -mcpu=cortex-m0 -x c -E -dM %s -o - | FileCheck --check-prefix=M0-THUMB %s +// RUN: %clang -target armv7 -mthumb -mcpu=cortex-m0plus -x c -E -dM %s -o - | FileCheck --check-prefix=M0-THUMB %s +// RUN: %clang -target armv7 -mthumb -mcpu=cortex-m1 -x c -E -dM %s -o - | FileCheck --check-prefix=M0-THUMB %s +// RUN: %clang -target armv7 -mthumb -mcpu=sc000 -x c -E -dM %s -o - | FileCheck --check-prefix=M0-THUMB %s // M0-THUMB-NOT:#define __ARM_ARCH_EXT_IDIV__ // M0-THUMB-NOT:#define __ARM_FEATURE_DSP // Test whether predefines are as expected when targeting cortex-m3. // RUN: %clang -target armv7 -mthumb -mcpu=cortex-m3 -x c -E -dM %s -o - | FileCheck --check-prefix=M3-THUMB %s +// RUN: %clang -target armv7 -mthumb -mcpu=sc300 -x c -E -dM %s -o - | FileCheck --check-prefix=M3-THUMB %s // M3-THUMB:#define __ARM_ARCH_EXT_IDIV__ 1 // M3-THUMB-NOT:#define __ARM_FEATURE_DSP |

