summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorCian Ferriter <cian.ferriter@intel.com>2022-08-11 10:36:38 +0000
committerIan Stokes <ian.stokes@intel.com>2022-08-12 09:52:20 +0100
commitac1332216eb3a1857b942457e1b44a22512b092d (patch)
tree5e98605fdc92d139bf0c406127cde10259d1d4cb /acinclude.m4
parent39364e11dd2cf722a037de25705b352272173f21 (diff)
downloadopenvswitch-ac1332216eb3a1857b942457e1b44a22512b092d.tar.gz
acinclude: Improve vpopcntdq build check.
Support for vpopcntdq instruction generation by the compiler was already checked in the OVS_CHECK_AVX512 AC function by checking if the compiler accepted the -mavx512vpopcntdq option. However, there can be situations where the compiler supports vpopcntdq generation but the assembler doesn't support the instruction. The below OVS_CHECK_AVX512VPOPCNTDQ AC function will check for both compiler and assembler support for the vpopcntdq instruction. Fixes: cb1c64007734 ("acinclude: Add seperate checks for AVX512 ISA.") Reported-by: Ian Stokes <ian.stokes@intel.com> Signed-off-by: Cian Ferriter <cian.ferriter@intel.com> Acked-by: Sunil Pai G <sunil.pai.g@intel.com> Signed-off-by: Ian Stokes <ian.stokes@intel.com>
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index d9a33f583..30b82aae2 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -101,7 +101,7 @@ AC_DEFUN([OVS_CHECK_AVX512], [
OVS_CONDITIONAL_CC_OPTION_DEFINE([-mavx512bw], [HAVE_AVX512BW])
OVS_CONDITIONAL_CC_OPTION_DEFINE([-mavx512vl], [HAVE_AVX512VL])
OVS_CONDITIONAL_CC_OPTION_DEFINE([-mavx512vbmi], [HAVE_AVX512VBMI])
- OVS_CONDITIONAL_CC_OPTION_DEFINE([-mavx512vpopcntdq], [HAVE_AVX512VPOPCNTDQ])
+ OVS_CHECK_AVX512VPOPCNTDQ
])
dnl OVS_ENABLE_WERROR