https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85344
--- Comment #23 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #22) > The last time trunc_int_for_mode changed for the sign extendness was in > 2001, by g:5b0d91c39237 . > > This changed it to sign extend it for all modes rather than just 32bits mode > (while on a 64bit host; back when HWI could be either 32bit or 64bit). https://gcc.gnu.org/pipermail/gcc-patches/2001-January/043724.html https://gcc.gnu.org/pipermail/gcc-patches/2001-February/043950.html