[LLVMbugs] [Bug 2003] Incorrect iteration count for loop with unsigned ICMP condition

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Feb 11 21:53:09 PST 2008


Nick Lewycky <nicholas at mxc.ca> changed:

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

--- Comment #1 from Nick Lewycky <nicholas at mxc.ca>  2008-02-11 23:53:09 ---
If %n = 0, then we get %n - 100 = -100 = +156 (unsigned). And this is the
correct loop trip count; if you start at 100, it'll take you 156 (256-100)
iterations to get back around to zero.

Reopen if you find a counter-example.

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