[Bug target/84406] [8 Regression][MSP430] ICE on valid code in find_widening_optab_handler_and_mode, at optabs-query.c:476

law at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Feb 20 19:16:00 GMT 2018


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


More information about the Gcc-bugs mailing list