https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89679
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Aug 30 12:19:33 2019 New Revision: 275132 URL: https://gcc.gnu.org/viewcvs?rev=275132&root=gcc&view=rev Log: Backported from mainline 2019-03-14 Jakub Jelinek <ja...@redhat.com> PR rtl-optimization/89679 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it would contain a paradoxical SUBREG. * gcc.dg/pr89679.c: New test. Added: branches/gcc-7-branch/gcc/testsuite/gcc.dg/pr89679.c Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/expmed.c branches/gcc-7-branch/gcc/testsuite/ChangeLog