aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@redhat.com>2003-01-05 12:02:24 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2003-01-05 12:02:24 +0000
commit1ba8a9c4ecbfcc849090d1bf08ba244407161789 (patch)
treef72967a278c68dae2a0f2ac8c84cfea66002f3c7
parent5c2465500ab02fd9570bd29334a3c6fbf01031df (diff)
downloadgcc-1ba8a9c4ecbfcc849090d1bf08ba244407161789.zip
gcc-1ba8a9c4ecbfcc849090d1bf08ba244407161789.tar.gz
gcc-1ba8a9c4ecbfcc849090d1bf08ba244407161789.tar.bz2
* config/mips/mips.md: Disable the movstrsi define_split.
From-SVN: r60911
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/mips/mips.md8
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/20030105-1.c20
4 files changed, 35 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9b984db..cccad46 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2003-01-05 Richard Sandiford <rsandifo@redhat.com>
+
+ * config/mips/mips.md: Disable the movstrsi define_split.
+
2003-01-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* alloc-pool.c: Don't include "libiberty.h".
diff --git a/gcc/config/mips/mips.md b/gcc/config/mips/mips.md
index 3d2d617..3ec5483 100644
--- a/gcc/config/mips/mips.md
+++ b/gcc/config/mips/mips.md
@@ -6550,6 +6550,12 @@ move\\t%0,%z4\\n\\
;; fill a delay slot. This also prevents a bug in delayed branches
;; from showing up, which reuses one of the registers in our clobbers.
+;; ??? Disabled because it doesn't preserve alias information for
+;; operands 0 and 1. Also, the rtl for the second insn doesn't mention
+;; that it uses the registers clobbered by the first.
+;;
+;; It would probably be better to split the block into individual
+;; instructions instead.
(define_split
[(set (mem:BLK (match_operand:SI 0 "register_operand" ""))
(mem:BLK (match_operand:SI 1 "register_operand" "")))
@@ -6561,7 +6567,7 @@ move\\t%0,%z4\\n\\
(use (match_operand:SI 3 "small_int" ""))
(use (const_int 0))]
- "reload_completed && !TARGET_DEBUG_D_MODE && INTVAL (operands[2]) > 0"
+ "reload_completed && 0 && INTVAL (operands[2]) > 0"
;; All but the last move
[(parallel [(set (mem:BLK (match_dup 0))
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index ed46afc..57b4e73 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2003-01-05 Richard Sandiford <rsandifo@redhat.com>
+
+ * gcc.c-torture/execute/20030105-1.c: New test.
+
2003-01-04 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
* g++.dg/parse/namespace3.C: Remove extra semicolons.
diff --git a/gcc/testsuite/gcc.c-torture/execute/20030105-1.c b/gcc/testsuite/gcc.c-torture/execute/20030105-1.c
new file mode 100644
index 0000000..19f3b2d
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/execute/20030105-1.c
@@ -0,0 +1,20 @@
+int __attribute__ ((noinline))
+foo ()
+{
+ const int a[8] = { 0, 1, 2, 3, 4, 5, 6, 7 };
+ int i, sum;
+
+ sum = 0;
+ for (i = 0; i < sizeof (a) / sizeof (*a); i++)
+ sum += a[i];
+
+ return sum;
+}
+
+int
+main ()
+{
+ if (foo () != 28)
+ abort ();
+ exit (0);
+}