https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85300
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Jun 22 21:10:17 2018 New Revision: 261953 URL: https://gcc.gnu.org/viewcvs?rev=261953&root=gcc&view=rev Log: Backported from mainline 2018-04-10 Jakub Jelinek <ja...@redhat.com> PR rtl-optimization/85300 * combine.c (subst): Handle subst of CONST_SCALAR_INT_P new_rtx also into FLOAT and UNSIGNED_FLOAT like ZERO_EXTEND, return a CLOBBER if simplify_unary_operation fails. * gcc.dg/pr85300.c: New test. Added: branches/gcc-7-branch/gcc/testsuite/gcc.dg/pr85300.c Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/combine.c branches/gcc-7-branch/gcc/testsuite/ChangeLog