[LLVMbugs] [Bug 19105] New: llvm.smul.with.overflow overflow detection fails for i18

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Mar 11 04:42:13 PDT 2014


            Bug ID: 19105
           Summary: llvm.smul.with.overflow overflow detection fails for
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
          Assignee: unassignedbugs at nondot.org
          Reporter: Erik.Verbruggen at Me.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

llvm.smul.with.overflow.i18 does not give the right value when the result of a
multiplication is INT18_MIN. Examples:

-131073 * -1 -> 0 instead of 1
-43691 * 3 -> 1 instead of 0
-3 * 43691 -> 1 instead of 0

The same is true for the various permutations of the last two 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/20140311/39931522/attachment.html>

More information about the llvm-bugs mailing list