diff options
author | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2019-07-12 18:14:51 +0000 |
---|---|---|
committer | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2019-07-12 18:14:51 +0000 |
commit | b98bf60ef7a7ad714b340f980792ec208528cbb2 (patch) | |
tree | 6b871f5069ad933efbf96d98ab44b15635f2f533 /clang/test/Preprocessor/predefined-arch-macros.c | |
parent | 0f0a8b77843e73212ab20cc9657b4db7c928abc0 (diff) | |
download | bcm5719-llvm-b98bf60ef7a7ad714b340f980792ec208528cbb2.tar.gz bcm5719-llvm-b98bf60ef7a7ad714b340f980792ec208528cbb2.zip |
[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.
llvm-svn: 365933
Diffstat (limited to 'clang/test/Preprocessor/predefined-arch-macros.c')
-rw-r--r-- | clang/test/Preprocessor/predefined-arch-macros.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/clang/test/Preprocessor/predefined-arch-macros.c b/clang/test/Preprocessor/predefined-arch-macros.c index 885ee086cf2..4b3f2339d49 100644 --- a/clang/test/Preprocessor/predefined-arch-macros.c +++ b/clang/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 ---------------- |