From: Michael J. Spencer Date: Sun, 17 Apr 2011 19:22:03 +0000 (+0000) Subject: Make -mno-mmx imply -mno-3dnow. This is what gcc does, and it makes sense. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b24bac98aa90f1076f348b05b18dc34d6d144521;p=clang Make -mno-mmx imply -mno-3dnow. This is what gcc does, and it makes sense. Also, fold the sse4 and sse4.1 cases together. Patch by Alexander Best! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129665 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index 0dcb959039..aa32cbd28f 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -1146,7 +1146,8 @@ bool X86TargetInfo::setFeatureEnabled(llvm::StringMap &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"] = @@ -1159,12 +1160,10 @@ bool X86TargetInfo::setFeatureEnabled(llvm::StringMap &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")