This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: remove wrong code in immed_double_const
Richard Sandiford <rdsandiford@googlemail.com> writes:
> Should be:
>
> if (add_double_with_sign (l1, h1, l2, h2, &lv, &hv, false))
> /* Sorry, we have no way to represent overflows this
> wide. To fix, add constant support wider than
> CONST_DOUBLE. */
> gcc_assert (GET_MODE_BITSIZE (mode) > 2 * HOST_BITS_PER_WIDE_INT)
Er, I did of course mean:
gcc_assert (GET_MODE_BITSIZE (mode) <= 2 * HOST_BITS_PER_WIDE_INT)
:-)
Richard