summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/arm-target-features.c
diff options
context:
space:
mode:
authorJoey Gouly <joey.gouly@arm.com>2013-09-18 10:07:09 +0000
committerJoey Gouly <joey.gouly@arm.com>2013-09-18 10:07:09 +0000
commit1e8637b259a3243efeb8966c349f02eda79ffb1a (patch)
treeffb1f7eb5d30085cc8a63b0f1977d002245e4196 /clang/test/Preprocessor/arm-target-features.c
parent93183ee78c5850cc475f537ca14dd0a83c009bbf (diff)
downloadbcm5719-llvm-1e8637b259a3243efeb8966c349f02eda79ffb1a.tar.gz
bcm5719-llvm-1e8637b259a3243efeb8966c349f02eda79ffb1a.zip
[ARMv8] Add builtins for CRC instructions.
Patch by Bradley Smith! llvm-svn: 190931
Diffstat (limited to 'clang/test/Preprocessor/arm-target-features.c')
-rw-r--r--clang/test/Preprocessor/arm-target-features.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/arm-target-features.c b/clang/test/Preprocessor/arm-target-features.c
new file mode 100644
index 00000000000..56c893b6b01
--- /dev/null
+++ b/clang/test/Preprocessor/arm-target-features.c
@@ -0,0 +1,11 @@
+// RUN: %clang -target armv8a-none-linux-gnu -x c -E -dM %s -o - | FileCheck %s
+// CHECK: __ARMEL__ 1
+// CHECK: __ARM_ARCH 8
+// CHECK: __ARM_ARCH_8A__ 1
+// CHECK: __ARM_FEATURE_CRC32 1
+
+// RUN: %clang -target armv7a-none-linux-gnu -x c -E -dM %s -o - | FileCheck --check-prefix=CHECK-V7 %s
+// CHECK-V7: __ARMEL__ 1
+// CHECK-V7: __ARM_ARCH 7
+// CHECK-V7: __ARM_ARCH_7A__ 1
+// CHECK-NOT-V7: __ARM_FEATURE_CRC32
OpenPOWER on IntegriCloud