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
st of the redundant instructions. If need be, you might add a machine dependent reorg pass that cleans up the code even more. You can have post-reload patterns by checking for reload_completed in the condition. There have been some ports to small accumulator based machines, but mostly they

Accumulator based machines

2009-05-21 Thread Michael Hope
Hi there. The machine I'm working is part accumulator based, part register based. I'm having trouble figuring out how best to tell the compiler how ACC is affected and when. For example, the add instruction is two operand with the destination being a general register: ADD, R11 is equivalent to