Re: Accumulator based machines

2009-05-22 Thread Georg-Johann Lay
Michael Hope schrieb: The problem is when I have to clobber ACC such as when moving between registers. The output should be: LOADACC, R10; STOREACC, R11 (equivalent to ACC = R10; R11 = ACC) I've tried a parallel clobber like: (define_insn "movsi" [(set (match_operand:SI 0 "nonimmediate_oper

Re: Accumulator based machines

2009-05-21 Thread Jim Wilson
Michael Hope wrote: but this causes trouble when setting up ACC for the likes of the add above. The compiler runs but the code is incorrect Incorrect how? If you don't give us precise descriptions of the problem, then we can't give you precise answers. A precise description would be RTL e