https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70222
--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Wed Mar 30 12:41:40 2016 New Revision: 234563 URL: https://gcc.gnu.org/viewcvs?rev=234563&root=gcc&view=rev Log: Backported from mainline 2016-03-15 Jakub Jelinek <ja...@redhat.com> PR rtl-optimization/70222 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT optimization if mode is different from result_mode, queue up masking of the result in outer_op. Formatting fix. * gcc.c-torture/execute/pr70222-1.c: New test. * gcc.c-torture/execute/pr70222-2.c: New test. Added: branches/gcc-5-branch/gcc/testsuite/gcc.c-torture/execute/pr70222-1.c branches/gcc-5-branch/gcc/testsuite/gcc.c-torture/execute/pr70222-2.c Modified: branches/gcc-5-branch/gcc/ChangeLog branches/gcc-5-branch/gcc/combine.c branches/gcc-5-branch/gcc/testsuite/ChangeLog