summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/arm-target-features.c
diff options
context:
space:
mode:
authorOliver Stannard <oliver.stannard@arm.com>2016-02-11 16:05:52 +0000
committerOliver Stannard <oliver.stannard@arm.com>2016-02-11 16:05:52 +0000
commit3086c04a93fc768b3c3931ae8b6266b51599deea (patch)
tree277c843523cee554eabc923c59c73c6e02e559e1 /clang/test/Preprocessor/arm-target-features.c
parentfbd0176d6c33c784959b721c7637e543af7aea60 (diff)
downloadbcm5719-llvm-3086c04a93fc768b3c3931ae8b6266b51599deea.tar.gz
bcm5719-llvm-3086c04a93fc768b3c3931ae8b6266b51599deea.zip
[ARM] Add command-line options for ARMv8.2-A
This allows ARMv8.2-A to be targeted either by using "armv8.2a" in the triple, or by using -march=armv8.2-a (or the alias -march=armv8.2a). The FP16 extension can be enabled with the "+fp16" suffix to the -march or -mcpu option. This is consistent with the AArch64 option, rather than the usual ARM option of -mfpu. We have agreed with the team which will be upstreaming this to GCC that we want to use this new option format for new architecture extensions for both ARM and AArch64. Most of the work for this was done by the TargetParser patch in llvm. Differential Revision: http://reviews.llvm.org/D15040 llvm-svn: 260533
Diffstat (limited to 'clang/test/Preprocessor/arm-target-features.c')
-rw-r--r--clang/test/Preprocessor/arm-target-features.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/arm-target-features.c b/clang/test/Preprocessor/arm-target-features.c
index ae27aa0a08b..21fedff9bf2 100644
--- a/clang/test/Preprocessor/arm-target-features.c
+++ b/clang/test/Preprocessor/arm-target-features.c
@@ -409,3 +409,9 @@
// CHECK-V81A: #define __ARM_ARCH_PROFILE 'A'
// CHECK-V81A: __ARM_FEATURE_QRDMX 1
// CHECK-V81A: #define __ARM_FP 0xE
+
+// RUN: %clang -target armv8.2a-none-none-eabi -x c -E -dM %s -o - | FileCheck --check-prefix=CHECK-V82A %s
+// CHECK-V82A: __ARM_ARCH 8
+// CHECK-V82A: __ARM_ARCH_8_2A__ 1
+// CHECK-V82A: #define __ARM_ARCH_PROFILE 'A'
+// CHECK-V82A: #define __ARM_FP 0xE
OpenPOWER on IntegriCloud