diff options
author | Denis Chertykov <denisc@overta.ru> | 2002-09-10 15:53:14 +0000 |
---|---|---|
committer | Denis Chertykov <denisc@gcc.gnu.org> | 2002-09-10 19:53:14 +0400 |
commit | bfae804050ac712d29b556ea0cd1f6e06199ae12 (patch) | |
tree | 7de68e1acac70374ad1991fc1e6447aa36d02cc8 /gcc/config/avr | |
parent | 0c11ae2229fa80e927d2f6ffcadfb094b4064821 (diff) | |
download | gcc-bfae804050ac712d29b556ea0cd1f6e06199ae12.zip gcc-bfae804050ac712d29b556ea0cd1f6e06199ae12.tar.gz gcc-bfae804050ac712d29b556ea0cd1f6e06199ae12.tar.bz2 |
* config/avr/avr.md (movstrhi): Use right operands for conversion.
From-SVN: r57008
Diffstat (limited to 'gcc/config/avr')
-rw-r--r-- | gcc/config/avr/avr.md | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/config/avr/avr.md b/gcc/config/avr/avr.md index 0c050b7..7534fc5 100644 --- a/gcc/config/avr/avr.md +++ b/gcc/config/avr/avr.md @@ -360,10 +360,11 @@ if (GET_CODE (operands[2]) != CONST_INT) FAIL; - cnt8 = byte_immediate_operand (operands[1], GET_MODE (operands[1])); + cnt8 = byte_immediate_operand (operands[2], GET_MODE (operands[2])); mode = cnt8 ? QImode : HImode; - operands[1] = copy_to_mode_reg (mode, - gen_int_mode (INTVAL (operands[1]), mode)); + operands[2] = copy_to_mode_reg (mode, + gen_int_mode (INTVAL (operands[2]), mode)); + operands[4] = operands[2]; addr0 = copy_to_mode_reg (Pmode, XEXP (operands[0], 0)); addr1 = copy_to_mode_reg (Pmode, XEXP (operands[1], 0)); |