OSDN Git Service

PR target/43742
authorbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 15 Apr 2010 08:57:27 +0000 (08:57 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 05:32:37 +0000 (14:32 +0900)
* config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
matching constraints to ensure inputs match the output.

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

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

index 2b2ac00..ab173c6 100644 (file)
@@ -1,3 +1,9 @@
+2010-04-15  Bernd Schmidt  <bernd.schmidt@codesourcery.com>
+
+       PR target/43742
+       * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
+       matching constraints to ensure inputs match the output.
+
 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
 
        PR target/43742
index a3683a8..485c038 100644 (file)
@@ -7050,7 +7050,7 @@ label:
 
 (define_insn_and_split "doloop_end_split"
   [(set (pc)
-       (if_then_else (ne:SI (match_operand:SI 0 "arith_reg_dest" "")
+       (if_then_else (ne:SI  (match_operand:SI 2 "arith_reg_dest" "0")
                          (const_int 1))
                      (label_ref (match_operand 1 "" ""))
                      (pc)))