From patchwork Tue Jul 4 10:24:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jianbo Liu X-Patchwork-Id: 106934 Delivered-To: patch@linaro.org Received: by 10.182.135.102 with SMTP id pr6csp854943obb; Tue, 4 Jul 2017 03:26:04 -0700 (PDT) X-Received: by 10.28.234.152 with SMTP id g24mr17247126wmi.43.1499163964613; Tue, 04 Jul 2017 03:26:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499163964; cv=none; d=google.com; s=arc-20160816; b=fDrkiu6aWGbdbjs56Cj2UtRWFoC7zo3z9L9Y0wM+GuYGRK6xrAobEyHNMku7PpaZQF R1Ywd2wa3pAriW0Qmgs8o1+REE98No/oqyZFN9g8SeYnAuqvxR+eG2H0buzisZE0PlYk 3EsctDsEBFkC7JkNvZytvn+PupowGnuBeCe1cv1spSPzH6+ebkav5KKl/odGX3l1TA1U OfdhLd8SqJL3PoGME+AoWcE4gEad4tCBZPyR1KNKNqyRmR/HNJvcJsM/H2SbVYZ0nIHs PFBTntEJrN3EpacCFDAK263FLEHR9TrjW+FPZxaz2cawCOKNr4a4s/rlIn2Tgj0jeyKN 7YxQ== 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=fyd+bDj2n9/oD8bDqxYiOAgAr2gNo345bcMsyiX83UBymPhThQ5NiAzC1jMaV8DNoY Bb8PvhNAdoOaGPJqXAHlnQUm/FGRPPzK1XNzRN3mSagBqmfSCTNxnQoiIGCtGNRP0vvo Xk4snde6mG5iLDE3S5mbsScvI67hXQFDDbc6KKstAHAjXHOv6DscIzkSlNQVPTa+bDm3 RMDa3cXbjZp1r0ISOfRO7pFUacYso/V6j2cM3gebv6fXhdeD6y04q1go8vNGcJTpSXH2 S83dospqX1AzzZvE9MxTtWjhEV9wrSQh74lqmpsFilwUWD6vYzQSVZ0DK30hTp/z0yEd E86A== 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 i4si13553662wrb.191.2017.07.04.03.26.04; Tue, 04 Jul 2017 03:26:04 -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 C933C7CAE; Tue, 4 Jul 2017 12:25:14 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.101.70]) by dpdk.org (Postfix) with ESMTP id 817DB568A for ; Tue, 4 Jul 2017 12:25:07 +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 009D71596; Tue, 4 Jul 2017 03:25:07 -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 2A47F3F581; Tue, 4 Jul 2017 03:25:06 -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: Tue, 4 Jul 2017 18:24:02 +0800 Message-Id: <1499163845-6674-6-git-send-email-jianbo.liu@linaro.org> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1499163845-6674-1-git-send-email-jianbo.liu@linaro.org> References: <1493709255-8887-1-git-send-email-jianbo.liu@linaro.org> <1499163845-6674-1-git-send-email-jianbo.liu@linaro.org> Subject: [dpdk-dev] [PATCH v5 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 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