[LLVMbugs] [Bug 20849] clang miscompiles basic C code involving modulo at -O3

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Sep 5 10:33:01 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=20849

Sanjay Patel <spatel+llvm at rotateright.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |spatel+llvm at rotateright.com
         Resolution|---                         |DUPLICATE

--- Comment #3 from Sanjay Patel <spatel+llvm at rotateright.com> ---
(In reply to comment #1)
> This works for me with Clang trunk at r217196. It would be good to figure
> out which change fixed this and get it into 3.5.1.

Hi Richard,

This was fixed with r214011 (bug 20355):
http://llvm.org/viewvc/llvm-project?view=revision&revision=214011

There was one more fix related to that vector division code at r215604:
http://llvm.org/viewvc/llvm-project?view=revision&revision=215604

Note that integer division is still miscompiling:
bug 20494

*** This bug has been marked as a duplicate of bug 20355 ***

-- 
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/20140905/148e3042/attachment.html>


More information about the llvm-bugs mailing list