hotspot/test/compiler/intrinsics/sha/cli/testcases/UseSHASpecificTestCaseForSupportedCPU.java
changeset 38285 20b85a0ba796
parent 31230 413576d00672
child 39438 206a712f8f16
equal deleted inserted replaced
38284:772923492a70 38285:20b85a0ba796
    55         // Verify that there will be no warnings when +UseSHA was passed and
    55         // Verify that there will be no warnings when +UseSHA was passed and
    56         // all UseSHA*Intrinsics options were disabled.
    56         // all UseSHA*Intrinsics options were disabled.
    57         CommandLineOptionTest.verifySameJVMStartup(
    57         CommandLineOptionTest.verifySameJVMStartup(
    58                 null, new String[] { ".*UseSHA.*" }, shouldPassMessage,
    58                 null, new String[] { ".*UseSHA.*" }, shouldPassMessage,
    59                 shouldPassMessage, ExitCode.OK,
    59                 shouldPassMessage, ExitCode.OK,
       
    60                 SHAOptionsBase.UNLOCK_DIAGNOSTIC_VM_OPTIONS,
    60                 CommandLineOptionTest.prepareBooleanFlag(
    61                 CommandLineOptionTest.prepareBooleanFlag(
    61                         SHAOptionsBase.USE_SHA_OPTION, true),
    62                         SHAOptionsBase.USE_SHA_OPTION, true),
    62                 CommandLineOptionTest.prepareBooleanFlag(
    63                 CommandLineOptionTest.prepareBooleanFlag(
    63                         SHAOptionsBase.USE_SHA1_INTRINSICS_OPTION, false),
    64                         SHAOptionsBase.USE_SHA1_INTRINSICS_OPTION, false),
    64                 CommandLineOptionTest.prepareBooleanFlag(
    65                 CommandLineOptionTest.prepareBooleanFlag(
    73         // disabled.
    74         // disabled.
    74         CommandLineOptionTest.verifyOptionValueForSameVM(
    75         CommandLineOptionTest.verifyOptionValueForSameVM(
    75                 SHAOptionsBase.USE_SHA_OPTION, "false", String.format(
    76                 SHAOptionsBase.USE_SHA_OPTION, "false", String.format(
    76                 "'%s' option should be disabled when all UseSHA*Intrinsics are"
    77                 "'%s' option should be disabled when all UseSHA*Intrinsics are"
    77                         + " disabled", SHAOptionsBase.USE_SHA_OPTION),
    78                         + " disabled", SHAOptionsBase.USE_SHA_OPTION),
       
    79                 SHAOptionsBase.UNLOCK_DIAGNOSTIC_VM_OPTIONS,
    78                 CommandLineOptionTest.prepareBooleanFlag(
    80                 CommandLineOptionTest.prepareBooleanFlag(
    79                         SHAOptionsBase.USE_SHA1_INTRINSICS_OPTION, false),
    81                         SHAOptionsBase.USE_SHA1_INTRINSICS_OPTION, false),
    80                 CommandLineOptionTest.prepareBooleanFlag(
    82                 CommandLineOptionTest.prepareBooleanFlag(
    81                         SHAOptionsBase.USE_SHA256_INTRINSICS_OPTION, false),
    83                         SHAOptionsBase.USE_SHA256_INTRINSICS_OPTION, false),
    82                 CommandLineOptionTest.prepareBooleanFlag(
    84                 CommandLineOptionTest.prepareBooleanFlag(
    89                 String.format("'%s' option should be disabled when all "
    91                 String.format("'%s' option should be disabled when all "
    90                         + "UseSHA*Intrinsics are disabled even if %s flag set "
    92                         + "UseSHA*Intrinsics are disabled even if %s flag set "
    91                         + "to JVM", SHAOptionsBase.USE_SHA_OPTION,
    93                         + "to JVM", SHAOptionsBase.USE_SHA_OPTION,
    92                         CommandLineOptionTest.prepareBooleanFlag(
    94                         CommandLineOptionTest.prepareBooleanFlag(
    93                              SHAOptionsBase.USE_SHA_OPTION, true)),
    95                              SHAOptionsBase.USE_SHA_OPTION, true)),
       
    96                 SHAOptionsBase.UNLOCK_DIAGNOSTIC_VM_OPTIONS,
    94                 CommandLineOptionTest.prepareBooleanFlag(
    97                 CommandLineOptionTest.prepareBooleanFlag(
    95                         SHAOptionsBase.USE_SHA_OPTION, true),
    98                         SHAOptionsBase.USE_SHA_OPTION, true),
    96                 CommandLineOptionTest.prepareBooleanFlag(
    99                 CommandLineOptionTest.prepareBooleanFlag(
    97                         SHAOptionsBase.USE_SHA1_INTRINSICS_OPTION, false),
   100                         SHAOptionsBase.USE_SHA1_INTRINSICS_OPTION, false),
    98                 CommandLineOptionTest.prepareBooleanFlag(
   101                 CommandLineOptionTest.prepareBooleanFlag(
   107                 String.format("'%s' option should be disabled if %s flag "
   110                 String.format("'%s' option should be disabled if %s flag "
   108                         + "set even if all UseSHA*Intrinsics were enabled",
   111                         + "set even if all UseSHA*Intrinsics were enabled",
   109                         SHAOptionsBase.USE_SHA_OPTION,
   112                         SHAOptionsBase.USE_SHA_OPTION,
   110                         CommandLineOptionTest.prepareBooleanFlag(
   113                         CommandLineOptionTest.prepareBooleanFlag(
   111                             SHAOptionsBase.USE_SHA_OPTION, false)),
   114                             SHAOptionsBase.USE_SHA_OPTION, false)),
       
   115                 SHAOptionsBase.UNLOCK_DIAGNOSTIC_VM_OPTIONS,
   112                 CommandLineOptionTest.prepareBooleanFlag(
   116                 CommandLineOptionTest.prepareBooleanFlag(
   113                         SHAOptionsBase.USE_SHA_OPTION, false),
   117                         SHAOptionsBase.USE_SHA_OPTION, false),
   114                 CommandLineOptionTest.prepareBooleanFlag(
   118                 CommandLineOptionTest.prepareBooleanFlag(
   115                         SHAOptionsBase.USE_SHA1_INTRINSICS_OPTION, true),
   119                         SHAOptionsBase.USE_SHA1_INTRINSICS_OPTION, true),
   116                 CommandLineOptionTest.prepareBooleanFlag(
   120                 CommandLineOptionTest.prepareBooleanFlag(