From patchwork Wed Sep 4 13:12:27 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Greenhalgh X-Patchwork-Id: 272617 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "www.sourceware.org", Issuer "StartCom Class 1 Primary Intermediate Server CA" (not verified)) by ozlabs.org (Postfix) with ESMTPS id B32262C008A for ; Wed, 4 Sep 2013 23:12:50 +1000 (EST) 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:mime-version:content-type; q=dns; s=default; b=j/mOrhuCdq3+53zJRdC6hcTdh4DeZfzdLSxzRMueqsNt71UQJj WHyKBLVogwxhW43RvpHO2XmHW/tIfXO07F9xrNT7Fze2qzrnsMNzc2XtIAjPw+hy 1vKersFWMZF78Vrko9G9jQ5gV1ORH5XdeXz59rWCoLoCB+5LKfhHcI1wI= 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:mime-version:content-type; s= default; bh=RxEnnQH+Yz2KqpUNQT5h8pQihdI=; b=wqC4QMekQc+ZR2el2BLO 1hp8/OMfRcHgP+NeXgFCzxcn6ychb26mMUEVfqD1fgZfDO7wRFO7WZ8FBEY2wohA BAGVjTL9Qw1zoOiGOyuzzOA+3PLG9bHtLeou9w8kxO2Lw851MXuM0du2zKml0HnA NtG/Gp/McmON6g85Lh8GTVw= Received: (qmail 13921 invoked by alias); 4 Sep 2013 13:12:43 -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 13907 invoked by uid 89); 4 Sep 2013 13:12:42 -0000 Received: from service87.mimecast.com (HELO service87.mimecast.com) (91.220.42.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 04 Sep 2013 13:12:42 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.9 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_NO, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-HELO: service87.mimecast.com Received: from cam-owa1.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.21]) by service87.mimecast.com; Wed, 04 Sep 2013 14:12:37 +0100 Received: from e106375-lin.cambridge.arm.com ([10.1.255.212]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.0); Wed, 4 Sep 2013 14:12:34 +0100 From: James Greenhalgh To: gcc-patches@gcc.gnu.org Cc: richard.earnshaw@arm.com, marcus.shawcroft@arm.com Subject: [Patch AArch64] Obvious - Fix return types for vaddvq_64 Date: Wed, 4 Sep 2013 14:12:27 +0100 Message-Id: <1378300347-32070-1-git-send-email-james.greenhalgh@arm.com> MIME-Version: 1.0 X-MC-Unique: 113090414123704901 X-IsSubscribed: yes The vaddvq_s64 and vaddvq_u64 intrinsics are defined to return 32-bit types. This is clearly wrong, so fix them to return int64_t and uint64_t as expected. Regression tested with a run through aarch64.exp and sanity checked. OK for trunk? Thanks, James --- gcc/ 2013-09-04 James Greenhalgh * config/aarch64/arm_neon.h (vaddvq_64): Fix return types. diff --git a/gcc/config/aarch64/arm_neon.h b/gcc/config/aarch64/arm_neon.h index e289a0d..29d1378 100644 --- a/gcc/config/aarch64/arm_neon.h +++ b/gcc/config/aarch64/arm_neon.h @@ -17033,7 +17033,7 @@ vaddvq_s32 (int32x4_t __a) return vgetq_lane_s32 (__builtin_aarch64_reduc_splus_v4si (__a), 0); } -__extension__ static __inline int32_t __attribute__ ((__always_inline__)) +__extension__ static __inline int64_t __attribute__ ((__always_inline__)) vaddvq_s64 (int64x2_t __a) { return vgetq_lane_s64 (__builtin_aarch64_reduc_splus_v2di (__a), 0); @@ -17060,7 +17060,7 @@ vaddvq_u32 (uint32x4_t __a) __builtin_aarch64_reduc_uplus_v4si ((int32x4_t) __a), 0); } -__extension__ static __inline uint32_t __attribute__ ((__always_inline__)) +__extension__ static __inline uint64_t __attribute__ ((__always_inline__)) vaddvq_u64 (uint64x2_t __a) { return vgetq_lane_u64 ((uint64x2_t)