test/compiler/arguments/TestUseCountTrailingZerosInstructionOnSupportedCPU.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File 8038924 Cdiff test/compiler/arguments/TestUseCountTrailingZerosInstructionOnSupportedCPU.java

test/compiler/arguments/TestUseCountTrailingZerosInstructionOnSupportedCPU.java

Print this page
rev 6404 : 8038924: Test bit-instructions fails with unexpected exit value on sparc
Reviewed-by: iignatyev
Contributed-by: filipp.zhinkin@oracle.com

*** 39,70 **** import com.oracle.java.testlibrary.*; import com.oracle.java.testlibrary.cli.*; public class TestUseCountTrailingZerosInstructionOnSupportedCPU extends BMISupportedCPUTest { public TestUseCountTrailingZerosInstructionOnSupportedCPU() { super("UseCountTrailingZerosInstruction", TZCNT_WARNING, "bmi1"); } @Override public void runTestCases() throws Throwable { super.runTestCases(); ! // verify that option will be disabled if all BMI1 instuctions // are explicitly disabled ! CommandLineOptionTest. ! verifyOptionValue("UseCountTrailingZerosInstruction", "false", ! "-XX:-UseBMI1Instructions"); // verify that option could be turned on even if other BMI1 // instructions were turned off ! CommandLineOptionTest. ! verifyOptionValue("UseCountTrailingZerosInstruction", "true", ! "-XX:-UseBMI1Instructions", ! "-XX:+UseCountTrailingZerosInstruction"); } public static void main(String args[]) throws Throwable { new TestUseCountTrailingZerosInstructionOnSupportedCPU().test(); } --- 39,69 ---- import com.oracle.java.testlibrary.*; import com.oracle.java.testlibrary.cli.*; public class TestUseCountTrailingZerosInstructionOnSupportedCPU extends BMISupportedCPUTest { + private static final String DISABLE_BMI = "-XX:-UseBMI1Instructions"; public TestUseCountTrailingZerosInstructionOnSupportedCPU() { super("UseCountTrailingZerosInstruction", TZCNT_WARNING, "bmi1"); } @Override public void runTestCases() throws Throwable { super.runTestCases(); ! // verify that option will be disabled if all BMI1 instructions // are explicitly disabled ! CommandLineOptionTest.verifyOptionValueForSameVM(optionName, "false", ! TestUseCountTrailingZerosInstructionOnSupportedCPU.DISABLE_BMI); // verify that option could be turned on even if other BMI1 // instructions were turned off ! CommandLineOptionTest.verifyOptionValueForSameVM(optionName, "true", ! TestUseCountTrailingZerosInstructionOnSupportedCPU.DISABLE_BMI, ! CommandLineOptionTest.prepareBooleanFlag(optionName, true)); } public static void main(String args[]) throws Throwable { new TestUseCountTrailingZerosInstructionOnSupportedCPU().test(); }
test/compiler/arguments/TestUseCountTrailingZerosInstructionOnSupportedCPU.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File