From: Stelian Pop <stelian@popies.net>
To: cgen@sourceware.org
Subject: Multi-instruction macros
Date: Wed, 06 Feb 2008 15:04:00 -0000 [thread overview]
Message-ID: <1202310251.6176.30.camel@galileo> (raw)
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>
reply other threads:[~2008-02-06 15:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1202310251.6176.30.camel@galileo \
--to=stelian@popies.net \
--cc=cgen@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).