[llvm] r304086 - [X86] Fixing VPOPCNTDQ feature set lookup.
Oren Ben Simhon via llvm-commits
llvm-commits at lists.llvm.org
Sun May 28 04:26:12 PDT 2017
Author: orenb
Date: Sun May 28 06:26:11 2017
New Revision: 304086
URL: http://llvm.org/viewvc/llvm-project?rev=304086&view=rev
Log:
[X86] Fixing VPOPCNTDQ feature set lookup.
Modified:
llvm/trunk/lib/Support/Host.cpp
Modified: llvm/trunk/lib/Support/Host.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Host.cpp?rev=304086&r1=304085&r2=304086&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Host.cpp (original)
+++ llvm/trunk/lib/Support/Host.cpp Sun May 28 06:26:11 2017
@@ -1390,7 +1390,6 @@ bool sys::getHostCPUFeatures(StringMap<b
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<b
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);
More information about the llvm-commits
mailing list