From: Bruno Cardoso Lopes Date: Thu, 18 Aug 2011 00:07:03 +0000 (+0000) Subject: "-mavx" should also enable all other SSE levels. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=292772c16558cf52a8a01452e259b09d586804ec;p=clang "-mavx" should also enable all other SSE levels. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137905 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index 7bed507def..07c5bb85c8 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -1284,7 +1284,8 @@ bool X86TargetInfo::setFeatureEnabled(llvm::StringMap &Features, else if (Name == "aes") Features["aes"] = true; else if (Name == "avx") - Features["avx"] = true; + Features["avx"] = Features["sse"] = Features["sse2"] = Features["sse3"] = + Features["ssse3"] = Features["sse41"] = Features["sse42"] = true; } else { if (Name == "mmx") Features["mmx"] = Features["3dnow"] = Features["3dnowa"] = false;