OSDN Git Service

PR target/43742
authorkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Apr 2010 23:58:10 +0000 (23:58 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 01:02:08 +0000 (10:02 +0900)
* config/sh/sh.md (doloop_end_split): Remove "+r" constraint
in an input-only operand.

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

gcc/ChangeLog
gcc/config/sh/sh.md

index 35a1633..a49e6b1 100644 (file)
@@ -1,3 +1,9 @@
+2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
+
+       PR target/43742
+       * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
+       in an input-only operand.       
+
 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
 
        * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
index 485c038..aa0b449 100644 (file)
@@ -7050,21 +7050,22 @@ label:
 
 (define_insn_and_split "doloop_end_split"
   [(set (pc)
-       (if_then_else (ne:SI  (match_operand:SI 2 "arith_reg_dest" "0")
+       (if_then_else (ne:SI (match_operand:SI 0 "arith_reg_dest" "")
                          (const_int 1))
                      (label_ref (match_operand 1 "" ""))
                      (pc)))
-   (set (match_operand:SI 0 "arith_reg_dest" "=r")
-       (plus (match_dup 2) (const_int -1)))
+   (set (match_dup 0)
+       (plus (match_dup 0) (const_int -1)))
    (clobber (reg:SI T_REG))]
   "TARGET_SH2"
   "#"
   ""
   [(parallel [(set (reg:SI T_REG)
-                  (eq:SI (match_dup 2) (const_int 1)))
-             (set (match_dup 0) (plus:SI (match_dup 2) (const_int -1)))])
+                  (eq:SI (match_operand:SI 0 "arith_reg_dest" "+r")
+                         (const_int 1)))
+             (set (match_dup 0) (plus:SI (match_dup 0) (const_int -1)))])
    (set (pc) (if_then_else (eq (reg:SI T_REG) (const_int 0))
-                          (label_ref (match_dup 1))
+                          (label_ref (match_operand 1 "" ""))
                           (pc)))]
 ""
    [(set_attr "type" "cbranch")])
@@ -8307,9 +8308,8 @@ label:
 
 (define_insn "dect"
   [(set (reg:SI T_REG)
-       (eq:SI (match_operand:SI 1 "arith_reg_dest" "0") (const_int 1)))
-   (set (match_operand:SI 0 "arith_reg_dest" "=r")
-       (plus:SI (match_dup 1) (const_int -1)))]
+       (eq:SI (match_operand:SI 0 "arith_reg_dest" "+r") (const_int 1)))
+   (set (match_dup 0) (plus:SI (match_dup 0) (const_int -1)))]
   "TARGET_SH2"
   "dt  %0"
   [(set_attr "type" "arith")])