[LLVMbugs] [Bug 19612] bad codegen on MIPS va_arg

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Nov 17 16:38:51 PST 2014


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

Martin Sebor <msebor at gmail.com> changed:

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

--- Comment #8 from Martin Sebor <msebor at gmail.com> ---
This doesn't appear to be fixed. Here's a simplified test case and the output
as of r221712:

int foo (__builtin_va_list va) {
    return __builtin_va_arg (va, int);
}
    .text
    .abicalls
    .option    pic0
    .section    .mdebug.abiN32,"", at progbits
    .nan    legacy
    .file    "t.c"
    .text
    .globl    foo
    .align    3
    .type    foo, at function
    .set    nomicromips
    .set    nomips16
    .ent    foo
foo:
    .frame    $sp,0,$ra
    .mask     0x00000000,0
    .fmask    0x00000000,0
    .set    noreorder
    .set    nomacro
    .set    noat
    sll    $1, $4, 0
    lw    $2, 0($1)   <<< reading the more significant word
    jr    $ra
    nop
    .set    at
    .set    macro
    .set    reorder
    .end    foo
$tmp0:
    .size    foo, ($tmp0)-foo


    .ident    "clang version 3.6.0 (trunk) (llvm/trunk 221712)"
    .section    ".note.GNU-stack","", at progbits
    .text

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141118/b4718e16/attachment.html>


More information about the llvm-bugs mailing list