[LLVMbugs] [Bug 2114] New: LLVM returns vector in mm0 register on X86, llvm-gcc uses ax:dx

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Feb 29 22:05:24 PST 2008


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

           Summary: LLVM returns vector in mm0 register on X86, llvm-gcc
                    uses ax:dx
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: andersca at mac.com
                CC: llvmbugs at cs.uiuc.edu


The following code

__m64 f()
{
    return (__m64){0L};
}

is compiled by llvm-gcc to

        pxor    %mm0, %mm0
        ret

whereas gcc compiles it to

        pushl   %ebp
        xorl    %eax, %eax
        movl    %esp, %ebp
        subl    $8, %esp
        leave
        xorl    %edx, %edx
        ret


-- 
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