hotspot/test/compiler/arguments/TestUseCountTrailingZerosInstructionOnSupportedCPU.java
changeset 28200 38d3bf236c31
parent 28190 5a6b07edeb21
child 29678 dd2f3932c21e
equal deleted inserted replaced
28199:b7fb20a745f7 28200:38d3bf236c31
    57           Verify that option will be disabled if all BMI1 instructions
    57           Verify that option will be disabled if all BMI1 instructions
    58           are explicitly disabled. VM will be launched with following options:
    58           are explicitly disabled. VM will be launched with following options:
    59           -XX:-UseBMI1Instructions -version
    59           -XX:-UseBMI1Instructions -version
    60         */
    60         */
    61         CommandLineOptionTest.verifyOptionValueForSameVM(optionName, "false",
    61         CommandLineOptionTest.verifyOptionValueForSameVM(optionName, "false",
       
    62                 "Option 'UseCountTrailingZerosInstruction' should have "
       
    63                     + "'false' value if all BMI1 instructions are explicitly"
       
    64                     + " disabled (-XX:-UseBMI1Instructions flag used)",
    62                 TestUseCountTrailingZerosInstructionOnSupportedCPU.DISABLE_BMI);
    65                 TestUseCountTrailingZerosInstructionOnSupportedCPU.DISABLE_BMI);
    63 
    66 
    64         /*
    67         /*
    65           Verify that option could be turned on even if other BMI1
    68           Verify that option could be turned on even if other BMI1
    66           instructions were turned off. VM will be launched with following
    69           instructions were turned off. VM will be launched with following
    67           options: -XX:-UseBMI1Instructions
    70           options: -XX:-UseBMI1Instructions
    68           -XX:+UseCountTrailingZerosInstruction -version
    71           -XX:+UseCountTrailingZerosInstruction -version
    69         */
    72         */
    70         CommandLineOptionTest.verifyOptionValueForSameVM(optionName, "true",
    73         CommandLineOptionTest.verifyOptionValueForSameVM(optionName, "true",
       
    74                 "Option 'UseCountTrailingZerosInstruction' should be able to "
       
    75                     + "be turned on even if all BMI1 instructions are "
       
    76                     + "disabled (-XX:-UseBMI1Instructions flag used)",
    71                 TestUseCountTrailingZerosInstructionOnSupportedCPU.DISABLE_BMI,
    77                 TestUseCountTrailingZerosInstructionOnSupportedCPU.DISABLE_BMI,
    72                 CommandLineOptionTest.prepareBooleanFlag(optionName, true));
    78                 CommandLineOptionTest.prepareBooleanFlag(optionName, true));
    73     }
    79     }
    74 
    80 
    75     public static void main(String args[]) throws Throwable {
    81     public static void main(String args[]) throws Throwable {