This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Multi-use register clobbering.
- From: DJ Delorie <dj at redhat dot com>
- To: gyearsley at zilog dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 16 Aug 2004 13:13:36 -0400
- Subject: Re: Multi-use register clobbering.
- References: <9437EC9B44A6D311AB2600104B7218E81D8948B6@ZCMAIL>
You want to read the documentation for HARD_REGNO_NREGS. With that,
you can define the first few registers as their QImode parts, and use
the macro to tell gcc how to combine those parts into HImode and
SImode registers. The remaining registers can be defined as SImode
only with the sample definition.