From 2fc7bdcbd4d0f5888a130ab4f54fac9faec241a1 Mon Sep 17 00:00:00 2001 From: Kerem Kat Date: Mon, 9 Mar 2026 11:43:36 +0000 Subject: [PATCH] 8379411: Use TestFramework scenarios in 837841 Reviewed-by: qamai, dfenacci, chagedorn --- .../compiler/c2/gvn/MissedURShiftIAddILShiftIdeal.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/test/hotspot/jtreg/compiler/c2/gvn/MissedURShiftIAddILShiftIdeal.java b/test/hotspot/jtreg/compiler/c2/gvn/MissedURShiftIAddILShiftIdeal.java index a1f4f011466..dd446d8bb25 100644 --- a/test/hotspot/jtreg/compiler/c2/gvn/MissedURShiftIAddILShiftIdeal.java +++ b/test/hotspot/jtreg/compiler/c2/gvn/MissedURShiftIAddILShiftIdeal.java @@ -24,6 +24,7 @@ package compiler.c2.gvn; import compiler.lib.ir_framework.*; import jdk.test.lib.Asserts; +import jdk.test.lib.Platform; import jdk.test.lib.Utils; import java.util.Random; @@ -35,15 +36,18 @@ import java.util.Random; * regardless of Add input order, i.e. it is commutative w.r.t. the addition. * @library /test/lib / * @run driver ${test.main.class} - * @run driver ${test.main.class} -XX:+IgnoreUnrecognizedVMOptions -XX:+UnlockDiagnosticVMOptions - * -XX:VerifyIterativeGVN=1110 -Xbatch -XX:CompileCommand=compileonly,${test.main.class}::* */ public class MissedURShiftIAddILShiftIdeal { private static final Random RANDOM = Utils.getRandomInstance(); public static void main(String[] args) { - TestFramework.run(); + var framework = new TestFramework(); + framework.addScenarios(new Scenario(0)); + if (Platform.isDebugBuild()) { + framework.addScenarios(new Scenario(1, "-XX:+IgnoreUnrecognizedVMOptions", "-XX:VerifyIterativeGVN=1110")); + } + framework.start(); } @Run(test = {"testI", "testICommuted", "testIComputedY",