[LLVMbugs] [Bug 2108] Horrible x86 codegen for _mm_loadl_epi64

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Apr 9 22:38:34 PDT 2008


http://llvm.org/bugs/show_bug.cgi?id=2108


Chris Lattner <sabre at nondot.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--- Comment #5 from Chris Lattner <sabre at nondot.org>  2008-04-10 00:38:34 ---
Here is a reduced testcase:

define fastcc double @doload64(i64 %x) nounwind  {
entry:
        %tmp717 = bitcast i64 %x to double              ; <double> [#uses=1]
        ret double %tmp717
}

compiles to:

_doload64:
        subl    $12, %esp
        movl    20(%esp), %eax
        movl    %eax, 4(%esp)
        movl    16(%esp), %eax
        movl    %eax, (%esp)
        movsd   (%esp), %xmm0
        addl    $12, %esp
        ret

I moved this to the X86 readme for the x86-32 piece.  The x86-64 piece is
fixed:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20080407/060905.html

-Chris


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list