summaryrefslogtreecommitdiff
path: root/test/Preprocessor
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2019-07-12 18:14:51 +0000
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2019-07-12 18:14:51 +0000
commit8d2441962a9e3f4a0cce1eb282244ba52a588301 (patch)
treeb99978c72792db34fd70fa92cd97bd8ac4b6967b /test/Preprocessor
parent0fcd863f529498b32e7b19b60cff210ee19b0d6f (diff)
downloadclang-8d2441962a9e3f4a0cce1eb282244ba52a588301.tar.gz
[SystemZ] Add support for new cpu architecture - arch13
This patch series adds support for the next-generation arch13 CPU architecture to the SystemZ backend. This includes: - Basic support for the new processor and its features. - Support for low-level builtins mapped to new LLVM intrinsics. - New high-level intrinsics in vecintrin.h. - Indicate support by defining __VEC__ == 10303. Note: No currently available Z system supports the arch13 architecture. Once new systems become available, the official system name will be added as supported -march name. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@365933 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor')
-rw-r--r--test/Preprocessor/predefined-arch-macros.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/test/Preprocessor/predefined-arch-macros.c b/test/Preprocessor/predefined-arch-macros.c
index 885ee086cf..4b3f2339d4 100644
--- a/test/Preprocessor/predefined-arch-macros.c
+++ b/test/Preprocessor/predefined-arch-macros.c
@@ -3134,6 +3134,21 @@
// CHECK_SYSTEMZ_ARCH12: #define __s390x__ 1
// CHECK_SYSTEMZ_ARCH12: #define __zarch__ 1
+// RUN: %clang -march=arch13 -E -dM %s -o - 2>&1 \
+// RUN: -target s390x-unknown-linux \
+// RUN: | FileCheck -match-full-lines %s -check-prefix=CHECK_SYSTEMZ_ARCH13
+// CHECK_SYSTEMZ_ARCH13: #define __ARCH__ 13
+// CHECK_SYSTEMZ_ARCH13: #define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 1
+// CHECK_SYSTEMZ_ARCH13: #define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 1
+// CHECK_SYSTEMZ_ARCH13: #define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 1
+// CHECK_SYSTEMZ_ARCH13: #define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 1
+// CHECK_SYSTEMZ_ARCH13: #define __HTM__ 1
+// CHECK_SYSTEMZ_ARCH13: #define __LONG_DOUBLE_128__ 1
+// CHECK_SYSTEMZ_ARCH13: #define __VX__ 1
+// CHECK_SYSTEMZ_ARCH13: #define __s390__ 1
+// CHECK_SYSTEMZ_ARCH13: #define __s390x__ 1
+// CHECK_SYSTEMZ_ARCH13: #define __zarch__ 1
+
// RUN: %clang -mhtm -E -dM %s -o - 2>&1 \
// RUN: -target s390x-unknown-linux \
// RUN: | FileCheck -match-full-lines %s -check-prefix=CHECK_SYSTEMZ_HTM
@@ -3150,7 +3165,7 @@
// RUN: %clang -mzvector -E -dM %s -o - 2>&1 \
// RUN: -target s390x-unknown-linux \
// RUN: | FileCheck -match-full-lines %s -check-prefix=CHECK_SYSTEMZ_ZVECTOR
-// CHECK_SYSTEMZ_ZVECTOR: #define __VEC__ 10302
+// CHECK_SYSTEMZ_ZVECTOR: #define __VEC__ 10303
// Begin amdgcn tests ----------------