From 69ede516c7ff97c208d4a2378bb56ccaa242bbc1 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Thu, 28 May 2020 08:28:12 -0700 Subject: [PATCH] [X86] Add 'avx512vp2intersect' to getHostCPUFeatures. --- llvm/lib/Support/Host.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/lib/Support/Host.cpp b/llvm/lib/Support/Host.cpp index da68464..d80c722 100644 --- a/llvm/lib/Support/Host.cpp +++ b/llvm/lib/Support/Host.cpp @@ -1494,6 +1494,8 @@ bool sys::getHostCPUFeatures(StringMap &Features) { Features["movdir64b"] = HasLeaf7 && ((ECX >> 28) & 1); Features["enqcmd"] = HasLeaf7 && ((ECX >> 29) & 1); + Features["avx512vp2intersect"] = + HasLeaf7 && ((EDX >> 8) & 1) && HasAVX512Save; Features["serialize"] = HasLeaf7 && ((EDX >> 14) & 1); Features["tsxldtrk"] = HasLeaf7 && ((EDX >> 16) & 1); // There are two CPUID leafs which information associated with the pconfig -- 2.7.4