[LLVMbugs] [Bug 14897] New: complex divide: finite / infinity wrong
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Jan 10 08:16:33 PST 2013
http://llvm.org/bugs/show_bug.cgi?id=14897
Bug #: 14897
Summary: complex divide: finite / infinity wrong
Product: clang
Version: 3.1
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: tydeman at tybor.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
(0.0+0.0*I) / (inf+inf*I) should be (0.0+0.0*I), not (nan+nan*I)
Similar failures happen for:
(max+max*I) / (inf+inf*I)
(max+max*I) / (fin+nan*I)
This is a requirement of Annex G of C99 and C11.
G.5.1#4, item 3:
if the first operand is a finite number and the second operand is
an infinity, then the result of the / operator is a zero;
--
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