[power-gnu-discuss] Support for the MPC5554 (e200z6 core)
Andrew Dennison
andrewd.lists at gmail.com
Tue Jun 2 11:37:56 UTC 2009
On Tue, Jun 2, 2009 at 4:44 PM, David Brown <david at westcontrol.com> wrote:
> Andrew Dennison wrote:
>>
>> Works for my 5554 code.
>>
>
> What -mcpu flag (and any other -m flags) do you use? I can't find any that
> cause gcc (latest 4.3.3 version) to generate SPE instructions for single
> precision floating point. It's easy to get the compiler to generate
> standard "book E" floating point instructions (fmuls, etc.), but those don't
> work on the 5554 as far as I understand.
David,
No other flags have been necessary (for floating point anyway), but
from memory powerpc-eabi-spe defaults to 8540 (e500). There are some
other issues where altivec instructions were generated in some cases!!
Another switch cleans this up. Embedded powerpc can be fun...
Earlier on (4.0, 4.1) I was using -fsingle-precision-constants (or
something like that) and this also triggered the spe single precision
instruction generation. However when I wanted to use VARGS I found
they were still promoted to double (normal c abi). The short-double
switch fixed this. We have had to browse gcc source on occasion to try
to work out how the options really work.
We are now using 4.4.0 but have used various versions of 4.0, 4.1, 4.2
and 4.3 along the way.
Hope this helps
Andrew
More information about the power-gnu-discuss
mailing list