h8300.md (a peephole2): Accept a constant that's accepted by CONST_OK_FOR_J.
authorKazu Hirata <kazu@cs.umass.edu>
Thu, 12 Dec 2002 21:33:43 +0000 (21:33 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Thu, 12 Dec 2002 21:33:43 +0000 (21:33 +0000)
* config/h8300/h8300.md (a peephole2): Accept a constant
that's accepted by CONST_OK_FOR_J.

From-SVN: r60080

gcc/ChangeLog
gcc/config/h8300/h8300.md

index fd9b7425aa546fc8e79944980a5bdfcf7dd319d6..3accc82cefa6e4e64888c72a4bb22ee3a3cfd890 100644 (file)
@@ -1,3 +1,8 @@
+2002-12-12  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * config/h8300/h8300.md (a peephole2): Accept a constant
+       that's accepted by CONST_OK_FOR_J.
+
 2002-12-12  Kazu Hirata  <kazu@cs.umass.edu>
 
        * config/h8300/h8300.h (CONST_OK_FOR_J): New.
index e68e702b25731ff41db6eb201e8d0e2a85158ed8..ca95f4bbe758b97267ae579c097bb4c00565a343 100644 (file)
                 (match_operand:HI 2 "register_operand" "")))]
   "REG_P (operands[0]) && REG_P (operands[2])
    && REGNO (operands[0]) != REGNO (operands[2])
-   && (CONST_OK_FOR_L (INTVAL (operands[1]))
+   && (CONST_OK_FOR_J (INTVAL (operands[1]))
+       || CONST_OK_FOR_L (INTVAL (operands[1]))
        || CONST_OK_FOR_N (INTVAL (operands[1])))"
   [(set (match_dup 0)
        (match_dup 2))