This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: 32-bit immediate
- From: Georg Lay <avr at gjlay dot de>
- To: Eggenmüller Bernd <egge-b at gmx dot de>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 27 May 2010 13:44:30 +0200
- Subject: Re: 32-bit immediate
- References: <4BFE37D1.9020508@gmx.de>
Eggenmüller Bernd schrieb:
> Hi,
>
> I've to represent 32 bit immediates to trans late the libgcc2.
> The problem is that my assembler only can represent 16 Bit immediates.
> How can I implement a workaround for 32 Bit immediates.
libgcc is written in C, so it's likely that you have no proper support
of SImode in your compiler. If you support SImode then you must not emit
32-bit constants if the assembler cannot handle them.
For (optional) target specific functions in the (optional) assembler
part of libgcc you have to write the right instructions. If some of your
derivatives support 32-bit immediates and others do not, then you have
to generate several multilib versions of libgcc.
Georg