[LLVMbugs] [Bug 1033] bitcast between long and double on x86-64

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Dec 5 10:23:53 PST 2006


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

sabre at nondot.org changed:

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



------- Additional Comments From sabre at nondot.org  2006-12-05 12:23 -------
The preferred fix for this is to expand it into movd/movq.  However, Evan is busy with other things, so 
this won't happen in the near term.  In the short-term, this patch gets us correct, but suboptimal (goes 
through memory) code:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20061204/040803.html


Testcase here: CodeGen/X86/bitcast.ll

-Chris

_test1:
        subq $8, %rsp
        movsd %xmm0, (%rsp)
        movq (%rsp), %rax
        addq $8, %rsp
        ret
_test2:
        subq $8, %rsp
        movq %rdi, (%rsp)
        movsd (%rsp), %xmm0
        addq $8, %rsp
        ret





------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list