This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: int to float conversions
- From: Richard Henderson <rth at redhat dot com>
- To: Andrey Petrov <petrov at netbsd dot org>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 7 Feb 2003 11:35:35 -0800
- Subject: Re: int to float conversions
- References: <20030207001308.GA1104@NetBSD.ORG>
On Thu, Feb 06, 2003 at 04:13:08PM -0800, Andrey Petrov wrote:
> While looking on how integers are converted to floats I noticed
> that expand_float searches for insn starting with wider float-modes
> first (inner loop) and then wider integer modes (outer loop).
> It seems to me that it would be better to use reverse search.
That seems reasonable. The argument being that if we convert
to a wider fp mode, we'll have to truncate back down, which
may lead to double rounding issues.
Applied.
r~