RVM

Incorrect rounding on simplified integer divide

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 2.9.3
  • Fix Version/s: 3.0
  • Component/s: Compiler: Optimizing
  • Labels:
    None
  • Number of attachments :
    0

Description

When simplified the result of:

static int int_3 = -3;

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

instead of being -1 returns -2.

Activity

Hide
Ian Rogers added a comment -

Fix committed in r14674, test case in r14675.

Show
Ian Rogers added a comment - Fix committed in r14674, test case in r14675.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: