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: 1815 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.45.109) by localhost6.localdomain6 with IMAP4-SSL; 10 Jun 2011 20:12:05 -0000 Delivered-To: patches@linaro.org Received: by 10.52.181.10 with SMTP id ds10cs322681vdc; Fri, 10 Jun 2011 08:42:11 -0700 (PDT) Received: by 10.216.237.217 with SMTP id y67mr7775894weq.1.1307720529927; Fri, 10 Jun 2011 08:42:09 -0700 (PDT) Received: from e102483 (fw-lnat.cambridge.arm.com [217.140.96.63]) by mx.google.com with ESMTP id e7si7180366wbh.102.2011.06.10.08.42.08; Fri, 10 Jun 2011 08:42:09 -0700 (PDT) Received-SPF: neutral (google.com: 217.140.96.63 is neither permitted nor denied by best guess record for domain of ramrad01@e102483) client-ip=217.140.96.63; Authentication-Results: mx.google.com; spf=neutral (google.com: 217.140.96.63 is neither permitted nor denied by best guess record for domain of ramrad01@e102483) smtp.mail=ramrad01@e102483 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-Mailer: git-send-email 1.7.4.1 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.