diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-01-10 11:50:13 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-01-10 11:50:13 +0000 |
commit | edbc59a27ed9d123c89198009fc09047bc5b0dff (patch) | |
tree | 85a20352582019f9c27d31eab619783c6fe8feed /clang/lib/Basic/Targets.cpp | |
parent | e3b442d20c0ae8eeb77be056bb731f5a9eb59aa6 (diff) | |
download | bcm5719-llvm-edbc59a27ed9d123c89198009fc09047bc5b0dff.tar.gz bcm5719-llvm-edbc59a27ed9d123c89198009fc09047bc5b0dff.zip |
Enable POPCNT and LZCNT with sse4a.
llvm-svn: 147848
Diffstat (limited to 'clang/lib/Basic/Targets.cpp')
-rw-r--r-- | clang/lib/Basic/Targets.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp index a2674b8e11b..29df6b44e94 100644 --- a/clang/lib/Basic/Targets.cpp +++ b/clang/lib/Basic/Targets.cpp @@ -1703,7 +1703,7 @@ bool X86TargetInfo::setFeatureEnabled(llvm::StringMap<bool> &Features, Features["popcnt"] = Features["avx"] = Features["fma4"] = true; else if (Name == "sse4a") Features["mmx"] = Features["sse"] = Features["sse2"] = Features["sse3"] = - Features["sse4a"] = true; + Features["lzcnt"] = Features["popcnt"] = Features["sse4a"] = true; else if (Name == "lzcnt") Features["lzcnt"] = true; else if (Name == "bmi") |