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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to