https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89195
--- Comment #16 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Aug 30 11:38:28 2019 New Revision: 275099 URL: https://gcc.gnu.org/viewcvs?rev=275099&root=gcc&view=rev Log: Backported from mainline 2019-02-05 Jakub Jelinek <ja...@redhat.com> PR rtl-optimization/89195 * combine.c (make_extraction): For MEMs, don't extract bytes outside of the original MEM. * gcc.c-torture/execute/pr89195.c: New test. Added: branches/gcc-7-branch/gcc/testsuite/gcc.c-torture/execute/pr89195.c Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/combine.c branches/gcc-7-branch/gcc/testsuite/ChangeLog