Issue Details (XML | Word | Printable)

Key: RVM-583
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Ian Rogers
Reporter: Ian Rogers
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
RVM

Incorrect rounding on simplified integer divide

Created: 08/Jul/08 05:12 AM   Updated: 08/Jul/08 07:44 AM
Component/s: Compiler: Optimizing
Affects Version/s: 2.9.3
Fix Version/s: 3.0

Time Tracking:
Not Specified


 Description  « Hide
When simplified the result of:

static int int_3 = -3;

...() { System.out.println(int_3/2); }

instead of being -1 returns -2.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Ian Rogers added a comment - 08/Jul/08 07:44 AM
Fix committed in r14674, test case in r14675.