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 | 5c65e4f8e02ff4196309b4c490f2ea2a56a0103b (patch) | |
tree | 55a0ef57cf352055c6d09abf02c82521da041309 /lib/Basic/Targets.cpp | |
parent | 448f68d7ef0aa1b8f3016af00ce4851c8526805f (diff) |
Enable POPCNT and LZCNT with sse4a.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147848 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/Targets.cpp')
-rw-r--r-- | lib/Basic/Targets.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index a2674b8e11..29df6b44e9 100644 --- a/lib/Basic/Targets.cpp +++ b/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") |