This is the mail archive of the
cgen@sourceware.org
mailing list for the CGEN project.
Multi-instruction macros
- From: Stelian Pop <stelian at popies dot net>
- To: cgen at sourceware dot org
- Date: Wed, 06 Feb 2008 16:04:11 +0100
- Subject: Multi-instruction macros
Hi,
How do I implement multi-instruction macros in a .cpu file ?
The assembler language for the microcontroller I'm working on has some
pseudo instructions like for example: 'andi r0, #42'. This has to be
translated into 'mov r1, #42' and 'andi r0, r1'.
How do I do this ? And how do I specify that this pseudo instruction
needs an extra register (r1 in the example above) ?
Searching the archives, I found an old patch from Greg McGary
implementing this(*), but it doesn't seem to have been incorporated into
the mainline.
Thanks,
Stelian.
(*): http://sourceware.org/ml/cgen/2001-q1/msg00142.html
--
Stelian Pop <stelian@popies.net>