[LLVMbugs] [Bug 14899] New: complex divide: finite / zero wrong

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jan 10 10:49:39 PST 2013


             Bug #: 14899
           Summary: complex divide: finite / zero 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+1.0*I) / (0.0+0.0*I) should be infinity, not NaN.  Same problem with:
(inf+nan*I) / (0.0+0.0*I)
(inf+0.0*I) / (0.0+0.0*I)

C99 and C11 have in Annex G:
  G.5.1#4, item 4:
  if the first operand is a nonzero finite number or an infinity and
  the second operand is a zero, then the result of the / operator is
  an infinity.

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