@Override public void runTestCases() throws Throwable { super.runTestCases(); /* Verify that option will be disabled if all BMI1 instructions are explicitly disabled. VM will be launched with following options: -XX:-UseBMI1Instructions -version */ CommandLineOptionTest.verifyOptionValueForSameVM( optionName, "false", "Option 'UseCountTrailingZerosInstruction' should have " + "'false' value if all BMI1 instructions are explicitly" + " disabled (-XX:-UseBMI1Instructions flag used)", TestUseCountTrailingZerosInstructionOnSupportedCPU.DISABLE_BMI); /* Verify that option could be turned on even if other BMI1 instructions were turned off. VM will be launched with following options: -XX:-UseBMI1Instructions -XX:+UseCountTrailingZerosInstruction -version */ CommandLineOptionTest.verifyOptionValueForSameVM( optionName, "true", "Option 'UseCountTrailingZerosInstruction' should be able to " + "be turned on even if all BMI1 instructions are " + "disabled (-XX:-UseBMI1Instructions flag used)", TestUseCountTrailingZerosInstructionOnSupportedCPU.DISABLE_BMI, CommandLineOptionTest.prepareBooleanFlag(optionName, true)); }