public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo commit in src/patchsets/gcc/4.5.2/gentoo: 22_all_4.6_arm_pr45094-dword-move.patch README.history
@ 2011-02-13  7:54 Ryan Hill (dirtyepic)
  0 siblings, 0 replies; only message in thread
From: Ryan Hill (dirtyepic) @ 2011-02-13  7:54 UTC (permalink / raw
  To: gentoo-commits

dirtyepic    11/02/13 07:54:42

  Modified:             README.history
  Added:                22_all_4.6_arm_pr45094-dword-move.patch
  Log:
  Backport patch for PR45094 (bug #352064).

Revision  Changes    Path
1.7                  src/patchsets/gcc/4.5.2/gentoo/README.history

file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.5.2/gentoo/README.history?rev=1.7&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.5.2/gentoo/README.history?rev=1.7&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.5.2/gentoo/README.history?r1=1.6&r2=1.7

Index: README.history
===================================================================
RCS file: /var/cvsroot/gentoo/src/patchsets/gcc/4.5.2/gentoo/README.history,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- README.history	16 Jan 2011 07:55:34 -0000	1.6
+++ README.history	13 Feb 2011 07:54:42 -0000	1.7
@@ -1,4 +1,5 @@
 1.1		pending
+	+ 22_all_4.6_arm_pr45094-dword-move.patch
 	+ 99_all_testsuite-01-Wformat.patch
 	+ 99_all_testsuite-02-Wtrampolines.patch
 



1.1                  src/patchsets/gcc/4.5.2/gentoo/22_all_4.6_arm_pr45094-dword-move.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.5.2/gentoo/22_all_4.6_arm_pr45094-dword-move.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.5.2/gentoo/22_all_4.6_arm_pr45094-dword-move.patch?rev=1.1&content-type=text/plain

Index: 22_all_4.6_arm_pr45094-dword-move.patch
===================================================================
Backport from 4.6

http://gcc.gnu.org/PR45094
https://bugs.gentoo.org/352064

--- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c
@@ -12182,13 +12182,13 @@ output_move_double (rtx *operands)
 	    {
 	      if (GET_CODE (XEXP (operands[0], 0)) == PRE_MODIFY)
 		{
-		  output_asm_insn ("ldr%?\t%0, [%1, %2]!", otherops);
-		  output_asm_insn ("ldr%?\t%H0, [%1, #4]", otherops);
+		  output_asm_insn ("str%?\t%0, [%1, %2]!", otherops);
+		  output_asm_insn ("str%?\t%H0, [%1, #4]", otherops);
 		}
 	      else
 		{
-		  output_asm_insn ("ldr%?\t%H0, [%1, #4]", otherops);
-		  output_asm_insn ("ldr%?\t%0, [%1], %2", otherops);
+		  output_asm_insn ("str%?\t%H0, [%1, #4]", otherops);
+		  output_asm_insn ("str%?\t%0, [%1], %2", otherops);
 		}
 	    }
 	  else if (GET_CODE (XEXP (operands[0], 0)) == PRE_MODIFY)
--- /dev/null
+++ b/gcc/testsuite/gcc.target/arm/pr45094.c
@@ -0,0 +1,26 @@
+/* { dg-do run } */
+/* { dg-require-effective-target arm_neon_hw } */
+/* { dg-options "-O2 -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp" } */
+
+#include <stdlib.h>
+
+long long buffer[32];
+
+void __attribute__((noinline)) f(long long *p, int n)
+{
+  while (--n >= 0)
+    {
+      *p = 1;
+      p += 32;
+    }
+}
+
+int main(void)
+{
+  f(buffer, 1);
+  
+  if (!buffer[0])
+    abort();
+
+  return 0;
+}






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-02-13  7:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-13  7:54 [gentoo-commits] gentoo commit in src/patchsets/gcc/4.5.2/gentoo: 22_all_4.6_arm_pr45094-dword-move.patch README.history Ryan Hill (dirtyepic)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox