https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89679
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Tue Apr 30 20:44:48 2019 New Revision: 270730 URL: https://gcc.gnu.org/viewcvs?rev=270730&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-8-branch/gcc/testsuite/gcc.dg/pr89679.c Modified: branches/gcc-8-branch/gcc/ChangeLog branches/gcc-8-branch/gcc/expmed.c branches/gcc-8-branch/gcc/testsuite/ChangeLog