aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Chertykov <denisc@overta.ru>2000-05-06 03:06:46 +0000
committerDenis Chertykov <denisc@gcc.gnu.org>2000-05-06 07:06:46 +0400
commit042575e947d4fbc5a41e6fbcb7b1bd352305ceb1 (patch)
tree732893c84d92e744c79b682874819b38bb0ed467
parentb1a0b75db5a7651981ed7487d3982f83acfef3a6 (diff)
downloadgcc-042575e947d4fbc5a41e6fbcb7b1bd352305ceb1.zip
gcc-042575e947d4fbc5a41e6fbcb7b1bd352305ceb1.tar.gz
gcc-042575e947d4fbc5a41e6fbcb7b1bd352305ceb1.tar.bz2
avr.c (out_shift_with_cnt): Bugfix for shift by constant count.
* config/avr/avr.c (out_shift_with_cnt): Bugfix for shift by constant count. From-SVN: r33719
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/avr/avr.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4a8d58d..3e7dda2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+Sat May 6 06:55:32 2000 Denis Chertykov <denisc@overta.ru>
+
+ * config/avr/avr.c (out_shift_with_cnt): Bugfix for shift by
+ constant count.
+
2000-05-05 Bruce Korb <bkorb@gnu.org>
* fixinc/genfixes: Improve the matching for make target names
diff --git a/gcc/config/avr/avr.c b/gcc/config/avr/avr.c
index 19a57ab..171dba5 100644
--- a/gcc/config/avr/avr.c
+++ b/gcc/config/avr/avr.c
@@ -2042,7 +2042,7 @@ out_shift_with_cnt (template,insn,operands,len)
if (len)
++*len;
else
- strcat (str, "ldi %3,lo8(%2)");
+ strcat (str, "ldi %3,lo8((%2)-1)");
second_label = 0;
}
else if (GET_CODE (operands[2]) == MEM)