re PR target/84406 ([MSP430] ICE on valid code in find_widening_optab_handler_and_mod...
authorRichard Sandiford <richard.sandiford@linaro.org>
Tue, 20 Feb 2018 19:11:34 +0000 (19:11 +0000)
committerJeff Law <law@gcc.gnu.org>
Tue, 20 Feb 2018 19:11:34 +0000 (12:11 -0700)
commit2fad0cf503f695d737bcabb2dad5c4d10852cca6
treefa807849e74c330eb4c83653fede33ed0db07e80
parente506dc87a0d7d0f55a6b727885e170dcc2948014
re PR target/84406 ([MSP430] ICE on valid code in find_widening_optab_handler_and_mode, at optabs-query.c:476)

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.

From-SVN: r257858
gcc/ChangeLog
gcc/optabs-query.c