avr.md (neghi2): Remove "!d,0" alternative.

* config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0".

From-SVN: r184447
This commit is contained in:
Georg-Johann Lay 2012-02-21 18:12:57 +00:00 committed by Georg-Johann Lay
parent 4998825d25
commit 1890e136e3
2 changed files with 9 additions and 6 deletions

View File

@ -1,3 +1,7 @@
2012-01-21 Georg-Johann Lay <avr@gjlay.de>
* config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0".
2012-01-21 Georg-Johann Lay <avr@gjlay.de>
* config/avr/avr.md

View File

@ -3807,15 +3807,14 @@
(set_attr "cc" "set_n")])
(define_insn "neghi2"
[(set (match_operand:HI 0 "register_operand" "=!d,r,&r")
(neg:HI (match_operand:HI 1 "register_operand" "0,0,r")))]
[(set (match_operand:HI 0 "register_operand" "=r,&r")
(neg:HI (match_operand:HI 1 "register_operand" "0,r")))]
""
"@
com %B0\;neg %A0\;sbci %B0,lo8(-1)
com %B0\;neg %A0\;sbc %B0,__zero_reg__\;inc %B0
neg %B0\;neg %A0\;sbc %B0,__zero_reg__
clr %A0\;clr %B0\;sub %A0,%A1\;sbc %B0,%B1"
[(set_attr "length" "3,4,4")
(set_attr "cc" "set_czn,set_n,set_czn")])
[(set_attr "length" "3,4")
(set_attr "cc" "set_czn")])
(define_insn "negpsi2"
[(set (match_operand:PSI 0 "register_operand" "=!d,r,&r")