Commit 59578c84 by Kazu Hirata Committed by Kazu Hirata

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
parent 8cc5359b
2002-12-12 Kazu Hirata <kazu@cs.umass.edu> 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. * config/h8300/h8300.h (CONST_OK_FOR_J): New.
(CONST_OK_FOR_LETTER_P): Use CONST_OK_FOR_J. (CONST_OK_FOR_LETTER_P): Use CONST_OK_FOR_J.
* config/h8300/h8300.md (*addhi_h8300): Add a new alternative. * config/h8300/h8300.md (*addhi_h8300): Add a new alternative.
......
...@@ -2710,7 +2710,8 @@ ...@@ -2710,7 +2710,8 @@
(match_operand:HI 2 "register_operand" "")))] (match_operand:HI 2 "register_operand" "")))]
"REG_P (operands[0]) && REG_P (operands[2]) "REG_P (operands[0]) && REG_P (operands[2])
&& REGNO (operands[0]) != REGNO (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])))" || CONST_OK_FOR_N (INTVAL (operands[1])))"
[(set (match_dup 0) [(set (match_dup 0)
(match_dup 2)) (match_dup 2))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment