From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id BF281A0C4E for ; Thu, 17 Jun 2021 08:57:20 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A861A410DC; Thu, 17 Jun 2021 08:57:20 +0200 (CEST) Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by mails.dpdk.org (Postfix) with ESMTP id 3730840150; Thu, 17 Jun 2021 08:57:18 +0200 (CEST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 830FD16D1; Thu, 17 Jun 2021 02:57:16 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 17 Jun 2021 02:57:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=fm1; bh= 2fwIngzfilyLCf1WUF9Bt8TQgPBkAneNw36IDbqwvZw=; b=DN/gqeS+cuhk6Ber o84Aag0SZ5XC6B6HEZgfRRn/lWptvYLMoSuE2h38L4jUY0ofT3NZbt7aLy7r9csd WUhbBuO7WUvkdmTOuAzoMbnDrm2vLGQbYDRZ4qkKiwM7jhTFSuVOV6Llw1c7M4Ik dkclktGULtKslFGhTBYHbW5Veso/2w7qsgjAzq1QpZ2qLencRW1+K/YmyGzAR3rN yZCrvHq0/vOoS6cfxNhqFKlC6VdR84ZxO98m+SDfz9I7P0FkuzHd7ejPG7jbi3+4 tKsKSNuRR4wSQUzBSCQcoNRwSYQhA3Z8ChR2ZHErFPVi8HMJACTyhSo4GVQnUf8G eHdf2g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=2fwIngzfilyLCf1WUF9Bt8TQgPBkAneNw36IDbqwv Zw=; b=gB4a0zdhq38YAD6p86ghc3Jv+Hdn0otRw6oZo5W7QIReuTOJx/WjQIDwA fvLxZnXwnFVFfGdgCCexWozoy3Cqc5zB5nBQGKxpDg2Fan9Pjp4vOw0yQ9+Dzsx7 DAO6HGZUaxJdFQlxhqsGNGP4jl36GAHtA0ZUPHWfg3/2luVDgAJIYbBP+MHgT7Q6 OahpHW1nlBmoIQ7KYLGRPwXBLUTIozGMzXEewXq4+dPgNFgcHYt/Fw28NrRLVnK6 1tbygw1V59M/H6wC7QWC2mZKnFDXjjH/gtPdVHQXwLaF4SigbiIN4aC2S++dxkJc aHB3jZwvxGwpYbI7kA/gxbZhhxh2g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeeftddguddtlecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffufffkjghfggfgtgesthhqredttddtjeenucfhrhhomhepvfhhohhm rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc ggtffrrghtthgvrhhnpeekteehtdeivefhieegjeelgedufeejheekkeetueevieeuvdev uedtjeevheevteenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 17 Jun 2021 02:57:14 -0400 (EDT) From: Thomas Monjalon To: Konstantin Ananyev Cc: dev@dpdk.org, liangma@liangbit.com, stable@dpdk.org Date: Thu, 17 Jun 2021 08:57:11 +0200 Message-ID: <3982430.gzz5nf9Ucb@thomas> In-Reply-To: <20210521144207.13802-1-konstantin.ananyev@intel.com> References: <20210521144207.13802-1-konstantin.ananyev@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH] acl: fix build with GCC 6.3 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" 21/05/2021 16:42, Konstantin Ananyev: > --buildtype=3Ddebug with gcc 6.3 produces the following error: >=20 > ../lib/librte_acl/acl_run_avx512_common.h: In function > =E2=80=98resolve_match_idx_avx512x16=E2=80=99: > ../lib/librte_acl/acl_run_avx512x16.h:33:18: error: > the last argument must be an 8-bit immediate > ^ > ../lib/librte_acl/acl_run_avx512_common.h:373:9: note: > in expansion of macro =E2=80=98_M_I_=E2=80=99 > return _M_I_(slli_epi32)(mi, match_log); > ^~~~~ >=20 > Seems like gcc-6.3 complains about the following construct: >=20 > static const uint32_t match_log =3D 5; > ... > _mm512_slli_epi32(mi, match_log); >=20 > It can't substitute constant variable 'match_log' with its actual value. > The fix replaces constant variable with its immediate value. >=20 > Bugzilla ID: 717 > Fixes: b64c2295f7fc ("acl: add 256-bit AVX512 classify method") > Fixes: 45da22e42ec3 ("acl: add 512-bit AVX512 classify method") > Cc: stable@dpdk.org >=20 > Reported-by: Liang Ma > Signed-off-by: Konstantin Ananyev Applied, thanks