summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/x86_features.c
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2015-03-25 22:09:26 +0000
committerEric Christopher <echristo@gmail.com>2015-03-25 22:09:26 +0000
commitf43966f38df79296cddf216e1b467483045aa8d9 (patch)
treea1391000de6e03d5f1ae98d10bdd782f85cefb59 /clang/test/Driver/x86_features.c
parent533849c615cd39257cb53550d3a2162405b6d63c (diff)
downloadbcm5719-llvm-f43966f38df79296cddf216e1b467483045aa8d9.tar.gz
bcm5719-llvm-f43966f38df79296cddf216e1b467483045aa8d9.zip
Make the msse4/mno-sse4 flags aliases of the maximum sse values
they enable/disable. This fixes two things: a) sse4 isn't actually a target feature, don't treat it as one. b) we weren't correctly disabling sse4.1 when we'd pass -mno-sse4 after enabling it, thus passing preprocessor directives and (soon) passing the function attribute as well when we shouldn't. llvm-svn: 233223
Diffstat (limited to 'clang/test/Driver/x86_features.c')
-rw-r--r--clang/test/Driver/x86_features.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Driver/x86_features.c b/clang/test/Driver/x86_features.c
index 26f0bd8bcf0..e5ca704fdcd 100644
--- a/clang/test/Driver/x86_features.c
+++ b/clang/test/Driver/x86_features.c
@@ -1,5 +1,5 @@
// RUN: %clang -target i386-unknown-unknown -### -S %s -msse -msse4 -mno-sse -mno-mmx -msse 2>&1 | FileCheck %s
-// CHECK: "pentium4" "-target-feature" "+sse4" "-target-feature" "-mmx" "-target-feature" "+sse"
+// CHECK: "pentium4" "-target-feature" "+sse4.2" "-target-feature" "-mmx" "-target-feature" "+sse"
// Note that we filter out all but the last -m(no)sse.
// Test that we don't produce an error with -mieee-fp.
OpenPOWER on IntegriCloud