< prev index next >
test/hotspot/jtreg/compiler/intrinsics/sha/cli/testcases/UseSHASpecificTestCaseForSupportedCPU.java
Print this page
rev 60737 : 8252204: AArch64: Implement SHA3 accelerator/intrinsic
Reviewed-by: duke
Contributed-by: dongbo4@huawei.com
*** 64,74 ****
CommandLineOptionTest.prepareBooleanFlag(
DigestOptionsBase.USE_SHA1_INTRINSICS_OPTION, false),
CommandLineOptionTest.prepareBooleanFlag(
DigestOptionsBase.USE_SHA256_INTRINSICS_OPTION, false),
CommandLineOptionTest.prepareBooleanFlag(
! DigestOptionsBase.USE_SHA512_INTRINSICS_OPTION, false));
}
@Override
protected void verifyOptionValues() throws Throwable {
// Verify that UseSHA is disabled when all UseSHA*Intrinsics are
--- 64,76 ----
CommandLineOptionTest.prepareBooleanFlag(
DigestOptionsBase.USE_SHA1_INTRINSICS_OPTION, false),
CommandLineOptionTest.prepareBooleanFlag(
DigestOptionsBase.USE_SHA256_INTRINSICS_OPTION, false),
CommandLineOptionTest.prepareBooleanFlag(
! DigestOptionsBase.USE_SHA512_INTRINSICS_OPTION, false),
! CommandLineOptionTest.prepareBooleanFlag(
! DigestOptionsBase.USE_SHA3_INTRINSICS_OPTION, false));
}
@Override
protected void verifyOptionValues() throws Throwable {
// Verify that UseSHA is disabled when all UseSHA*Intrinsics are
*** 81,91 ****
CommandLineOptionTest.prepareBooleanFlag(
DigestOptionsBase.USE_SHA1_INTRINSICS_OPTION, false),
CommandLineOptionTest.prepareBooleanFlag(
DigestOptionsBase.USE_SHA256_INTRINSICS_OPTION, false),
CommandLineOptionTest.prepareBooleanFlag(
! DigestOptionsBase.USE_SHA512_INTRINSICS_OPTION, false));
CommandLineOptionTest.verifyOptionValueForSameVM(
// Verify that UseSHA is disabled when all UseSHA*Intrinsics are
// disabled even if it was explicitly enabled.
DigestOptionsBase.USE_SHA_OPTION, "false",
--- 83,95 ----
CommandLineOptionTest.prepareBooleanFlag(
DigestOptionsBase.USE_SHA1_INTRINSICS_OPTION, false),
CommandLineOptionTest.prepareBooleanFlag(
DigestOptionsBase.USE_SHA256_INTRINSICS_OPTION, false),
CommandLineOptionTest.prepareBooleanFlag(
! DigestOptionsBase.USE_SHA512_INTRINSICS_OPTION, false),
! CommandLineOptionTest.prepareBooleanFlag(
! DigestOptionsBase.USE_SHA3_INTRINSICS_OPTION, false));
CommandLineOptionTest.verifyOptionValueForSameVM(
// Verify that UseSHA is disabled when all UseSHA*Intrinsics are
// disabled even if it was explicitly enabled.
DigestOptionsBase.USE_SHA_OPTION, "false",
*** 100,110 ****
CommandLineOptionTest.prepareBooleanFlag(
DigestOptionsBase.USE_SHA1_INTRINSICS_OPTION, false),
CommandLineOptionTest.prepareBooleanFlag(
DigestOptionsBase.USE_SHA256_INTRINSICS_OPTION, false),
CommandLineOptionTest.prepareBooleanFlag(
! DigestOptionsBase.USE_SHA512_INTRINSICS_OPTION, false));
// Verify that explicitly disabled UseSHA option remains disabled even
// if all UseSHA*Intrinsics options were enabled.
CommandLineOptionTest.verifyOptionValueForSameVM(
DigestOptionsBase.USE_SHA_OPTION, "false",
--- 104,116 ----
CommandLineOptionTest.prepareBooleanFlag(
DigestOptionsBase.USE_SHA1_INTRINSICS_OPTION, false),
CommandLineOptionTest.prepareBooleanFlag(
DigestOptionsBase.USE_SHA256_INTRINSICS_OPTION, false),
CommandLineOptionTest.prepareBooleanFlag(
! DigestOptionsBase.USE_SHA512_INTRINSICS_OPTION, false),
! CommandLineOptionTest.prepareBooleanFlag(
! DigestOptionsBase.USE_SHA3_INTRINSICS_OPTION, false));
// Verify that explicitly disabled UseSHA option remains disabled even
// if all UseSHA*Intrinsics options were enabled.
CommandLineOptionTest.verifyOptionValueForSameVM(
DigestOptionsBase.USE_SHA_OPTION, "false",
*** 119,126 ****
CommandLineOptionTest.prepareBooleanFlag(
DigestOptionsBase.USE_SHA1_INTRINSICS_OPTION, true),
CommandLineOptionTest.prepareBooleanFlag(
DigestOptionsBase.USE_SHA256_INTRINSICS_OPTION, true),
CommandLineOptionTest.prepareBooleanFlag(
! DigestOptionsBase.USE_SHA512_INTRINSICS_OPTION, true));
}
}
--- 125,134 ----
CommandLineOptionTest.prepareBooleanFlag(
DigestOptionsBase.USE_SHA1_INTRINSICS_OPTION, true),
CommandLineOptionTest.prepareBooleanFlag(
DigestOptionsBase.USE_SHA256_INTRINSICS_OPTION, true),
CommandLineOptionTest.prepareBooleanFlag(
! DigestOptionsBase.USE_SHA512_INTRINSICS_OPTION, true),
! CommandLineOptionTest.prepareBooleanFlag(
! DigestOptionsBase.USE_SHA3_INTRINSICS_OPTION, true));
}
}
< prev index next >