https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84406
--- Comment #13 from Jeffrey A. Law <law at gcc dot gnu.org> --- Author: law Date: Tue Feb 20 19:11:34 2018 New Revision: 257858 URL: https://gcc.gnu.org/viewcvs?rev=257858&root=gcc&view=rev Log: PR middle-end/84406 * optabs-query.c (find_widening_optab_handler_and_mode): If from_mode is a scalar_int_mode, assert that to_mode is a scalar_int_mode with greater precision. If to_mode is a MODE_PARTIAL_INT, stop the search at the associated MODE_INT. Modified: trunk/gcc/ChangeLog trunk/gcc/optabs-query.c