http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54157
--- Comment #7 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> 2012-08-09 15:33:36 UTC --- Author: hjl Date: Thu Aug 9 15:33:28 2012 New Revision: 190256 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=190256 Log: Don't return identity for CONST or symbolic reference gcc/ 2012-08-09 H.J. Lu <hongjiu...@intel.com> Backport from mainline 2012-08-08 Richard Sandiford <rdsandif...@googlemail.com> H.J. Lu <hongjiu...@intel.com> PR rtl-optimization/54157 * combine.c (gen_lowpart_for_combine): Don't return identity for CONST or symbolic reference. gcc/testsuite/ 2012-08-09 H.J. Lu <hongjiu...@intel.com> Backport from mainline 2012-08-08 H.J. Lu <hongjiu...@intel.com> PR rtl-optimization/54157 * gcc.target/i386/pr54157.c: New file. Added: branches/gcc-4_7-branch/gcc/testsuite/gcc.target/i386/pr54157.c Modified: branches/gcc-4_7-branch/gcc/ChangeLog branches/gcc-4_7-branch/gcc/combine.c branches/gcc-4_7-branch/gcc/testsuite/ChangeLog