< prev index next >
test/compiler/integerArithmetic/TestIntegerComparison.java
Print this page
rev 11557 : 8132919: use package in compiler tests
Reviewed-by: duke
*** 22,38 ****
*/
/*
* @test TestIntegerComparison
* @bug 8043284 8042786
! * @summary "Tests optimizations of signed and unsigned integer comparison."
! * @run main/othervm -Xcomp -XX:CompileOnly=TestIntegerComparison::testSigned,TestIntegerComparison::testUnsigned TestIntegerComparison
*/
public class TestIntegerComparison {
/**
* Tests optimization of signed integer comparison (see BoolNode::Ideal).
* The body of the if statement is unreachable and should not be compiled.
* @param c Character (value in the integer range [0, 65535])
*/
public static void testSigned(char c) {
// The following addition may overflow. The result is in one
// of the two ranges [IntMax] and [IntMin, IntMin + CharMax - 1].
--- 22,45 ----
*/
/*
* @test TestIntegerComparison
* @bug 8043284 8042786
! * @summary Tests optimizations of signed and unsigned integer comparison.
! *
! * @run main/othervm -Xcomp
! * -XX:CompileCommand=compileonly,compiler.integerArithmetic.TestIntegerComparison::testSigned
! * -XX:CompileCommand=compileonly,compiler.integerArithmetic.TestIntegerComparison::testUnsigned
! * compiler.integerArithmetic.TestIntegerComparison
*/
+ package compiler.integerArithmetic;
+
public class TestIntegerComparison {
/**
* Tests optimization of signed integer comparison (see BoolNode::Ideal).
* The body of the if statement is unreachable and should not be compiled.
+ *
* @param c Character (value in the integer range [0, 65535])
*/
public static void testSigned(char c) {
// The following addition may overflow. The result is in one
// of the two ranges [IntMax] and [IntMin, IntMin + CharMax - 1].
*** 47,56 ****
--- 54,64 ----
}
/**
* Tests optimization of unsigned integer comparison (see CmpUNode::Value).
* The body of the if statement is unreachable and should not be compiled.
+ *
* @param c Character (value in the integer range [0, 65535])
*/
public static void testUnsigned(char c) {
/*
* The following if statement consisting of two CmpIs is replaced
< prev index next >