From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id E68F0A04AF; Wed, 19 Aug 2020 12:57:13 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A2CFE1C0B2; Wed, 19 Aug 2020 12:57:00 +0200 (CEST) Received: from mail.chinasoftinc.com (unknown [114.113.233.8]) by dpdk.org (Postfix) with ESMTP id D1DD11C0B1 for ; Wed, 19 Aug 2020 12:56:58 +0200 (CEST) Received: from localhost.localdomain (65.49.108.226) by INCCAS001.ito.icss (10.168.0.60) with Microsoft SMTP Server id 14.3.487.0; Wed, 19 Aug 2020 18:56:57 +0800 From: "Wei Hu (Xavier)" To: CC: , , , , Date: Wed, 19 Aug 2020 18:56:38 +0800 Message-ID: <20200819105638.52010-3-huwei013@chinasoftinc.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200819105638.52010-1-huwei013@chinasoftinc.com> References: <20200817124703.58157-1-huwei013@chinasoftinc.com> <20200819105638.52010-1-huwei013@chinasoftinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [65.49.108.226] Subject: [dpdk-dev] [PATCH v6 2/2] test/cpuflag: add new flags for ARM64 platform X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: "Wei Hu (Xavier)" This patch adds new flags into the test_cpuflags() functions for ARM64 platform, such as RTE_CPUFLAG_SVE, etc. Signed-off-by: Wei Hu (Xavier) Reviewed-by: Ruifeng Wang --- v5 -> v6: update '\t' for alignment. v4 -> v5: Use double '\t' for better alignment. v4: Initial patch. --- app/test/test_cpuflags.c | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/app/test/test_cpuflags.c b/app/test/test_cpuflags.c index 06718631f..0b389d091 100644 --- a/app/test/test_cpuflags.c +++ b/app/test/test_cpuflags.c @@ -118,6 +118,45 @@ test_cpuflags(void) printf("Check for ATOMICS:\t"); CHECK_FOR_FLAG(RTE_CPUFLAG_ATOMICS); + + printf("Check for SVE:\t\t"); + CHECK_FOR_FLAG(RTE_CPUFLAG_SVE); + + printf("Check for SVE2:\t\t"); + CHECK_FOR_FLAG(RTE_CPUFLAG_SVE2); + + printf("Check for SVEAES:\t"); + CHECK_FOR_FLAG(RTE_CPUFLAG_SVEAES); + + printf("Check for SVEPMULL:\t"); + CHECK_FOR_FLAG(RTE_CPUFLAG_SVEPMULL); + + printf("Check for SVEBITPERM:\t"); + CHECK_FOR_FLAG(RTE_CPUFLAG_SVEBITPERM); + + printf("Check for SVESHA3:\t"); + CHECK_FOR_FLAG(RTE_CPUFLAG_SVESHA3); + + printf("Check for SVESM4:\t"); + CHECK_FOR_FLAG(RTE_CPUFLAG_SVESM4); + + printf("Check for FLAGM2:\t"); + CHECK_FOR_FLAG(RTE_CPUFLAG_FLAGM2); + + printf("Check for FRINT:\t"); + CHECK_FOR_FLAG(RTE_CPUFLAG_FRINT); + + printf("Check for SVEI8MM:\t"); + CHECK_FOR_FLAG(RTE_CPUFLAG_SVEI8MM); + + printf("Check for SVEF32MM:\t"); + CHECK_FOR_FLAG(RTE_CPUFLAG_SVEF32MM); + + printf("Check for SVEF64MM:\t"); + CHECK_FOR_FLAG(RTE_CPUFLAG_SVEF64MM); + + printf("Check for SVEBF16:\t"); + CHECK_FOR_FLAG(RTE_CPUFLAG_SVEBF16); #endif #if defined(RTE_ARCH_X86_64) || defined(RTE_ARCH_I686) -- 2.27.0