Date: Thu, 03 Aug 2006 12:10:55 -0700 From: Peter Grehan <grehan@freebsd.org> To: Maxim Sobolev <sobomax@FreeBSD.org> Cc: Peter Grehan <grehan@FreeBSD.org>, freebsd-ppc@FreeBSD.org Subject: Re: Unaligned 64-bits access on FreeBSD/powerpc Message-ID: <44D24A3F.5080407@freebsd.org> In-Reply-To: <44D24772.7080109@FreeBSD.org> References: <44D23F02.9020709@FreeBSD.org> <200608031826.k73IQX835138@makai.watson.ibm.com> <44D2419F.1050100@FreeBSD.org> <44D245E5.4070102@freebsd.org> <44D24772.7080109@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44D24A3F.5080407>