public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
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 15:50:00 -0000	[thread overview]
Message-ID: <1307720535-9023-1-git-send-email-ramana.radhakrishnan@linaro.org> (raw)

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  <ramana.radhakrishnan@linaro.org>

	PR target/48454
	* config/arm/neon.md (vec_pack_trunc<mode>): 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:<V_narrow>
 			(match_operand:VN 2 "register_operand" "w"))))]
  "TARGET_NEON"
- "vmovn.i<V_sz_elem>\t%e0, %q1\n\tvmovn.i<V_sz_elem>\t%f0, %q2"
- [(set_attr "neon_type" "neon_shift_1")]
+ "vmovn.i<V_sz_elem>\t%e0, %q1\;vmovn.i<V_sz_elem>\t%f0, %q2"
+ [(set_attr "neon_type" "neon_shift_1")
+  (set_attr "length" "8")]
 )
 
 ;; For the non-quad case.
-- 
1.7.4.1

                 reply	other threads:[~2011-06-10 15:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1307720535-9023-1-git-send-email-ramana.radhakrishnan@linaro.org \
    --to=ramana.radhakrishnan@linaro.org \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=ira.rosen@linaro.org \
    --cc=patches@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).