[power-gnu-discuss] Support for the MPC5554 (e200z6 core)
David Brown
david at westcontrol.com
Tue Jun 2 21:59:02 UTC 2009
Nathan Froyd wrote:
> On Mon, Jun 01, 2009 at 11:25:13PM +0200, David Brown wrote:
>> Does anyone know if current gcc versions support using spe instructions
>> for hardware floating point, or if there is likely to be any support
>> soon? If I can't find a way to generate the spe instructions from gcc,
>> I'm going to have to recommend my customer buys Code Worrier...
>
> GCC does support generating SPE instructions for hardware floating
> point. You need to compile with the "-te500v1" flag, which enables the
> compiler to use single-precision floating-point SPE instructions. You
> should not use additional "-mcpu=" flags on the command-line along with
> "-te500v1".
>
> -Nathan
>
Marvellous! This looks like gcc is now generating exactly the code I
want - SPE instructions for single precision, and library code for
double precision (unless -fshort-double is in effect).
I can't see the -te500v1 flag documented anywhere - is it a new flag
that hasn't yet made it into the documentation?
Many thanks,
David
More information about the power-gnu-discuss
mailing list