diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-08-20 18:57:55 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-08-20 18:57:55 +0000 |
| commit | db0fcfbfaeb2e401c06ca55a431755f11af76720 (patch) | |
| tree | d3e8950d691e4923c09083deb069c73c5d76ac73 /clang/test/Preprocessor/x86_target_features.c | |
| parent | 9427939f65fd757da5b460ca923f1b56ae38a3a0 (diff) | |
| download | bcm5719-llvm-db0fcfbfaeb2e401c06ca55a431755f11af76720.tar.gz bcm5719-llvm-db0fcfbfaeb2e401c06ca55a431755f11af76720.zip | |
Centralize the logic for handling -m* options and fix pr16943.
This moves the logic for handling -mfoo -mno-foo from the driver to -cc1. It
also changes -cc1 to apply the options in order, fixing pr16943.
The handling of -mno-mmx -msse is now an explicit special case.
llvm-svn: 188817
Diffstat (limited to 'clang/test/Preprocessor/x86_target_features.c')
| -rw-r--r-- | clang/test/Preprocessor/x86_target_features.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/x86_target_features.c b/clang/test/Preprocessor/x86_target_features.c index 036a5da1de5..4cdd3425cc9 100644 --- a/clang/test/Preprocessor/x86_target_features.c +++ b/clang/test/Preprocessor/x86_target_features.c @@ -30,3 +30,15 @@ // SSE2: #define __SSE_MATH__ 1 // SSE2: #define __SSE__ 1 // SSE2-NOT: #define __SSSE3__ 1 + +// RUN: %clang -target i386-unknown-unknown -march=pentium-m -mno-sse -mavx -x c -E -dM -o - %s | FileCheck --check-prefix=AVX %s + +// AVX: #define __AVX__ 1 +// AVX: #define __SSE2_MATH__ 1 +// AVX: #define __SSE2__ 1 +// AVX: #define __SSE3__ 1 +// AVX: #define __SSE4_1__ 1 +// AVX: #define __SSE4_2__ 1 +// AVX: #define __SSE_MATH__ 1 +// AVX: #define __SSE__ 1 +// AVX: #define __SSSE3__ 1 |

