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

Daniel Henrique Barboza <daniel.barboza at oss dot qualcomm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daniel.barboza at oss dot 
qualcomm
                   |                            |.com

--- Comment #5 from Daniel Henrique Barboza <daniel.barboza at oss dot 
qualcomm.com> ---
According to godbolt this is the generated asm for trunk:

        mov     w2, 32896
        tst     w1, w2
        cset    w1, ne
        lsl     w1, w1, 3
        lsr     w0, w0, w1
        ret

I checked the 'optimized' dump and it's already similar to what I'm doing for
56110 (I'll send patches soon, hopefully).

Maybe this optimization got sorted out by its own after GCC 11.
  • [Bug tree-optimization... daniel.barboza at oss dot qualcomm.com via Gcc-bugs

Reply via email to