public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH, ARM] Fix NEON vset_lane for D registers
@ 2011-05-03 12:49 Julian Brown
  2011-05-03 13:59 ` Ramana Radhakrishnan
  2011-05-03 14:50 ` Richard Earnshaw
  0 siblings, 2 replies; 6+ messages in thread
From: Julian Brown @ 2011-05-03 12:49 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 328 bytes --]

Hi,

This patch fixes vset_lane intrinsic variants for D-register sized
variables. A typo meant that the wrong lane would be set in many
circumstances.

Tested manually only. OK to apply?

Thanks,

Julian

ChangeLog

    gcc/
    * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
    parenthesis in D-register case.


[-- Attachment #2: vset_lane-fix-fsf-1.diff --]
[-- Type: text/x-patch, Size: 494 bytes --]

Index: gcc/config/arm/neon.md
===================================================================
--- gcc/config/arm/neon.md	(revision 173299)
+++ gcc/config/arm/neon.md	(working copy)
@@ -426,7 +426,7 @@
           (match_operand:SI 2 "immediate_operand" "i")))]
   "TARGET_NEON"
 {
-  int elt = ffs ((int) INTVAL (operands[2]) - 1);
+  int elt = ffs ((int) INTVAL (operands[2])) - 1;
   if (BYTES_BIG_ENDIAN)
     elt = GET_MODE_NUNITS (<MODE>mode) - 1 - elt;
   operands[2] = GEN_INT (elt);

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-05-05 12:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-03 12:49 [PATCH, ARM] Fix NEON vset_lane for D registers Julian Brown
2011-05-03 13:59 ` Ramana Radhakrishnan
2011-05-03 14:50 ` Richard Earnshaw
2011-05-03 15:19   ` Joseph S. Myers
2011-05-05 12:15   ` Julian Brown
2011-05-05 12:55     ` Richard Earnshaw

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).