[llvm-bugs] [Bug 14899] complex divide: finite / zero wrong
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Oct 29 13:06:50 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=14899
Richard Smith <richard-llvm at metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |richard-llvm at metafoo.co.uk
Resolution|--- |FIXED
--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151029/e0cb34da/attachment.html>
More information about the llvm-bugs
mailing list