[LLVMbugs] [Bug 2048] New: Invalid division incombine with division by constants

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Feb 16 02:11:35 PST 2008


           Summary: Invalid division incombine with division by constants
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu

Take the following function:

int i(int a) {return a/-1431655765/3;}

LLVM concludes that this is equivalent to the following:

define i32 @i(i32 %a) nounwind  {
        ret i32 %a

This is clearly wrong.

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