[Mono-dev] How do I use scratch registers in op code implementation

Braddock Gaskill (Contractor) braddock.gaskill at apx-labs.com
Thu Aug 16 15:04:24 UTC 2012


Hi folks,
We're working on the mono port to the Tilera TILE-Gx cpu.

When implementing IR op codes in mono_arch_output_basic_block() we sometimes need to use a scratch register.  For example, TILE-Gx has no single membase + offset load instruction - we must do the address addition as a separate step.

How do we inform the runtime that we have/will clobber a register?  I know that if we clobber a source register we can set the clob field in the machine description file, but what if we use another register?  Is it possible to reserve a register for this purpose?

Thanks,
Braddock Gaskill

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20120816/1f1234c8/attachment.html>


More information about the Mono-devel-list mailing list