diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/avr/avr.md | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b73ad6d..9ecfed7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-04-20 Marek Michalkiewicz <marekm@amelek.gda.pl> + + * config/avr/avr.md (*cmpqi_sign_extend): Handle negative values + of operand 1 correctly. + 2003-04-20 Nathan Sidwell <nathan@codesourcery.com> * cpplex.c (_cpp_lex_direct): Set BOL for CPP_EOF tokens. diff --git a/gcc/config/avr/avr.md b/gcc/config/avr/avr.md index dd51f0e..86ab6c7 100644 --- a/gcc/config/avr/avr.md +++ b/gcc/config/avr/avr.md @@ -1637,8 +1637,8 @@ [(set (cc0) (compare (sign_extend:HI (match_operand:QI 0 "register_operand" "d")) - (match_operand:HI 1 "immediate_operand" "M")))] - "" + (match_operand:HI 1 "const_int_operand" "n")))] + "INTVAL (operands[1]) >= -128 && INTVAL (operands[1]) <= 127" "cpi %0,lo8(%1)" [(set_attr "cc" "compare") (set_attr "length" "1")]) |