diff options
| author | Oren Ben Simhon <oren.ben.simhon@intel.com> | 2017-05-28 11:26:11 +0000 |
|---|---|---|
| committer | Oren Ben Simhon <oren.ben.simhon@intel.com> | 2017-05-28 11:26:11 +0000 |
| commit | f3aab2fa335e5a6d1dccdcf83db4dfc617b75f63 (patch) | |
| tree | 94025409ac4a39696ddaf72b45e3bb8ef7c3b651 /llvm/lib/Support | |
| parent | fd934c29d31f924e763dcc99c424793f5188ec51 (diff) | |
| download | bcm5719-llvm-f3aab2fa335e5a6d1dccdcf83db4dfc617b75f63.tar.gz bcm5719-llvm-f3aab2fa335e5a6d1dccdcf83db4dfc617b75f63.zip | |
[X86] Fixing VPOPCNTDQ feature set lookup.
llvm-svn: 304086
Diffstat (limited to 'llvm/lib/Support')
| -rw-r--r-- | llvm/lib/Support/Host.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Host.cpp b/llvm/lib/Support/Host.cpp index 8ee1094306c..234f7439a54 100644 --- a/llvm/lib/Support/Host.cpp +++ b/llvm/lib/Support/Host.cpp @@ -1390,7 +1390,6 @@ bool sys::getHostCPUFeatures(StringMap<bool> &Features) { Features["sha"] = HasLeaf7 && ((EBX >> 29) & 1); // AVX512 is only supported if the OS supports the context save for it. - Features["avx512vpopcntdq"] = HasLeaf7 && ((EBX >> 14) & 1) && HasAVX512Save; Features["avx512f"] = HasLeaf7 && ((EBX >> 16) & 1) && HasAVX512Save; Features["avx512dq"] = HasLeaf7 && ((EBX >> 17) & 1) && HasAVX512Save; Features["avx512ifma"] = HasLeaf7 && ((EBX >> 21) & 1) && HasAVX512Save; @@ -1402,6 +1401,7 @@ bool sys::getHostCPUFeatures(StringMap<bool> &Features) { Features["prefetchwt1"] = HasLeaf7 && (ECX & 1); Features["avx512vbmi"] = HasLeaf7 && ((ECX >> 1) & 1) && HasAVX512Save; + Features["avx512vpopcntdq"] = HasLeaf7 && ((ECX >> 14) & 1) && HasAVX512Save; // Enable protection keys Features["pku"] = HasLeaf7 && ((ECX >> 4) & 1); |

