]> git.ipfire.org Git - thirdparty/gcc.git/commit
rtl-optimization/103075 - avoid ICEing on unfolded int-to-float converts
authorRichard Biener <rguenther@suse.de>
Thu, 4 Nov 2021 08:17:18 +0000 (09:17 +0100)
committerRichard Biener <rguenther@suse.de>
Thu, 4 Nov 2021 12:33:19 +0000 (13:33 +0100)
commitd13603501680fcdbb933cb086cd01fcc39be1908
tree8fe323a2669e7e309b0cac142890bc18170704fd
parentd43fc1df7344e9cb705d3ca40217ff4e39aab5bf
rtl-optimization/103075 - avoid ICEing on unfolded int-to-float converts

The following avoids asserting in exact_int_to_float_conversion_p that
the argument is not constant which it in fact can be with
-frounding-math and inexact int-to-float conversions.  Say so.

2021-11-04  Richard Biener  <rguenther@suse.de>

PR rtl-optimization/103075
* simplify-rtx.c (exact_int_to_float_conversion_p): Return
false for a VOIDmode operand.

* gcc.dg/pr103075.c: New testcase.
gcc/simplify-rtx.c
gcc/testsuite/gcc.dg/pr103075.c [new file with mode: 0644]