From patchwork Wed Aug 18 06:41:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wu Jianhua X-Patchwork-Id: 29598 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6602:2a4a:0:0:0:0 with SMTP id k10csp257417iov; Tue, 17 Aug 2021 23:42:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxoSCXlBQWQPD+e+e1zghX/IIM0siYFBwLiztVgidnrlUU9lxv/5b/xupMh3IF25JO9UwBC X-Received: by 2002:a50:9fa3:: with SMTP id c32mr8542213edf.354.1629268952325; Tue, 17 Aug 2021 23:42:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629268952; cv=none; d=google.com; s=arc-20160816; b=By1IvdmQSZ8kWFHZ6TGNtZphr4Eg6S0LrrpBO7ZunYt6Pl5fSDcdb8EvIBKsYtQt4g yoEKutbbO+LJm4j3BhrpU93vsYzF79xgI+1cyFfTMOMwBoZhd52I/t9axsnx0/2RcS6e QUpyM/FhYw9+jaUHr5yaasNNAeAYLJzAJkTZass1GBS/+s056ARuoLbwtQYKy7vx9XJo OGZFn7oGRxg0XcGT0Z4HGpgqRhl7JDGuChb9rRYB8ZPO7SWEbpvxCWy7Yl/rEoLtn+Az V07uW6WJNeceP8Gts2cf37z2ePu6STO7SYYT4kFZ/FKGHS+ZnfsRtIq0Efxt+9fPkbJM A76Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:message-id:date:to:from :delivered-to; bh=5W9V5hHWM+ygqHg78+upVrNIv6QXwne91Sbzaqgo2+0=; b=XTlTtuUKxTY1Z11MWizX+Fk2nmHEY8uEqIhOsh6zZeM5y4Fbgjv5LzOU1CaxiGmIxj xn6VkaO2H0AgqL+aQcYmabAAk98QAHTIFLZufNjTpnltpM1WzPR42E2GU7rym9aD06fe 4BvBLa9CUP+3eD97fPfl/24JzJ0jTV6g3J3Z2xkGsbG5NqmqVaZwd6eesaoqYLcZpJaa Vjyc1hDyDocT1rFUJOYJ+kUJnyAA8a4auGVqjNfPCnvx0pzoJsiLh5ArA8og0Frugrt5 lnYtz2apHKcevOpfd3c2ll/Ev5+MfsYUUHWli8pJZN4spNZv5gLagQYRbHdMAuND7Uat 8jJw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id b23si5416863edv.199.2021.08.17.23.42.31; Tue, 17 Aug 2021 23:42:31 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 51D6A6800D4; Wed, 18 Aug 2021 09:42:29 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A11EF6800D4 for ; Wed, 18 Aug 2021 09:42:21 +0300 (EEST) X-IronPort-AV: E=McAfee;i="6200,9189,10079"; a="301847264" X-IronPort-AV: E=Sophos;i="5.84,330,1620716400"; d="scan'208";a="301847264" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Aug 2021 23:42:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,330,1620716400"; d="scan'208";a="520777645" Received: from icx-perfkit-ubuntu.sh.intel.com ([10.239.83.146]) by FMSMGA003.fm.intel.com with ESMTP; 17 Aug 2021 23:42:17 -0700 From: Wu Jianhua To: ffmpeg-devel@ffmpeg.org Date: Wed, 18 Aug 2021 06:41:30 +0000 Message-Id: <20210818064131.1706832-1-jianhua.wu@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 1/2] configure: set IceLake-AVX512 as the minimum baseline X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Wu Jianhua Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: FLcVMyuxIyLJ Based on IceLake-AVX512 and newer architecture, a broad range of the subsets of AVX512 could be supported. Signed-off-by: Wu Jianhua --- configure | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 ;; esac - - 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"