http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57819
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 30456 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30456&action=edit gcc49-pr57819.patch Untested fix. I've actually had in one version also optimization of the zero_extend if SUBREG_REG's mode is wider then ZERO_EXTEND mode - then just return lowpart subreg, but that breaks the test1 function, the matching is quite sensitive.