https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67028
--- Comment #7 from Segher Boessenkool <segher at gcc dot gnu.org> --- Author: segher Date: Tue Aug 18 12:21:41 2015 New Revision: 226967 URL: https://gcc.gnu.org/viewcvs?rev=226967&root=gcc&view=rev Log: PR rtl-optimization/67028 * combine.c (simplify_comparison): Fix comment. Rearrange code. Add test to see if a const_int fits in the new mode. gcc/testsuite/ PR rtl-optimization/67028 * gcc.dg/pr67028.c: New testcase. Added: branches/gcc-5-branch/gcc/testsuite/gcc.dg/pr67028.c Modified: branches/gcc-5-branch/gcc/ChangeLog branches/gcc-5-branch/gcc/combine.c branches/gcc-5-branch/gcc/testsuite/ChangeLog