Re: Allocating scratch register

2008-01-10 Thread Paul Brook
> Yes, I can remember that constraints in a mov-insn can not be > resolved by other/additional mov-insns. I think you're doing this the wrong way. You don't have a i->m mov instruction, so why are you pretending you do? Why aren't you doing this the same way as pretty much every other target?

Re: Allocating scratch register

2008-01-10 Thread Boris Boesler
Hi! Am 09.01.2008 um 23:54 schrieb Ian Lance Taylor: Boris Boesler <[EMAIL PROTECTED]> writes: I'm trying to allocate a scratch register: write immediate constant into scratch register r, write register r into memory ... What is wrong with the code above? There is nothing wrong with t

Re: Allocating scratch register

2008-01-09 Thread Ian Lance Taylor
Boris Boesler <[EMAIL PROTECTED]> writes: > I'm trying to allocate a scratch register: write immediate constant > into scratch register r, write register r into memory > > ;; write imm into memory > (define_insn_and_split "mov_imm_by_store" >[(set (match_operand:I8I16 0 "memory_operand"

Allocating scratch register

2008-01-09 Thread Boris Boesler
Hi! I'm trying to allocate a scratch register: write immediate constant into scratch register r, write register r into memory ;; write imm into memory (define_insn_and_split "mov_imm_by_store" [(set (match_operand:I8I16 0 "memory_operand""=m") (match_operand:I8I16 1 "immediate_