diff options
author | Ana Pazos <apazos@codeaurora.org> | 2013-12-06 22:43:17 +0000 |
---|---|---|
committer | Ana Pazos <apazos@codeaurora.org> | 2013-12-06 22:43:17 +0000 |
commit | dd6068d4009e7b16849b780510f3002e3d28b6af (patch) | |
tree | 0cc466adf01d332e448384db0ee02bd34b1a5a37 /clang/test/Preprocessor/arm-target-features.c | |
parent | 7d734602186feb97f89aedebff8be616fe885503 (diff) | |
download | bcm5719-llvm-dd6068d4009e7b16849b780510f3002e3d28b6af.tar.gz bcm5719-llvm-dd6068d4009e7b16849b780510f3002e3d28b6af.zip |
Added support for mcpu krait
- krait processor currently modeled with the same features as A9.
- Krait processor additionally has VFP4 (fused multiply add/sub)
and hardware division features enabled.
- krait has currently the same Schedule model as A9
- krait cpu flag is not recognized by the GNU assembler yet,
it is replaced with march=armv7-a to avoid a lower march
from being used.
llvm-svn: 196618
Diffstat (limited to 'clang/test/Preprocessor/arm-target-features.c')
-rw-r--r-- | clang/test/Preprocessor/arm-target-features.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/arm-target-features.c b/clang/test/Preprocessor/arm-target-features.c index ee84269b88d..4d40bcb3c67 100644 --- a/clang/test/Preprocessor/arm-target-features.c +++ b/clang/test/Preprocessor/arm-target-features.c @@ -222,3 +222,13 @@ // Test whether predefines are as expected when targeting cortex-m4. // RUN: %clang -target armv7 -mthumb -mcpu=cortex-m4 -x c -E -dM %s -o - | FileCheck --check-prefix=M4-THUMB %s // M4-THUMB:#define __ARM_ARCH_EXT_IDIV__ 1 + +// Test whether predefines are as expected when targeting krait. +// RUN: %clang -target armv7 -mcpu=krait -x c -E -dM %s -o - | FileCheck --check-prefix=KRAIT-ARM %s +// KRAIT-ARM:#define __ARM_ARCH_EXT_IDIV__ 1 +// KRAIT-ARM:#define __ARM_VFPV4__ 1 + +// RUN: %clang -target armv7 -mthumb -mcpu=krait -x c -E -dM %s -o - | FileCheck --check-prefix=KRAIT-THUMB %s +// KRAIT-THUMB:#define __ARM_ARCH_EXT_IDIV__ 1 +// KRAIT-THUMB:#define __ARM_VFPV4__ 1 + |