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

Reply via email to