diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2011-08-18 00:07:03 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2011-08-18 00:07:03 +0000 |
commit | 292772c16558cf52a8a01452e259b09d586804ec (patch) | |
tree | 23247ff81229af5a61560dfe748044d11ac113d6 /lib/Basic/Targets.cpp | |
parent | b0a58cd0d69d213b6cd1e6a7bb7319f4f270944b (diff) |
"-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
Diffstat (limited to 'lib/Basic/Targets.cpp')
-rw-r--r-- | lib/Basic/Targets.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<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; |