[LLVMbugs] [Bug 15963] New: Bug 15961 - Testcase we don't devirtualize

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri May 10 08:52:47 PDT 2013


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

            Bug ID: 15963
           Summary: Bug 15961 - Testcase we don't devirtualize
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: rafael.espindola at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 10493
  --> http://llvm.org/bugs/attachment.cgi?id=10493&action=edit
testcase

This is extracted (and simplified a bit) from 8886 so that we have one case per
bug.

With gcc 4.8 the main function compiles down to just

main:
        subq    $24, %rsp
        movl    $97, %esi
        movl    $.LC0, %edi
        xorl    %eax, %eax
        movb    $98, 9(%rsp)
        call    printf
        movsbl  9(%rsp), %esi
        movl    $.LC0, %edi
        xorl    %eax, %eax
        call    printf
        xorl    %eax, %eax
        addq    $24, %rsp
        ret

-- 
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/20130510/16113805/attachment.html>


More information about the llvm-bugs mailing list