[LLVMbugs] [Bug 409] NEW: ConstantFP::isValueValidForType Broken
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Sun Jul 25 22:22:52 PDT 2004
http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=409
Summary: ConstantFP::isValueValidForType Broken
Product: libraries
Version: 1.0
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Core LLVM classes
AssignedTo: unassignedbugs at nondot.org
ReportedBy: rspencer at x10sys.com
This method will happily accept double values for float constants that are
clearly out of range or have precision beyond the acceptable precision of a
float. The current implementation accepts all double values as valid for float.
It shouldn't do that.
Simply casting double -> float -> double and comparing the two doubles doesn't
work well as a test because of rounding errors and/or conversion errors from
decimal notation in AsmParser. Hex conversions work fine as long as the value is
a valid FP double.
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the llvm-bugs
mailing list