[OE-core] [PATCH] Revert "cross-canadian: Handle powerpc linux verses linux-gnuspe"

alexandru.sardan at freescale.com alexandru.sardan at freescale.com
Tue Jan 28 14:03:22 UTC 2014


Hi,

See my comment inline.

Regards,
Alex

> -----Original Message-----
> From: openembedded-core-bounces at lists.openembedded.org
> [mailto:openembedded-core-bounces at lists.openembedded.org] On Behalf Of
> Phil Blundell
> Sent: Friday, January 24, 2014 10:56 PM
> To: Sardan Alexandru Cezar-B41700
> Cc: Udma Catalin-Dan-B32721; openembedded-core at lists.openembedded.org
> Subject: Re: [OE-core] [PATCH] Revert "cross-canadian: Handle powerpc
> linux verses linux-gnuspe"
> 
> On Thu, 2014-01-23 at 18:22 +0000, alexandru.sardan at freescale.com wrote:
> > [Alex Sardan] No. The more generic target powerpc-none-linux will not
> > generate SPE code and the powerpc-none-linux-gnuspe target that
> generates
> > SPE will not be able to generate Altivec.
> 
> Why not?  As far as I can tell from the gcc configury, the target string
> only affects the defaults (i.e. powerpc-*-linux gets -mno-spe
> -mno-altivec, powerpc-*-linuxaltivec gets -maltivec -mno-spec, and
> powerpc-*-linuxspe gets -mno-altivec -mspe).  There doesn't seem to be
> any real impact beyond this that would make the compiler binary
> fundamentally incapable of generating either type of instruction if you
> pass the appropriate options on the command line.
> 
> p.
[Alex Sardan] Trying to generate altivec instructions with the spe compiler
will yield the following error:

b41700 at fsr-ub1264-102: [sandbox]$ powerpc-fsl_networking-linux-gnuspe-gcc -mcpu=e6500 -mabi=no-spe -mno-spe -mabi=altivec -maltivec -S -c double.c 
double.c:1:0: error: AltiVec and E500 instructions cannot coexist

Also trying to generate e500v2 code with powerpc-linux target:

b41700 at fsr-ub1264-102: [sandbox]$ powerpc-poky-linux-gcc -mcpu=8548 -mabi=spe -mspe -mfloat-gprs=double -S -c double.c 
double.c:1:0: error: not configured for SPE ABI
 double foo()
 ^
double.c:1:0: error: not configured for SPE instruction set

> 
> 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
> 




More information about the Openembedded-core mailing list