[LLVMdev] SSE intrinsic alignment bug?

Dale Johannesen dalej at apple.com
Thu May 22 16:47:06 PDT 2008


The intent here is that "in" and "out" are always aligned, by forcing  
the stack pointer in the function that defines them to be aligned.  On  
some targets (darwin) the stack pointer is always 16-byte aligned; on  
other targets there should be code in the function prologue to force  
it to be aligned.

On May 22, 2008, at 4:36 PM, Nicolas Capens wrote:

> Small typo, for the correct assembly code I meant:
>
> mov         eax,dword ptr [esp+8]
> movups      xmm0,xmmword ptr [eax]
> rcpps       xmm1,xmm0
> mov         eax,dword ptr [esp+4]
> movups      xmmword ptr [eax],xmm1
> ret
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080522/2bb502c6/attachment.html>


More information about the llvm-dev mailing list