Ilya Lesokhin schrieb:
Hi,
I would like to split a movhi instruction from an immediate to a const
address to 2 movqi instructions.
(I'm using gcc 4.5.3 but i dont think it matters in this case)
The current development version is 4.7.0.
It won't help to provida a patch against an old version.
Quick comment on the new description
emit_move_insn(gen_rtx_MEM(QImode,address+1), GEN_INT(value >> 8));
emit_move_insn(gen_rtx_MEM(QImode,address), GEN_INT(value & 0xff));
gen_rtx_MEM() expects type rtx not short. Also you consider using gen_rtx_PLUS
for (address+1)
Anitha
a little mistake: ofcourse the desired code is:
ldi r24, 0x01 ; 1
sts 0x00F7, __zero_reg__
sts 0x00F6, r24
and not the one posed earlier.
On Thu, May 19, 2011 at 12:18 PM, Ilya Lesokhin wrote:
> Hi,
>
> I would like to split a movhi instruction from an immediate to a const
> address to 2 movqi
Hi,
I would like to split a movhi instruction from an immediate to a const
address to 2 movqi instructions.
(I'm using gcc 4.5.3 but i dont think it matters in this case)
My motivation is the following:
Code in the form:
OCR2RA = 1;
compiles to:
ldi r24, 0x01 ; 1
ldi r25, 0x00 ; 0
sts 0x00F7,