svn commit: r220754 - head/contrib/llvm/tools/clang/lib/Basic
Dimitry Andric
dim at FreeBSD.org
Sun Apr 17 20:44:02 UTC 2011
Author: dim
Date: Sun Apr 17 20:44:02 2011
New Revision: 220754
URL: http://svn.freebsd.org/changeset/base/220754
Log:
For clang, make -mno-mmx imply -mno-3dnow. This is what gcc does.
Submitted by: arundel
Obtained from: http://llvm.org/viewvc/llvm-project?view=rev&revision=129665
Modified:
head/contrib/llvm/tools/clang/lib/Basic/Targets.cpp
Modified: head/contrib/llvm/tools/clang/lib/Basic/Targets.cpp
==============================================================================
--- head/contrib/llvm/tools/clang/lib/Basic/Targets.cpp Sun Apr 17 20:42:40 2011 (r220753)
+++ head/contrib/llvm/tools/clang/lib/Basic/Targets.cpp Sun Apr 17 20:44:02 2011 (r220754)
@@ -1133,7 +1133,8 @@ bool X86TargetInfo::setFeatureEnabled(ll
Features["avx"] = true;
} else {
if (Name == "mmx")
- Features["mmx"] = Features["sse"] = Features["sse2"] = Features["sse3"] =
+ Features["mmx"] = Features["3dnow"] = Features["3dnowa"] =
+ Features["sse"] = Features["sse2"] = Features["sse3"] =
Features["ssse3"] = Features["sse41"] = Features["sse42"] = false;
else if (Name == "sse")
Features["sse"] = Features["sse2"] = Features["sse3"] =
@@ -1146,12 +1147,10 @@ bool X86TargetInfo::setFeatureEnabled(ll
Features["sse42"] = false;
else if (Name == "ssse3")
Features["ssse3"] = Features["sse41"] = Features["sse42"] = false;
- else if (Name == "sse4")
+ else if (Name == "sse4" || Name == "sse4.1")
Features["sse41"] = Features["sse42"] = false;
else if (Name == "sse4.2")
Features["sse42"] = false;
- else if (Name == "sse4.1")
- Features["sse41"] = Features["sse42"] = false;
else if (Name == "3dnow")
Features["3dnow"] = Features["3dnowa"] = false;
else if (Name == "3dnowa")
More information about the svn-src-all
mailing list