avr.md (*addhi3_zero_extend): Add alternative where REGNO($0) == REGNO($1).

* config/avr/avr.md (*addhi3_zero_extend): Add alternative where
	REGNO($0) == REGNO($1).

From-SVN: r245206
This commit is contained in:
Georg-Johann Lay 2017-02-06 11:38:52 +00:00 committed by Georg-Johann Lay
parent ef7df15338
commit 1e58aefec4
2 changed files with 12 additions and 5 deletions

View file

@ -1,3 +1,8 @@
2017-02-06 Georg-Johann Lay <avr@gjlay.de>
* config/avr/avr.md (*addhi3_zero_extend): Add alternative where
REGNO($0) == REGNO($1).
2017-02-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
* config/s390/linux.h(SIZE_TYPE): Add comment.

View file

@ -1200,12 +1200,14 @@
(define_insn "*addhi3_zero_extend"
[(set (match_operand:HI 0 "register_operand" "=r")
(plus:HI (zero_extend:HI (match_operand:QI 1 "register_operand" "r"))
(match_operand:HI 2 "register_operand" "0")))]
[(set (match_operand:HI 0 "register_operand" "=r,*?r")
(plus:HI (zero_extend:HI (match_operand:QI 1 "register_operand" "r ,0"))
(match_operand:HI 2 "register_operand" "0 ,r")))]
""
"add %A0,%1\;adc %B0,__zero_reg__"
[(set_attr "length" "2")
"@
add %A0,%1\;adc %B0,__zero_reg__
add %A0,%A2\;mov %B0,%B2\;adc %B0,__zero_reg__"
[(set_attr "length" "2,3")
(set_attr "cc" "set_n")])
(define_insn "*addhi3_zero_extend1"