"-mavx" should also enable all other SSE levels.

llvm-svn: 137905
This commit is contained in:
Bruno Cardoso Lopes 2011-08-18 00:07:03 +00:00
parent 4c7269474e
commit bf9246d1f0
1 changed files with 2 additions and 1 deletions

View 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;