From patchwork Fri Jun 10 15:42:15 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramana Radhakrishnan X-Patchwork-Id: 99931 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]) by ozlabs.org (Postfix) with SMTP id F2735B702E for ; Sat, 11 Jun 2011 01:42:27 +1000 (EST) Received: (qmail 27180 invoked by alias); 10 Jun 2011 15:42:25 -0000 Received: (qmail 27171 invoked by uid 22791); 10 Jun 2011 15:42:24 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL, BAYES_00, FSL_HELO_NON_FQDN_1, HELO_NO_DOMAIN X-Spam-Check-By: sourceware.org Received: from fw-lnat.cambridge.arm.com (HELO e102483) (217.140.96.63) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 10 Jun 2011 15:42:09 +0000 Received: by e102483 (Postfix, from userid 1001) id 6FDEA1040887; Fri, 10 Jun 2011 16:42:15 +0100 (BST) From: Ramana Radhakrishnan To: gcc-patches@gcc.gnu.org Cc: patches@linaro.org, ira.rosen@linaro.org Subject: [PATCH] PR48454 Fix length of vec_pack_trunc Date: Fri, 10 Jun 2011 16:42:15 +0100 Message-Id: <1307720535-9023-1-git-send-email-ramana.radhakrishnan@linaro.org> X-IsSubscribed: yes 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 Hi, It appears as though the length of the vec_pack_trunc was incorrectly not set to anything. This has been fixed now at 8 bytes. I have also taken the oppurtunity to remove the \n\t and replace it with a \; instead. I'll commit this to both trunk and 4.6 branch after a round of sanity checking. cheers Ramana 2011-06-10 Ramana Radhakrishnan PR target/48454 * config/arm/neon.md (vec_pack_trunc): Set the lengths correctly for the case with Quad vectors. --- gcc/config/arm/neon.md | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gcc/config/arm/neon.md b/gcc/config/arm/neon.md index 8c31c48..a8c1b87 100644 --- a/gcc/config/arm/neon.md +++ b/gcc/config/arm/neon.md @@ -5580,8 +5580,9 @@ (truncate: (match_operand:VN 2 "register_operand" "w"))))] "TARGET_NEON" - "vmovn.i\t%e0, %q1\n\tvmovn.i\t%f0, %q2" - [(set_attr "neon_type" "neon_shift_1")] + "vmovn.i\t%e0, %q1\;vmovn.i\t%f0, %q2" + [(set_attr "neon_type" "neon_shift_1") + (set_attr "length" "8")] ) ;; For the non-quad case.