From patchwork Mon May 15 03:34:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jianbo Liu X-Patchwork-Id: 99765 Delivered-To: patch@linaro.org Received: by 10.182.142.97 with SMTP id rv1csp1240516obb; Sun, 14 May 2017 20:36:12 -0700 (PDT) X-Received: by 10.223.173.23 with SMTP id p23mr2803258wrc.117.1494819372739; Sun, 14 May 2017 20:36:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494819372; cv=none; d=google.com; s=arc-20160816; b=ptwnfaCI0Tttb0HCWnYietWz6JxyDq/J6F9iAWzVQWCxXKaaU1wAR1zpLyVnRlrpDm 7YutMfpC1cLCNika716oRM0yeeVAgJEvlzhCAA5KB79KDzKUUD5wVqFLVM99UJWDx6OS 2TR4Tf8FwLQC+031LsBt5q9phBxlzdVG6ZcGpanDvstbYAdpLrKBH6FjMLVaxNTu3XPG x1Tz7vWXFBAXZ4EBOzLMXT1jm4BbMIQ0Skz7G/GrXy5pMBixmUAJyZHsXVXRiqR4km1x sLnDg2E5GCrga1GTDM5g/V34Uw24/7ITtO9s7IsAlrRCLLFwfr67A/3UbrN/MRKbKSKC OtSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:cc:to:from:arc-authentication-results; bh=lz3mXN4QIdWZR0nlt70UBNEH9Yb5Ey9WBDI+L0drkro=; b=rOel06jr9YrlQ8W5aQBU8hh411+0FwPxIQDTej1nyYlZMW3RKbOsizgImpDp7zPAcv sFxHkL8BJRCEwZ68dGaMdG6lEpYwPuXawhxtwVAM21kEpIUpiO53KOC2On7e6fynv1/3 /wXzOJ0T9L6rE7e2yMlTT5uWrndJFNt8ROBzeUyw+fyQldPZeZHafxxra9WOgE7GM+Ad Y6CHmHNS0m1p5K5BECBILEqXNysThXtPqodNc4QTDiEbWGhDOt/7YKCJstNAxGLqrWFA r+Pyi/Uf71b0kR5hAWBMCiksqHbLHBRWSqhS3YtE+MCaR42MzZYvoqbINSpOJsTQcmI4 7RiQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 2001:4b98:dc0:41:216:3eff:fe72:dd13 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from dpdk.org ([2001:4b98:dc0:41:216:3eff:fe72:dd13]) by mx.google.com with ESMTP id i1si9515166wmd.59.2017.05.14.20.36.12; Sun, 14 May 2017 20:36:12 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 2001:4b98:dc0:41:216:3eff:fe72:dd13 as permitted sender) client-ip=2001:4b98:dc0:41:216:3eff:fe72:dd13; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 2001:4b98:dc0:41:216:3eff:fe72:dd13 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 15745692F; Mon, 15 May 2017 05:35:33 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.101.70]) by dpdk.org (Postfix) with ESMTP id 0D71B548B for ; Mon, 15 May 2017 05:35:19 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 705B780D; Sun, 14 May 2017 20:35:18 -0700 (PDT) Received: from localhost.localdomain.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 9B8ED3F23B; Sun, 14 May 2017 20:35:17 -0700 (PDT) From: Jianbo Liu To: dev@dpdk.org, tomasz.kantecki@intel.com, jerin.jacob@caviumnetworks.com, ashwin.sekhar@caviumnetworks.com Cc: Jianbo Liu Date: Mon, 15 May 2017 11:34:53 +0800 Message-Id: <1494819296-23049-6-git-send-email-jianbo.liu@linaro.org> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1494819296-23049-1-git-send-email-jianbo.liu@linaro.org> References: <1493709255-8887-1-git-send-email-jianbo.liu@linaro.org> <1494819296-23049-1-git-send-email-jianbo.liu@linaro.org> Subject: [dpdk-dev] [PATCH v4 5/8] arch/arm: add vcopyq_laneq_u32 for old version of gcc 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" Implement vcopyq_laneq_u32 if gcc version is lower than 7. Signed-off-by: Jianbo Liu --- lib/librte_eal/common/include/arch/arm/rte_vect.h | 9 +++++++++ 1 file changed, 9 insertions(+) -- 1.8.3.1 Acked-by: Jerin Jacob diff --git a/lib/librte_eal/common/include/arch/arm/rte_vect.h b/lib/librte_eal/common/include/arch/arm/rte_vect.h index 4107c99..d9fb4d0 100644 --- a/lib/librte_eal/common/include/arch/arm/rte_vect.h +++ b/lib/librte_eal/common/include/arch/arm/rte_vect.h @@ -78,6 +78,15 @@ } #endif +#if defined(RTE_TOOLCHAIN_GCC) && (GCC_VERSION < 70000) +static inline uint32x4_t +vcopyq_laneq_u32(uint32x4_t a, const int lane_a, + uint32x4_t b, const int lane_b) +{ + return vsetq_lane_u32(vgetq_lane_u32(b, lane_b), a, lane_a); +} +#endif + #ifdef __cplusplus } #endif