From patchwork Mon Nov 7 13:55:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tamar Christina X-Patchwork-Id: 81096 Delivered-To: patch@linaro.org Received: by 10.182.113.165 with SMTP id iz5csp1121897obb; Mon, 7 Nov 2016 05:55:48 -0800 (PST) X-Received: by 10.98.75.157 with SMTP id d29mr13696958pfj.14.1478526948552; Mon, 07 Nov 2016 05:55:48 -0800 (PST) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id t3si31435315pfg.143.2016.11.07.05.55.48 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Nov 2016 05:55:48 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-return-440618-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org; spf=pass (google.com: domain of gcc-patches-return-440618-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-440618-patch=linaro.org@gcc.gnu.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:content-type:mime-version; q=dns; s=default; b=rJ6ZzmWRpfqhXM5q79fSlYa2FXN1YPUiaW2ey/RKA8oSX0Sm3x LTbP3T0MQ99eGeemEDebeNGlDfvEBJsalCtBA15orYNVuyvy1s5z6U996m8XwSoB UYEWJ9FkHidotUZstbVliIShZyp/7/+ZdwFKIt4wOtMCSJdInsyk4Ozyo= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:content-type:mime-version; s= default; bh=Qukma/9tYACxXcTkel+LI8bY8Lk=; b=WGua0gMKBphLXJ3JbFim 3+j9yiGaSm1/ypJl5GsussPKfhCoSxKoI8jdN6IjO9/sR9Fo7h+lnO2a1F20/y1x S8XuaRarODm8FruZH47o1k5Rgdw+wd09E3GHuehmfxSM8oKcaYFXVXB8ibzVh+nU c9O2BWb89XU9qi0yA0eTcQA= Received: (qmail 92003 invoked by alias); 7 Nov 2016 13:55:32 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 91973 invoked by uid 89); 7 Nov 2016 13:55:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 spammy=H*c:sk:VIHPRHH, H*c:HHH X-HELO: EUR01-HE1-obe.outbound.protection.outlook.com Received: from mail-he1eur01on0071.outbound.protection.outlook.com (HELO EUR01-HE1-obe.outbound.protection.outlook.com) (104.47.0.71) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 07 Nov 2016 13:55:22 +0000 Received: from VI1PR0801MB2031.eurprd08.prod.outlook.com (10.173.74.140) by AM4PR0802MB2337.eurprd08.prod.outlook.com (10.172.218.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.16; Mon, 7 Nov 2016 13:55:18 +0000 Received: from VI1PR0801MB2031.eurprd08.prod.outlook.com ([10.173.74.140]) by VI1PR0801MB2031.eurprd08.prod.outlook.com ([10.173.74.140]) with mapi id 15.01.0707.006; Mon, 7 Nov 2016 13:55:18 +0000 From: Tamar Christina To: GCC Patches , Kyrylo Tkachov , Richard Earnshaw , "nickc@redhat.com" , "christophe.lyon@st.com" CC: nd Subject: [ARM][GCC][PATCHv2 2/3] Add missing Poly64_t intrinsics to GCC Date: Mon, 7 Nov 2016 13:55:18 +0000 Message-ID: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Tamar.Christina@arm.com; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-office365-filtering-correlation-id: 9253b7c3-cb16-4d31-3225-08d40715b567 x-microsoft-exchange-diagnostics: 1; AM4PR0802MB2337; 7:gTWp0ErZFGXXTXe+7/T/rWDQom+56Oa8Y1leETLEdjYODNce5ktWaSDlZWa3laNsn6a5fXySRYdQeijeJSEPQa8+48O5JEb4HMZxUFoiaVONxVvQkUz+hxbmG+xcolJSCYxYb7ysbkY/A709wsgADFqCCDniTH87WsBGczp18TWBY75CmcyA5O+JHdd54uhP6XmlwZzmz0srgfLwSwAN9gi8kwP2t7njhmEg6f6Fwb4pDfD3GKT5ivp7LPXurNdtF0+mJfdlZg4SZfOtfLHeNljaQhtThOnVCa7NfOCLPH9czqz7taXSKWMBujOvjhaJd0DIpg0VXarHJQNv/N1Ns08u1rnij33lh2GAFhTy4/Y= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:AM4PR0802MB2337; x-ld-processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr nodisclaimer: True x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(180628864354917); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(102415321)(6040176)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026); SRVR:AM4PR0802MB2337; BCL:0; PCL:0; RULEID:; SRVR:AM4PR0802MB2337; x-forefront-prvs: 0119DC3B5E x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(7916002)(189002)(53754006)(199003)(377424004)(5660300001)(33656002)(102836003)(4326007)(97736004)(54356999)(2906002)(5001770100001)(66066001)(81166006)(92566002)(9686002)(74316002)(87936001)(10400500002)(77096005)(189998001)(122556002)(8676002)(3660700001)(305945005)(99936001)(3280700002)(11100500001)(2501003)(229853001)(7846002)(7736002)(586003)(101416001)(105586002)(8936002)(2900100001)(50986999)(81156014)(3846002)(106356001)(6116002)(19580395003)(106116001)(68736007)(19580405001)(76576001)(7696004)(2201001)(5002640100001)(86362001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR0802MB2337; H:VI1PR0801MB2031.eurprd08.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Nov 2016 13:55:18.3387 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0802MB2337 X-IsSubscribed: yes Hi all, This patch (2 of 3) adds the following NEON intrinsics to the ARM back-end of GCC: * vget_lane_p64 Added new tests for these and ran regression tests on aarch64-none-linux-gnu and on arm-none-linux-gnueabihf. Ok for trunk? Thanks, Tamar gcc/ 2016-11-04 Tamar Christina * config/arm/arm_neon.h (vget_lane_p64): New. diff --git a/gcc/config/arm/arm_neon.h b/gcc/config/arm/arm_neon.h index 3898ff7302dc3f21e6b50a8a7b835033c1ae2021..ab29da74e0971cc09ee63b561ecc79e9762e3fb4 100644 --- a/gcc/config/arm/arm_neon.h +++ b/gcc/config/arm/arm_neon.h @@ -5411,6 +5411,15 @@ vget_lane_s64 (int64x1_t __a, const int __b) return (int64_t)__builtin_neon_vget_lanedi (__a, __b); } +#pragma GCC push_options +#pragma GCC target ("fpu=crypto-neon-fp-armv8") +__extension__ static __inline poly64_t __attribute__ ((__always_inline__)) +vget_lane_p64 (poly64x1_t __a, const int __b) +{ + return (poly64_t)__builtin_neon_vget_lanedi ((int64x1_t) __a, __b); +} + +#pragma GCC pop_options __extension__ static __inline uint64_t __attribute__ ((__always_inline__)) vget_lane_u64 (uint64x1_t __a, const int __b) {