diff options
author | Craig Topper <craig.topper@intel.com> | 2017-11-01 02:18:49 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2017-11-01 02:18:49 +0000 |
commit | 93dccb54579e30a41d0f9e2571b34ef7edebbfc5 (patch) | |
tree | 653ea57634006a8fab41c14ff0da94178e5d15ea /test/Preprocessor | |
parent | 2680fb2e8a862140ca2ad728276eeea9bfb1d103 (diff) |
[X86] Define i586 and pentium preprocessor defines for -march=lakemont to match GCC
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@317069 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor')
-rw-r--r-- | test/Preprocessor/predefined-arch-macros.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/test/Preprocessor/predefined-arch-macros.c b/test/Preprocessor/predefined-arch-macros.c index 2f3d9e3047..d7c10cec58 100644 --- a/test/Preprocessor/predefined-arch-macros.c +++ b/test/Preprocessor/predefined-arch-macros.c @@ -1158,15 +1158,19 @@ // // RUN: %clang -march=lakemont -m32 -E -dM %s -o - 2>&1 \ // RUN: -target i386-unknown-linux \ -// RUN: | FileCheck %s -check-prefix=CHECK_LMT_M32 -// CHECK_LMT_M32: #define __i386 1 -// CHECK_LMT_M32: #define __i386__ 1 -// CHECK_LMT_M32: #define __tune_lakemont__ 1 -// CHECK_LMT_M32: #define i386 1 +// RUN: | FileCheck %s -check-prefix=CHECK_LAKEMONT_M32 +// CHECK_LAKEMONT_M32: #define __i386 1 +// CHECK_LAKEMONT_M32: #define __i386__ 1 +// CHECK_LAKEMONT_M32: #define __i586 1 +// CHECK_LAKEMONT_M32: #define __i586__ 1 +// CHECK_LAKEMONT_M32: #define __pentium 1 +// CHECK_LAKEMONT_M32: #define __pentium__ 1 +// CHECK_LAKEMONT_M32: #define __tune_lakemont__ 1 +// CHECK_LAKEMONT_M32: #define i386 1 // RUN: not %clang -march=lakemont -m64 -E -dM %s -o - 2>&1 \ // RUN: -target i386-unknown-linux \ -// RUN: | FileCheck %s -check-prefix=CHECK_LMT_M64 -// CHECK_LMT_M64: error: +// RUN: | FileCheck %s -check-prefix=CHECK_LAKEMONT_M64 +// CHECK_LAKEMONT_M64: error: // // RUN: %clang -march=geode -m32 -E -dM %s -o - 2>&1 \ // RUN: -target i386-unknown-linux \ |