https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89195
--- Comment #14 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Thu Feb 7 14:55:04 2019 New Revision: 268646 URL: https://gcc.gnu.org/viewcvs?rev=268646&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-8-branch/gcc/testsuite/gcc.c-torture/execute/pr89195.c Modified: branches/gcc-8-branch/gcc/ChangeLog branches/gcc-8-branch/gcc/combine.c branches/gcc-8-branch/gcc/testsuite/ChangeLog