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]

Re: PATCH: HUGE_VAL should be Infinity


> > According to my tests, at least some PA1.1 chips have the fneg instruction.
> > I ran tests with it on the 735 that I have.  However, probably some PA1.1
> > chips don't have it or the HP hardware engineers forgot to tell the software
> > folks about it (or maybe they noticed bugs in the implementation).  Anyway,
> > the fneg on the 735 behaves the same as subtracting from 0.  Thus, there
> > is no advantage in using it.
> 
> Or possibly HP/UX catches the unimplemented instruction trap and simulates the
> unimplemented instruction, and then restarts the program.  Obviously if that is

A quick test and you are correct.  HP/UX 10.20 emulates fneg when required.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)

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