[LLVMbugs] [Bug 7584] Bad code generated for Remainder operation

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jul 7 09:07:04 PDT 2010


Chris Lattner <clattner at apple.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #2 from Chris Lattner <clattner at apple.com> 2010-07-07 11:07:04 CDT ---
Clang agrees with GCC here.  I don't have time to go language lawyer this, but
I'm pretty sure we're right. :)

If the quotient a/b is representable, the expression (a/b)*b + a%b shall equal
a.  Note that -2/5 is 0, not -1.


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.

More information about the llvm-bugs mailing list