PR middle-end/84406
commit13e61f3e50b9662efbe350470ef5be477ceaac2d
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Feb 2018 19:11:34 +0000 (20 19:11 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Feb 2018 19:11:34 +0000 (20 19:11 +0000)
treefa807849e74c330eb4c83653fede33ed0db07e80
parent7368576a98593b68a154835be50d632e5e54472b
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@257858 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/optabs-query.c