When compiled with -Xcomp -XX:CompileOnly=.bar, the following program produces the wrong answer:
public class foo2 {
public static void main(String[] args) {
int v2 = bar_none();
System.out.println("v2 = " + java.lang.Integer.toHexString(v2) );
}
static int bar_none() {
return bar(0x6EEEEEE, 0x5FFFFFFF);
}
static int bar(int a1, int a2) {
int v1, v2, v3, v4;
v3 = 0x6FEFEFEF;
v1 = 0xCFEFF05C;
v2 = (a1*v1) * v3;
return v2;
}
}
public class foo2 {
public static void main(String[] args) {
int v2 = bar_none();
System.out.println("v2 = " + java.lang.Integer.toHexString(v2) );
}
static int bar_none() {
return bar(0x6EEEEEE, 0x5FFFFFFF);
}
static int bar(int a1, int a2) {
int v1, v2, v3, v4;
v3 = 0x6FEFEFEF;
v1 = 0xCFEFF05C;
v2 = (a1*v1) * v3;
return v2;
}
}
- relates to
-
JDK-4441284 [c2_baseline/compiler2/20010410-175359]: CTW assertion at phaseX.cpp, 534 [ Patc
-
- Closed
-
-
JDK-4460250 Assertion in PhaseValues::makecon due to missing overflow check
-
- Closed
-