https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111501
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pinskia at gcc dot gnu.org --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I think there might be a dup of this bug already. Also with zbb, GCC gets: srli a0,a0,32 zext.h a0,a0 ret