[LLVMbugs] [Bug 20083] New: real / complex wrong
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Jun 19 16:49:25 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=20083
Bug ID: 20083
Summary: real / complex wrong
Product: clang
Version: 3.3
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: tydeman at tybor.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Dividing a real by a complex gets the wrong answer. C99 and C11 both require
that the default for limited range for complex divide is OFF (meaning, the full
exponent range must be allowed for).
float f;
float complex fc;
fc = f = FLT_MIN; /* or FLT_MAX */
fc = f / fc; /* produces wrong answer; should be 1.f+0.F*I; not NAN */
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140619/45e73ce8/attachment.html>
More information about the llvm-bugs
mailing list