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: Patch for PR target/20924


Steve Ellcey <sje@cup.hp.com> writes:

> This patch fixes PR target/20924 where the inline division sequences
> were not correctly setting the floating point flags.  This was because
> the frcpa (floating point reciprical approximation) instruction was
> being done with floating point status register 1 instead of 0.
>
> This patch makes the inline sequence use fprca with fpsr 0 and makes it
> match the code in the assembly routines in lib1funcs.asm.
>
> I tested it on IA64 HP-UX and Linux with no regressions and tested
> the test case in PR 20924 to verify that my fix fixed the problem
> there.
>
> OK for checkin on ToT?

This is needed for 4.0 as well!

Andreas
-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SUSE Linux Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

Attachment: pgp00000.pgp
Description: PGP signature


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