This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: rlwinm problem...
- To: luca dot spinacci at marconicomms dot com
- Subject: Re: rlwinm problem...
- From: Geoff Keating <geoffk at geoffk dot org>
- Date: Tue, 6 Mar 2001 14:43:11 -0800
- CC: binutils at sources dot redhat dot com
- References: <C1256A07.003059F0.00@marconicomms.com>
- Reply-to: Geoff Keating <geoffk at redhat dot com>
> From: luca.spinacci@marconicomms.com
> Date: Tue, 6 Mar 2001 09:48:30 +0100
> Content-Disposition: inline
> I'm building a project involving quite a number of assembly code files compiled
> with cross-gcc for PowerPc.
> To generate my executable I must use a software factory with DIAB assembler.
> The DIAB assembler returns error in each file where an rlwinm instruction is
> found.
> Actually the rlwinm instruction by cross-gcc involves 4 elements (e.g. rlwinm
> 0,0,31,1) while the DIAB assembler wants the 5 parameters notation (e.g rlwinm
> 0,29,0,31,31). Reading the PowerPc instruction set it seems that the only
> acceptable notation is the 5 elements one.
> Is there any options to pass on the command line so that gcc can generate a 5
> elements rlwinm instruction?
Not at present.
> Any suggestions?
I have no particular objection to changing GCC this way, but since
both the GNU and IBM assemblers accept this syntax I'd suggest that
it'd be easier to change the DIAB assembler to do it too, and also
more useful.
--
- Geoffrey Keating <geoffk@geoffk.org>