https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63843
--- Comment #6 from Christophe Lyon <clyon at gcc dot gnu.org> --- Author: clyon Date: Thu Jun 4 12:43:03 2015 New Revision: 224125 URL: https://gcc.gnu.org/viewcvs?rev=224125&root=gcc&view=rev Log: 2015-06-02 Christophe Lyon <christophe.l...@linaro.org> Backport from trunk r217753. 2014-11-19 Jakub Jelinek <ja...@redhat.com> PR rtl-optimization/63843 gcc/ * simplify-rtx.c (simplify_binary_operation_1) <case ASHIFTRT>: For optimization of ashiftrt of subreg of lshiftrt, check that code is ASHIFTRT. gcc/testsuite * gcc.c-torture/execute/pr63843.c: New test. Added: branches/linaro/gcc-4_9-branch/gcc/testsuite/gcc.c-torture/execute/pr63843.c Modified: branches/linaro/gcc-4_9-branch/gcc/ChangeLog.linaro branches/linaro/gcc-4_9-branch/gcc/simplify-rtx.c branches/linaro/gcc-4_9-branch/gcc/testsuite/ChangeLog.linaro