From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 0A72C8E86 for ; Fri, 23 Oct 2015 16:17:48 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP; 23 Oct 2015 07:17:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,186,1444719600"; d="scan'208";a="833466325" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga002.jf.intel.com with ESMTP; 23 Oct 2015 07:17:44 -0700 Received: from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com [10.237.217.46]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id t9NEHgan002505; Fri, 23 Oct 2015 15:17:42 +0100 Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id t9NEHgJc017779; Fri, 23 Oct 2015 15:17:42 +0100 Received: (from dhunt5@localhost) by sivswdev02.ir.intel.com with id t9NEHgrf017775; Fri, 23 Oct 2015 15:17:42 +0100 From: David Hunt To: dev@dpdk.org Date: Fri, 23 Oct 2015 15:17:13 +0100 Message-Id: <1445609833-17649-12-git-send-email-david.hunt@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1445609833-17649-1-git-send-email-david.hunt@intel.com> References: <1445609833-17649-1-git-send-email-david.hunt@intel.com> Cc: Benjamin Boren Subject: [dpdk-dev] [PATCH 11/11] app: add armv8 cpuflags check to test_cpuflags application X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Oct 2015 14:17:49 -0000 From: Benjamin Boren Signed-off-by: Benjamin Boren Signed-off-by: David Hunt --- app/test/test_cpuflags.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/app/test/test_cpuflags.c b/app/test/test_cpuflags.c index 5b92061..a498511 100644 --- a/app/test/test_cpuflags.c +++ b/app/test/test_cpuflags.c @@ -115,6 +115,23 @@ test_cpuflags(void) CHECK_FOR_FLAG(RTE_CPUFLAG_ICACHE_SNOOP); #endif +#ifdef RTE_ARCH_ARM64 + printf("Checking for Floating Point:\t\t"); + CHECK_FOR_FLAG(RTE_CPUFLAG_FP); + + printf("Checking for Advanced SIMD (Neon):\t\t"); + CHECK_FOR_FLAG(RTE_CPUFLAG_ASIMD); + + printf("Checking for Event Stream:\t\t"); + CHECK_FOR_FLAG(RTE_CPUFLAG_EVTSTRM); + + printf("Checking for ARM32 mode:\t\t"); + CHECK_FOR_FLAG(RTE_CPUFLAG_AARCH32); + + printf("Checking for ARM64 mode:\t\t"); + CHECK_FOR_FLAG(RTE_CPUFLAG_AARCH64); +#endif + #if defined(RTE_ARCH_X86_64) || defined(RTE_ARCH_I686) printf("Check for SSE:\t\t"); CHECK_FOR_FLAG(RTE_CPUFLAG_SSE); -- 2.1.4