diff options
author | dim <dim@FreeBSD.org> | 2011-04-17 20:44:02 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2011-04-17 20:44:02 +0000 |
commit | 34f2672a905032e05414032bd2669880fe72ddb4 (patch) | |
tree | a6f310ca73727b54a93808078e52c5b795886cce /contrib/llvm/tools/clang/lib | |
parent | 090e4af4fe8335408f7f170bc9c98a43659e9d38 (diff) | |
download | FreeBSD-src-34f2672a905032e05414032bd2669880fe72ddb4.zip FreeBSD-src-34f2672a905032e05414032bd2669880fe72ddb4.tar.gz |
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
Diffstat (limited to 'contrib/llvm/tools/clang/lib')
-rw-r--r-- | contrib/llvm/tools/clang/lib/Basic/Targets.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/contrib/llvm/tools/clang/lib/Basic/Targets.cpp b/contrib/llvm/tools/clang/lib/Basic/Targets.cpp index 55321f24..08a9208 100644 --- a/contrib/llvm/tools/clang/lib/Basic/Targets.cpp +++ b/contrib/llvm/tools/clang/lib/Basic/Targets.cpp @@ -1133,7 +1133,8 @@ bool X86TargetInfo::setFeatureEnabled(llvm::StringMap<bool> &Features, 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(llvm::StringMap<bool> &Features, 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") |