Skip to content

Commit 1f9f873

Browse files
committed
8285980: Several tests in compiler/c2/irTests miss @requires vm.compiler2.enabled
Reviewed-by: thartmann
1 parent cf81f6c commit 1f9f873

9 files changed

+9
-0
lines changed

test/hotspot/jtreg/compiler/c2/irTests/TestCountedLoopSafepoint.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
* bug 8281322
3131
* @summary check counted loop is properly constructed with/without safepoint
3232
* @library /test/lib /
33+
* @requires vm.compiler2.enabled
3334
* @run driver compiler.c2.irTests.TestCountedLoopSafepoint
3435
*/
3536

test/hotspot/jtreg/compiler/c2/irTests/TestDuplicateBackedge.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
* @bug 8279888
3232
* @summary Local variable independently used by multiple loops can interfere with loop optimizations
3333
* @library /test/lib /
34+
* @requires vm.compiler2.enabled
3435
* @run driver compiler.c2.irTests.TestDuplicateBackedge
3536
*/
3637

test/hotspot/jtreg/compiler/c2/irTests/TestFewIterationsCountedLoop.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
* @bug 8262721
3131
* @summary Add Tests to verify single iteration loops are properly optimized
3232
* @library /test/lib /
33+
* @requires vm.compiler2.enabled
3334
* @run driver compiler.c2.irTests.TestFewIterationsCountedLoop
3435
*/
3536

test/hotspot/jtreg/compiler/c2/irTests/TestIRAddIdealNotXPlusC.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
* @summary Test that transformation from ~x + c to (c - 1) - x and
3333
* from ~(x + c) to (-c - 1) - x works as intended.
3434
* @library /test/lib /
35+
* @requires vm.compiler2.enabled
3536
* @run driver compiler.c2.irTests.TestIRAddIdealNotXPlusC
3637
*/
3738
public class TestIRAddIdealNotXPlusC {

test/hotspot/jtreg/compiler/c2/irTests/TestIRLShiftIdeal_XPlusX_LShiftC.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
* @bug 8278114
3232
* @summary Test that transformation from (x + x) >> c to x >> (c + 1) works as intended.
3333
* @library /test/lib /
34+
* @requires vm.compiler2.enabled
3435
* @run driver compiler.c2.irTests.TestIRLShiftIdeal_XPlusX_LShiftC
3536
*/
3637
public class TestIRLShiftIdeal_XPlusX_LShiftC {

test/hotspot/jtreg/compiler/c2/irTests/TestLongRangeChecks.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
* @bug 8259609 8276116
3232
* @summary C2: optimize long range checks in long counted loops
3333
* @library /test/lib /
34+
* @requires vm.compiler2.enabled
3435
* @run driver compiler.c2.irTests.TestLongRangeChecks
3536
*/
3637

test/hotspot/jtreg/compiler/c2/irTests/TestSkeletonPredicates.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
* @bug 8278228
3333
* @summary C2: Improve identical back-to-back if elimination
3434
* @library /test/lib /
35+
* @requires vm.compiler2.enabled
3536
* @run driver compiler.c2.irTests.TestSkeletonPredicates
3637
*/
3738

test/hotspot/jtreg/compiler/c2/irTests/TestStripMiningDropsSafepoint.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
* @bug 8282045
3131
* @summary When loop strip mining fails, safepoints are removed from loop anyway
3232
* @library /test/lib /
33+
* @requires vm.compiler2.enabled
3334
* @run driver compiler.c2.irTests.TestStripMiningDropsSafepoint
3435
*/
3536

test/hotspot/jtreg/compiler/c2/irTests/TestSuperwordFailsUnrolling.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
* @summary C2: loop candidate for superword not always unrolled fully if superword fails
3333
* @library /test/lib /
3434
* @build sun.hotspot.WhiteBox
35+
* @requires vm.compiler2.enabled
3536
* @run driver jdk.test.lib.helpers.ClassFileInstaller sun.hotspot.WhiteBox
3637
* @run main/othervm -Xbootclasspath/a:. -DSkipWhiteBoxInstall=true -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI compiler.c2.irTests.TestSuperwordFailsUnrolling
3738
*/

0 commit comments

Comments
 (0)