From: Kazu Hirata Date: Thu, 12 Dec 2002 21:33:43 +0000 (+0000) Subject: h8300.md (a peephole2): Accept a constant that's accepted by CONST_OK_FOR_J. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=59578c84479efd12970b846199f1b94eb4e0acfe;p=gcc.git h8300.md (a peephole2): Accept a constant that's accepted by CONST_OK_FOR_J. * config/h8300/h8300.md (a peephole2): Accept a constant that's accepted by CONST_OK_FOR_J. From-SVN: r60080 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fd9b7425aa5..3accc82cefa 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-12-12 Kazu Hirata + + * config/h8300/h8300.md (a peephole2): Accept a constant + that's accepted by CONST_OK_FOR_J. + 2002-12-12 Kazu Hirata * config/h8300/h8300.h (CONST_OK_FOR_J): New. diff --git a/gcc/config/h8300/h8300.md b/gcc/config/h8300/h8300.md index e68e702b257..ca95f4bbe75 100644 --- a/gcc/config/h8300/h8300.md +++ b/gcc/config/h8300/h8300.md @@ -2710,7 +2710,8 @@ (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))