This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/27627] __builtin_nanf("") doesn't return a _quiet_ nan on parisc
- From: "rth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 May 2006 15:00:25 -0000
- Subject: [Bug target/27627] __builtin_nanf("") doesn't return a _quiet_ nan on parisc
- References: <bug-27627-1608@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from rth at gcc dot gnu dot org 2006-05-23 15:00 -------
(In reply to comment #4)
> This isn't a target bug as far as I can tell. The value generated
> by __builtin_nanf("") as shown by Nan2.c is 0x7fc00000. The same
> value is printed on x86. This is a signaling NaN. Positive quiet
> NaNs range between 0x7f800001 and 0x7fbfffff.
Incorrect. The canonical QNaN on x86 (and most other targets) is
0x7fc00000. It would seem that PA has the same reversed quiet bit
as MIPS. See real_format->qnan_msb_set and mips_ieee_single.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27627