< prev index next >
test/compiler/c2/Test7048332.java
Print this page
rev 11557 : 8132919: use package in compiler tests
Reviewed-by: duke
*** 25,37 ****
/**
* @test
* @bug 7048332
* @summary Cadd_cmpLTMask doesn't handle 64-bit tmp register properly
*
! * @run main/othervm -Xbatch Test7048332
*/
public class Test7048332 {
static int capacity = 2;
static int first = 1;
--- 25,38 ----
/**
* @test
* @bug 7048332
* @summary Cadd_cmpLTMask doesn't handle 64-bit tmp register properly
*
! * @run main/othervm -Xbatch compiler.c2.Test7048332
*/
+ package compiler.c2;
public class Test7048332 {
static int capacity = 2;
static int first = 1;
*** 45,55 ****
result = last - first + capacity;
}
return result;
}
! public static void main(String [] args) {
for (int i = 0; i < 11000; i++) {
last = (i & 1) << 1; // 0 or 2
int k = test(1, 2, 3, 4, 5, 6);
if (k != 1) {
System.out.println("FAILED: " + k + " != 1");
--- 46,56 ----
result = last - first + capacity;
}
return result;
}
! public static void main(String[] args) {
for (int i = 0; i < 11000; i++) {
last = (i & 1) << 1; // 0 or 2
int k = test(1, 2, 3, 4, 5, 6);
if (k != 1) {
System.out.println("FAILED: " + k + " != 1");
< prev index next >