summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/mips/mips.md6
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d8da914663b..3ea3e792a90 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2005-02-10 Richard Sandiford <rsandifo@redhat.com>
+
+ * config/mips/mips.md: Fix the placement of the match_scratch in the
+ lea64 peephole2.
+
2005-02-10 Kazu Hirata <kazu@cs.umass.edu>
* cse.c, tree-ssa-loop-ivopts.c, config/rs6000/linux-unwind.h:
diff --git a/gcc/config/mips/mips.md b/gcc/config/mips/mips.md
index ba99796fc47..b00cbac4dbc 100644
--- a/gcc/config/mips/mips.md
+++ b/gcc/config/mips/mips.md
@@ -2903,9 +2903,9 @@ beq\t%2,%.,1b\;\
;; dsll32 op1,op1,0
;; daddu op1,op1,op0
(define_peephole2
- [(match_scratch:DI 0 "d")
- (set (match_operand:DI 1 "register_operand")
- (high:DI (match_operand:DI 2 "general_symbolic_operand")))]
+ [(set (match_operand:DI 1 "register_operand")
+ (high:DI (match_operand:DI 2 "general_symbolic_operand")))
+ (match_scratch:DI 0 "d")]
"TARGET_EXPLICIT_RELOCS && ABI_HAS_64BIT_SYMBOLS"
[(set (match_dup 1) (high:DI (match_dup 3)))
(set (match_dup 0) (high:DI (match_dup 4)))
OpenPOWER on IntegriCloud