diff mbox series

[FFmpeg-devel,v2,1/2] configure: set IceLake-AVX512 as the minimum baseline

Message ID 20210818064131.1706832-1-jianhua.wu@intel.com
State New
Headers show
Series [FFmpeg-devel,v2,1/2] configure: set IceLake-AVX512 as the minimum baseline
Related show


Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Wu Jianhua Aug. 18, 2021, 6:41 a.m. UTC
Based on IceLake-AVX512 and newer architecture, a broad
range of the subsets of AVX512 could be supported.

Signed-off-by: Wu Jianhua <jianhua.wu@intel.com>
 configure | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff mbox series


diff --git a/configure b/configure
index 94b30afe74..f282e9997a 100755
--- a/configure
+++ b/configure
@@ -6056,8 +6056,9 @@  EOF
         case "$objformat" in
             elf*) enabled debug && append X86ASMFLAGS $x86asm_debug ;;
-        enabled avx512 && check_x86asm avx512_external "vmovdqa32 [eax]{k1}{z}, zmm0"
+        # Only IceLake and newer architectures could enable AVX512
+        enabled avx512 && check_x86asm avx512_external "vpdpwssds zmm31{k1}{z}, zmm29, zmm28"
         enabled avx2   && check_x86asm avx2_external   "vextracti128 xmm0, ymm0, 0"
         enabled xop    && check_x86asm xop_external    "vpmacsdd xmm0, xmm1, xmm2, xmm3"
         enabled fma4   && check_x86asm fma4_external   "vfmaddps ymm0, ymm1, ymm2, ymm3"