re PR rtl-optimization/85300 (ICE in exact_int_to_float_conversion_p, at simplify...
authorJakub Jelinek <jakub@redhat.com>
Tue, 10 Apr 2018 15:31:57 +0000 (17:31 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 10 Apr 2018 15:31:57 +0000 (17:31 +0200)
commite0cf12bab54f45840d9af4ed573a2e6aee4b448f
treebcae03e70c5920c8e845d53b7cab32e268135c9b
parentefbf619bab726bad8d69c8d765cc2e6cba3d9fc3
re PR rtl-optimization/85300 (ICE in exact_int_to_float_conversion_p, at simplify-rtx.c:895)

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.

From-SVN: r259285
gcc/ChangeLog
gcc/combine.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr85300.c [new file with mode: 0644]