* config/mips/mips.md: Fix the placement of the match_scratch in the
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 10 Feb 2005 20:43:44 +0000 (20:43 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 10 Feb 2005 20:43:44 +0000 (20:43 +0000)
lea64 peephole2.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94846 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/mips/mips.md

index d8da914..3ea3e79 100644 (file)
@@ -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:
index ba99796..b00cbac 100644 (file)
@@ -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)))