[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: GCC bug 44606 (was Re: Debian powerpc binary compatibility)?



Hi Sebastian,

On Tue, 21 Sep 2010 21:23:26 +0200
Sebastian Andrzej Siewior <sebastian@breakpoint.cc> wrote:

> * Sergei Poselenov | 2010-09-21 14:54:22 [+0400]:
> 
> >Hello Sebastian,
> Hi Sergei,
> 
> >Should the bug 44606 trigger on a e500v1 CPU?
> >
> >I can check it with gcc 4.2.2 on a MPC8560 system.
> SPE support got merged in gcc 4.3. An e500v1 CPU does not have support
> for the type "double" so you shouldn't be able run the binary if you
> exlicitly enable using it.
> On the other hand, nobody is using 4.2 these days so it is not an
> option to switch to an older gcc.
> 

Understand. However, FYI: testcase built with GCC 4.2 compiler passed
OK:
-bash-3.2# ./tc0
.26 3264.000000
.28 3520.000000
.30 3776.000000
.32 4032.000000
.34 4288.000000
-bash-3.2# ./tc2
.26 3264.000000
.28 3520.000000
.30 3776.000000
.32 4032.000000
.34 4288.000000
-bash-3.2# 

(I verified the binary image has the SPE instructions:

10000590 <MinifyImage>:
10000590:	94 21 ff 70 	stwu    r1,-144(r1)
10000594:	7c 08 02 a6 	mflr    r0
10000598:	13 e1 83 21 	vmhraddshs v31,v1,v16,v12
1000059c:	90 01 00 94 	stw     r0,148(r1)
100005a0:	7c 3f 0b 78 	mr      r31,r1
100005a4:	90 7f 00 68 	stw     r3,104(r31)
...)


Also, just tried the CodeSourcery GCC 4.4.1 - the bug is here.

Regards,
Sergei


> >Regards,
> >Sergei
> 
> Sebastian


Reply to: