[LLVMbugs] [Bug 1773] New: llc generates movl access to %rsi instead of movq

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Nov 4 12:15:22 PST 2007


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

           Summary: llc generates movl access to %rsi instead of movq
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: edwintorok at gmail.com
                CC: llvmbugs at cs.uiuc.edu


$ llvm-gcc testcase-min.i
/tmp/cczzO3SA.s: Assembler messages:
/tmp/cczzO3SA.s:14: Error: Incorrect register `%rsi' used with `l' suffix

I had no luck reproducing this by compiling to bitcode and then generating
code,
so here it is the assembly output.

Notice "movl %gs:0,%rsi", which should be a movq...

$ llvm-gcc testcase-min.i -S -o -
.ident  "GCC: (GNU) 4.0.1 (Apple Computer, Inc. build 5449)(LLVM build )"


        .text
        .align  16
        .globl  get_current
        .type   get_current, at function
get_current:
        pushq   %rbp
        movq    %rsp, %rbp
        subq    $40, %rsp
        jmp     .LBB1_2 # bb4
.LBB1_1:        # bb
        #APP
        movl %gs:0,%rsi
        #NO_APP
        movq    %rsi, -40(%rbp)
.LBB1_2:        # bb4
        movq    -40(%rbp), %rsi
        movq    %rsi, -16(%rbp)
        movq    %rsi, -32(%rbp)
        movq    %rsi, -24(%rbp)
        movq    %rsi, -8(%rbp)
.LBB1_3:        # return
        movq    -8(%rbp), %rsi
        movq    %rsi, %rax
        addq    $40, %rsp
        popq    %rbp
        ret
        .size   get_current, .-get_current


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