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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Failure to optimize out     |Failure to optimize a sign
                   |sign extension when input   |extension to a zero
                   |is non-negative             |extension
          Component|middle-end                  |target

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #1)
> Actually this can be done without the __builtin_unreachable due to the abi.

I mean this can never be done without it. Also a zero extend vs sign extend
might be the same cost really. So it does not matter in the end.

Note the move you reference is  zero extend.

Reply via email to