diff options
author | Renato Golin <renato.golin@linaro.org> | 2016-03-21 17:29:51 +0000 |
---|---|---|
committer | Renato Golin <renato.golin@linaro.org> | 2016-03-21 17:29:51 +0000 |
commit | 930de67e6a78a2461d21d43a84666293bc0197ed (patch) | |
tree | 0e8fdbdb6ef536fcf28f6604ee71f025c3e792dc /clang/test/Preprocessor/arm-target-features.c | |
parent | 2b6b7ffd6c23dfb337f9f55b313918628cbebb2f (diff) | |
download | bcm5719-llvm-930de67e6a78a2461d21d43a84666293bc0197ed.tar.gz bcm5719-llvm-930de67e6a78a2461d21d43a84666293bc0197ed.zip |
[ARM] Clang tests for ARM Cortex-A32 support
Patch by Sam Parker.
llvm-svn: 263957
Diffstat (limited to 'clang/test/Preprocessor/arm-target-features.c')
-rw-r--r-- | clang/test/Preprocessor/arm-target-features.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/clang/test/Preprocessor/arm-target-features.c b/clang/test/Preprocessor/arm-target-features.c index bca7bfbf29c..bbad15b4b6c 100644 --- a/clang/test/Preprocessor/arm-target-features.c +++ b/clang/test/Preprocessor/arm-target-features.c @@ -345,16 +345,18 @@ // SWIFT-THUMB:#define __ARM_FEATURE_DSP // SWIFT-THUMB:#define __ARM_FP 0xE -// Test whether predefines are as expected when targeting cortex-a53. -// RUN: %clang -target armv8 -mcpu=cortex-a53 -x c -E -dM %s -o - | FileCheck --check-prefix=A53-ARM %s -// A53-ARM:#define __ARM_ARCH_EXT_IDIV__ 1 -// A53-ARM:#define __ARM_FEATURE_DSP -// A53-ARM:#define __ARM_FP 0xE - -// RUN: %clang -target armv8 -mthumb -mcpu=cortex-a53 -x c -E -dM %s -o - | FileCheck --check-prefix=A53-THUMB %s -// A53-THUMB:#define __ARM_ARCH_EXT_IDIV__ 1 -// A53-THUMB:#define __ARM_FEATURE_DSP -// A53-THUMB:#define __ARM_FP 0xE +// Test whether predefines are as expected when targeting ARMv8-A Cortex implementations +// RUN: %clang -target armv8 -mcpu=cortex-a32 -x c -E -dM %s -o - | FileCheck --check-prefix=ARMV8-ARM %s +// RUN: %clang -target armv8 -mcpu=cortex-a53 -x c -E -dM %s -o - | FileCheck --check-prefix=ARMV8-ARM %s +// ARMV8-ARM:#define __ARM_ARCH_EXT_IDIV__ 1 +// ARMV8-ARM:#define __ARM_FEATURE_DSP +// ARMV8-ARM:#define __ARM_FP 0xE + +// RUN: %clang -target armv8 -mthumb -mcpu=cortex-a32 -x c -E -dM %s -o - | FileCheck --check-prefix=ARMV8-THUMB %s +// RUN: %clang -target armv8 -mthumb -mcpu=cortex-a53 -x c -E -dM %s -o - | FileCheck --check-prefix=ARMV8-THUMB %s +// ARMV8-THUMB:#define __ARM_ARCH_EXT_IDIV__ 1 +// ARMV8-THUMB:#define __ARM_FEATURE_DSP +// ARMV8-THUMB:#define __ARM_FP 0xE // Test whether predefines are as expected when targeting cortex-r4. // RUN: %clang -target armv7 -mcpu=cortex-r4 -x c -E -dM %s -o - | FileCheck --check-prefix=R4-ARM %s |