From 1890e136e34b3fab75142297517f7be1566eac13 Mon Sep 17 00:00:00 2001 From: Georg-Johann Lay Date: Tue, 21 Feb 2012 18:12:57 +0000 Subject: avr.md (neghi2): Remove "!d,0" alternative. * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0". From-SVN: r184447 --- gcc/ChangeLog | 4 ++++ gcc/config/avr/avr.md | 11 +++++------ 2 files changed, 9 insertions(+), 6 deletions(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 05ceab6..c0c8c50 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2012-01-21 Georg-Johann Lay + * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0". + +2012-01-21 Georg-Johann Lay + * config/avr/avr.md (*dec-and-branchhi!=-1.d.clobber): New text peephole. (*dec-and-branchhi!=-1.l.clobber): New text peephole. diff --git a/gcc/config/avr/avr.md b/gcc/config/avr/avr.md index 10772e2..a7fa04c 100644 --- a/gcc/config/avr/avr.md +++ b/gcc/config/avr/avr.md @@ -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") -- cgit v1.1