https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69442
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 37467 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37467&action=edit gcc6-pr69442.patch Untested fix. Seems the above mentioned commit newly defined REG_EQUAL for ZERO_EXTRACT lhs, but has adjusted just CSE and not other places for it. As can be seen in the fix, we also need to adjust the combiner, and I wonder if e.g. the RA or other places don't need adjustments too.