avr.md (*cmpqi_sign_extend): Handle negative values of operand 1 correctly.

* config/avr/avr.md (*cmpqi_sign_extend): Handle negative values
	of operand 1 correctly.

From-SVN: r65850
This commit is contained in:
Marek Michalkiewicz 2003-04-20 15:24:06 +02:00 committed by Marek Michalkiewicz
parent 299f79b5a0
commit 1052bb09b8
2 changed files with 7 additions and 2 deletions

View File

@ -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.

View File

@ -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")])