diff mbox

PR48454 Fix length of vec_pack_trunc

Message ID 1307720535-9023-1-git-send-email-ramana.radhakrishnan@linaro.org
State Accepted
Headers show

Commit Message

Ramana Radhakrishnan June 10, 2011, 3:42 p.m. UTC
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 mbox

Patch

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.