https://llvm.org/bugs/show_bug.cgi?id=14899
Richard Smith <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |[email protected] Resolution|--- |FIXED --- Comment #1 from Richard Smith <[email protected]> --- With recent Clang: (0.0+1.0*I) / (0.0+0.0*I) gives -nan + inf i (inf+nan*I) / (0.0+0.0*I) gives nan + nan i (inf+0.0I*I) / (0.0+0.0*I) gives inf + -nan i The first and third cases look correct. The second yields the wrong answer due to PR8532; the problem is that nan * I gives nan + nan i because I has type _Complex double, not _Imaginary double. However, given a nanI which is 0 + nan i: (inf+nanI) / (0.0+0.0*I) gives inf + nan i So I think this is now fixed. (Please reopen if the above don't look like the right infinite values for these cases.) -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list [email protected] http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs
