]> granicus.if.org Git - clang/commitdiff
"-mavx" should also enable all other SSE levels.
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Thu, 18 Aug 2011 00:07:03 +0000 (00:07 +0000)
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Thu, 18 Aug 2011 00:07:03 +0000 (00:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137905 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Targets.cpp

index 7bed507def0d318c89b13ccf5f434e0033d2bc41..07c5bb85c870afad3b34abb1155e19f1468f55c1 100644 (file)
@@ -1284,7 +1284,8 @@ bool X86TargetInfo::setFeatureEnabled(llvm::StringMap<bool> &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;