This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: int to float conversions


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]