summaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorMarek Michalkiewicz <marekm@amelek.gda.pl>2003-04-20 15:24:06 +0200
committerMarek Michalkiewicz <marekm@gcc.gnu.org>2003-04-20 13:24:06 +0000
commit1052bb09b809f7fb7d14a417b3a9d2316a57db42 (patch)
treee4b83745f1a1ab874a2cb28b451ba80a6241ffbf /gcc/config
parent299f79b5a0748924f00ea910999fc4b7fcc64f3b (diff)
downloadgcc-1052bb09b809f7fb7d14a417b3a9d2316a57db42.tar.gz
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
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/avr/avr.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/avr/avr.md b/gcc/config/avr/avr.md
index dd51f0e7240..86ab6c72829 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")])