Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

Testcase we don't devirtualize #15961

Open Quuxplusone opened 11 years ago

Quuxplusone commented 11 years ago
Bugzilla Link PR15961
Status NEW
Importance P normal
Reported by Rafael Ávila de Espíndola (rafael@espindo.la)
Reported on 2013-05-10 10:47:28 -0700
Last modified on 2013-05-10 18:33:32 -0700
Version unspecified
Hardware PC Linux
CC baldrick@free.fr, clattner@nondot.org, dgregor@apple.com, llvm-bugs@lists.llvm.org, nlewycky@google.com
Fixed by commit(s)
Attachments inline-devirt-3.C (575 bytes, text/x-c++src)
Blocks
Blocked by
See also
Created attachment 10492
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:
        pushq   %rbx
        movl    $3, %ebx
.L11:
        xorl    %eax, %eax
        movl    $3, %esi
        movl    $.LC0, %edi
        call    printf
        subl    $1, %ebx
        jne     .L11
        xorl    %eax, %eax
        popq    %rbx
        ret
Quuxplusone commented 11 years ago

Attached inline-devirt-3.C (575 bytes, text/x-c++src): testcase

Quuxplusone commented 11 years ago

_Bug 8886 has been marked as a duplicate of this bug._