This is the mail archive of the gcc@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: Floating point trouble with x86's extended precision


> Actually, the easiest thing to do is to change the register allocator to
> spill values in their 80-bit form.  This at least eliminates the
> unpredictable extra rounding that you get because of register pressure.
> We use this strategy in the LLVM x86 backend, and it seems to work pretty
> well.  This obviously is not a complete solution, but it's one easy
> step...

Well this seems clear. AFter all if you *are* using 80-bit fpt, then I
would definitely say it is a bug to do a 64-bit spill. Extra precision
is one thing, random loss of precision is another (and would for example
violate the Ada standard requirements).


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