[LLVMbugs] [Bug 6431] New: incorrect significand bits in __builtin_nan
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Feb 26 07:38:20 PST 2010
http://llvm.org/bugs/show_bug.cgi?id=6431
Summary: incorrect significand bits in __builtin_nan
Product: clang
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P5
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: gohman at apple.com
CC: llvmbugs at cs.uiuc.edu
For this code:
double NaN = __builtin_nan("1");
GCC and llvm-gcc emit this:
.quad 9221120237041090561
aka 0x7ff8000000000001.
Clang emits this:
.quad 9218868441522372607
aka 0x7ff00000ffffffff.
The GCC manual section "Other Builtins" explicitly specifies how the string in
__builtin_nan is interpreted.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list