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 rtl-optimization/46925] Can't optimize degenerate table jumps


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46925

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
      Known to work|                            |8.2.0
         Resolution|---                         |FIXED
   Target Milestone|---                         |8.2

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
GCC 8.2 generates:

        .file   "x.c"
        .text
        .p2align 4,,15
        .globl  foo
        .type   foo, @function
foo:
.LFB0:
        .cfi_startproc
        cmpl    $4, %edi
        ja      .L3
        movq    (%rsi), %rax
        ret
        .p2align 4,,10
        .p2align 3
.L3:
        xorl    %eax, %eax
        ret
        .cfi_endproc
.LFE0:
        .size   foo, .-foo
        .ident  "GCC: (GNU) 8.2.1 20181105 (Red Hat 8.2.1-5)"
        .section        .note.GNU-stack,"",@progbits

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