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 | bf9246d1f0215c2202417c0050d91cfbbf986e42 (patch) | |
| tree | 1d4e93bf323bdfe89f267382846aea6c9b5e8b3d /clang | |
| parent | 4c7269474efc9800f0898c57361a027fd376a644 (diff) | |
| download | bcm5719-llvm-bf9246d1f0215c2202417c0050d91cfbbf986e42.tar.gz bcm5719-llvm-bf9246d1f0215c2202417c0050d91cfbbf986e42.zip | |
"-mavx" should also enable all other SSE levels.
llvm-svn: 137905
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/lib/Basic/Targets.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp index 7bed507def0..07c5bb85c87 100644 --- a/clang/lib/Basic/Targets.cpp +++ b/clang/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; |

