Unaligned 64-bits access on FreeBSD/powerpc

Peter Grehan grehan at freebsd.org
Thu Aug 3 19:10:20 UTC 2006


> According to the following link, unaligned floating-point 64-bits access 
> isn't supported in the PowerPC:
> 
> http://www-128.ibm.com/developerworks/library/pa-dalign/

  Yep, that's right: I should have mentioned that unaligned ints are OK. 
Which your program demonstrates :)

>         atype = "64";
>         for (i = 0; i < 256; i++) {
>             apoint = (uint8_t *)&(buf[i]);
>             v64 = *(uint64_t *)apoint;
>         }

  Would you be able to do a disassembly on this ? I suspect gcc is using 
floating-point regs to do the 64-bit loads.

later,

Peter.


More information about the freebsd-ppc mailing list