[power-gnu-discuss] Support for the MPC5554 (e200z6 core)
David Brown
david at westcontrol.com
Wed Jun 3 06:48:30 UTC 2009
Nathan Froyd wrote:
> On Tue, Jun 02, 2009 at 11:59:02PM +0200, David Brown wrote:
>> Nathan Froyd wrote:
>>> 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".
>> 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).
>
> Glad to hear it.
>
>> I can't see the -te500v1 flag documented anywhere - is it a new flag
>> that hasn't yet made it into the documentation?
>
> The flag is at least mentioned in the Getting Started Guide that comes
> with each release, although I see that the documentation for the option
> is rather sparse (e.g. no mention is made of generating SPE instructions
> for -te500v1). We'll work on fixing that.
>
Yes, I see it now in section "3.1 library configurations". As you say,
it's a little sparse. I can't see it anywhere in the gcc documentation
itself (the usual reference for flags). If it's practical, it could be
extremely useful if you were able to make a list of PowerPC devices and
the appropriate flags to match these cores. It's not always easy to
tell from the Freescale webpages what core each device has, and what the
difference is, and to then match it up with appropriate compiler flags
(especially if they are not standard "-mcpu=" flags, and barely
documented!). It doesn't help that Freescale gives different cores what
appear to be a minor revision change (like e300c2 and ec300c3), yet
there are huge differences in the core features.
Ideally, of course, there should be a lot more -mcpu= choices to cover
all the devices. But I'd imagine a list of devices, cores, and flags
would be faster to write and easier to maintain, and give users all the
information they need.
Many thanks,
David
More information about the power-gnu-discuss
mailing list