aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2002-12-12 21:33:43 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2002-12-12 21:33:43 +0000
commit59578c84479efd12970b846199f1b94eb4e0acfe (patch)
treea4c8c9d472686438f4653cadab4e5e1928872622 /gcc
parent8cc5359b78d8c7fb0cedc0834dceb57b04c6f176 (diff)
downloadgcc-59578c84479efd12970b846199f1b94eb4e0acfe.zip
gcc-59578c84479efd12970b846199f1b94eb4e0acfe.tar.gz
gcc-59578c84479efd12970b846199f1b94eb4e0acfe.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/h8300/h8300.md3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index fd9b742..3accc82 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
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.
(CONST_OK_FOR_LETTER_P): Use CONST_OK_FOR_J.
* config/h8300/h8300.md (*addhi_h8300): Add a new alternative.
diff --git a/gcc/config/h8300/h8300.md b/gcc/config/h8300/h8300.md
index e68e702..ca95f4b 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))