PATCH: HUGE_VAL should be Infinity
John David Anglin
dave@hiauly1.hia.nrc.ca
Thu Nov 30 12:16:00 GMT 2000
> > Nyet. Recent HP chips (all PA2.0 variants) have fneg which provides an
> > ieee compliant negation.
>
> Wrong. I tried fneg on a C200 and again negation of +0. yielded +0. The
> behaviour was identical to that of the 735. Thus, I don't believe that
> all the new PA2.0 chips provide an ieee compliant negation. HP is usually
> pretty good about this kind of thing which was why I wondered if there
> was some debate about the standard.
I retested this and it appears that I made a mistake in my original testing.
The fneg instruction on PA2.0 gear does negate +0. correctly. Thus, there
is only a problem with PA1.0 and PA1.1 hardware which uses fsub. The HP
compiler doesn't have the problem since it multiplies by -1. instead.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
More information about the Gcc-patches
mailing list