diff options
Diffstat (limited to 'clang/test/Preprocessor/predefined-arch-macros.c')
-rw-r--r-- | clang/test/Preprocessor/predefined-arch-macros.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/predefined-arch-macros.c b/clang/test/Preprocessor/predefined-arch-macros.c index 41308103994..1254ac4627e 100644 --- a/clang/test/Preprocessor/predefined-arch-macros.c +++ b/clang/test/Preprocessor/predefined-arch-macros.c @@ -1741,11 +1741,20 @@ // RUN: %clang -E -dM %s -o - 2>&1 \ // RUN: -target sparc-unknown-linux \ // RUN: | FileCheck %s -check-prefix=CHECK_SPARC +// RUN: %clang -mcpu=v9 -E -dM %s -o - 2>&1 \ +// RUN: -target sparc-unknown-linux \ +// RUN: | FileCheck %s -check-prefix=CHECK_SPARC-V9 // // CHECK_SPARC: #define __BIG_ENDIAN__ 1 // CHECK_SPARC: #define __sparc 1 // CHECK_SPARC: #define __sparc__ 1 +// CHECK_SPARC-NOT: #define __sparcv9 1 // CHECK_SPARC: #define __sparcv8 1 +// CHECK_SPARC-NOT: #define __sparcv9 1 + +// CHECK_SPARC-V9-NOT: #define __sparcv8 1 +// CHECK_SPARC-V9: #define __sparcv9 1 +// CHECK_SPARC-V9-NOT: #define __sparcv8 1 // // RUN: %clang -E -dM %s -o - 2>&1 \ |