summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Host.cpp
diff options
context:
space:
mode:
authorOren Ben Simhon <oren.ben.simhon@intel.com>2017-05-25 13:45:23 +0000
committerOren Ben Simhon <oren.ben.simhon@intel.com>2017-05-25 13:45:23 +0000
commit7bf27f03f2cbd97bfff141efb34c6dc0db693f2f (patch)
tree0bd1ec9dc967e6accad887950da6c7d3fd160ee7 /llvm/lib/Support/Host.cpp
parent140c1fb9ecf8538168c41679bdc264637da58dbb (diff)
downloadbcm5719-llvm-7bf27f03f2cbd97bfff141efb34c6dc0db693f2f.tar.gz
bcm5719-llvm-7bf27f03f2cbd97bfff141efb34c6dc0db693f2f.zip
[X86] Adding vpopcntd and vpopcntq instructions
AVX512_VPOPCNTDQ is a new feature set that was published by Intel. The patch represents the LLVM side of the addition of two new intrinsic based instructions (vpopcntd and vpopcntq). Differential Revision: https://reviews.llvm.org/D33169 llvm-svn: 303858
Diffstat (limited to 'llvm/lib/Support/Host.cpp')
-rw-r--r--llvm/lib/Support/Host.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Support/Host.cpp b/llvm/lib/Support/Host.cpp
index 6a0b64fb884..8ee1094306c 100644
--- a/llvm/lib/Support/Host.cpp
+++ b/llvm/lib/Support/Host.cpp
@@ -1390,6 +1390,7 @@ 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;
OpenPOWER on IntegriCloud