Want to use the powerpc e200z6 SPE APU

Peter Dufault dufault at hda.com
Sun Oct 11 13:12:46 UTC 2009


On Oct 11, 2009, at 5:38 , Peter Dufault wrote:

> The default configuration of the compiler doesn't support them:

Actually it appears it does if you can figure out what arguments to  
use, though the disassembler doesn't handle the instructions properly:

[dufault at finny motobank]$ cat foo.c
#include <spe.h>
void foo(void) {
    volatile __ev64_s32__ v = __ev_create_sfix32_fs (0.5, -0.125);
}

[dufault at finny motobank]$ powerpc-rtems4.10-gcc -O -mcpu=8540 -mspe -c  
foo.c
[dufault at finny motobank]$ powerpc-rtems4.10-objdump --disassemble foo.o

foo.o:     file format elf32-powerpc

Disassembly of section .text:

00000000 <foo>:
    0:	94 21 ff e8 	stwu    r1,-24(r1)
    4:	3c 00 3f 00 	lis     r0,16128
    8:	90 01 00 10 	stw     r0,16(r1)
    c:	3c 00 be 00 	lis     r0,-16896
   10:	90 01 00 14 	stw     r0,20(r1)
   14:	10 01 13 01 	.long 0x10011301
   18:	10 00 02 97 	.long 0x10000297
   1c:	10 01 0b 21 	vmhraddshs v0,v1,v1,v12
   20:	38 21 00 18 	addi    r1,r1,24
   24:	4e 80 00 20 	blr




More information about the users mailing list