diff options
author | Nemanja Ivanovic <nemanja.i.ibm@gmail.com> | 2016-09-27 10:45:22 +0000 |
---|---|---|
committer | Nemanja Ivanovic <nemanja.i.ibm@gmail.com> | 2016-09-27 10:45:22 +0000 |
commit | 10e2b5dcaa75eb3bd6180b8d16aee58a8027ca19 (patch) | |
tree | 4ed77025ce241b54377306df635edff82d918fe4 /clang/test/Preprocessor | |
parent | 54f8efaa2634415e9c487b9c5169a898a56fc96e (diff) | |
download | bcm5719-llvm-10e2b5dcaa75eb3bd6180b8d16aee58a8027ca19.tar.gz bcm5719-llvm-10e2b5dcaa75eb3bd6180b8d16aee58a8027ca19.zip |
[Power9] Builtins for ELF v.2 ABI conformance - front end portion
This patch corresponds to review:
https://reviews.llvm.org/D24397
It adds the __POWER9_VECTOR__ macro and the -mpower9-vector option along with
a number of altivec.h functions (refer to the code review for a list).
llvm-svn: 282481
Diffstat (limited to 'clang/test/Preprocessor')
-rw-r--r-- | clang/test/Preprocessor/predefined-arch-macros.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/predefined-arch-macros.c b/clang/test/Preprocessor/predefined-arch-macros.c index 1149678f2ea..dcb03b14d06 100644 --- a/clang/test/Preprocessor/predefined-arch-macros.c +++ b/clang/test/Preprocessor/predefined-arch-macros.c @@ -1865,6 +1865,12 @@ // // CHECK_PPC_POWER8_VECTOR_M64: #define __POWER8_VECTOR__ 1 // +// RUN: %clang -mpower9-vector -E -dM %s -o - 2>&1 \ +// RUN: -target powerpc64-unknown-linux \ +// RUN: | FileCheck -match-full-lines %s -check-prefix=CHECK_PPC_POWER9_VECTOR_M64 +// +// CHECK_PPC_POWER9_VECTOR_M64: #define __POWER9_VECTOR__ 1 +// // RUN: %clang -mcrypto -E -dM %s -o - 2>&1 \ // RUN: -target powerpc64-unknown-linux \ // RUN: | FileCheck -match-full-lines %s -check-prefix=CHECK_PPC_CRYPTO_M64 |