[Bug target/77729] aarch64 inserts unneeded uxtb after ldrb, orr ...32

jak@jak-linux.org gcc-bugzilla@gcc.gnu.org
Sun Sep 25 15:19:00 GMT 2016


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

--- Comment #9 from Julian Andres Klode <jak@jak-linux.org> ---
(In reply to Andrew Pinski from comment #8)
> This looks like missing removal of casts.
> 
> Note in C, char_var|32 is really the same as ((int)char_var)|32

Well. The loads of the byte are already zero-extend loads. The current code is
like saying:

   (int) ((int)char|32)

:)


More information about the Gcc-bugs mailing list