This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/58387] wrong code at -Os and above on x86_64-linux-gnu (both 32-bit and 64-bit modes)


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58387

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Not even with r202421.
Content of main with that revision for x86_64 -Os is:
    .cfi_startproc
    pushq    %rcx
    .cfi_def_cfa_offset 16
    movl    a(%rip), %esi
    testl    %esi, %esi
    je    .L4
    negl    %esi
    testl    %esi, %esi
    jg    .L3
    jmp    .L2
.L4:
    xorl    %esi, %esi
.L2:
    movl    $.LC0, %edi
    xorl    %eax, %eax
    call    printf
.L3:
    xorl    %eax, %eax
    popq    %rdx
    .cfi_def_cfa_offset 8
    ret


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]