< prev index next >

test/hotspot/jtreg/compiler/intrinsics/sha/cli/DigestOptionsBase.java

Print this page
rev 60737 : 8252204: AArch64: Implement SHA3 accelerator/intrinsic
Reviewed-by: duke
Contributed-by: dongbo4@huawei.com

*** 43,52 **** --- 43,54 ---- = "UseSHA1Intrinsics"; public static final String USE_SHA256_INTRINSICS_OPTION = "UseSHA256Intrinsics"; public static final String USE_SHA512_INTRINSICS_OPTION = "UseSHA512Intrinsics"; + public static final String USE_SHA3_INTRINSICS_OPTION + = "UseSHA3Intrinsics"; // Intrinsics flags are of diagnostic type // and must be preceded by UnlockDiagnosticVMOptions. public static final String UNLOCK_DIAGNOSTIC_VM_OPTIONS = "-XX:+UnlockDiagnosticVMOptions";
*** 62,71 **** --- 64,75 ---- = "Intrinsics for SHA-1 crypto hash functions not available on this CPU."; protected static final String SHA256_INTRINSICS_ARE_NOT_AVAILABLE = "Intrinsics for SHA-224 and SHA-256 crypto hash functions not available on this CPU."; protected static final String SHA512_INTRINSICS_ARE_NOT_AVAILABLE = "Intrinsics for SHA-384 and SHA-512 crypto hash functions not available on this CPU."; + protected static final String SHA3_INTRINSICS_ARE_NOT_AVAILABLE + = "Intrinsics for SHA3-224, SHA3-256, SHA3-384 and SHA3-512 crypto hash functions not available on this CPU."; private final TestCase[] testCases; /** * Returns warning message that should occur in VM output if an option with
*** 87,96 **** --- 91,102 ---- return DigestOptionsBase.SHA1_INTRINSICS_ARE_NOT_AVAILABLE; case DigestOptionsBase.USE_SHA256_INTRINSICS_OPTION: return DigestOptionsBase.SHA256_INTRINSICS_ARE_NOT_AVAILABLE; case DigestOptionsBase.USE_SHA512_INTRINSICS_OPTION: return DigestOptionsBase.SHA512_INTRINSICS_ARE_NOT_AVAILABLE; + case DigestOptionsBase.USE_SHA3_INTRINSICS_OPTION: + return DigestOptionsBase.SHA3_INTRINSICS_ARE_NOT_AVAILABLE; default: throw new Error("Unexpected option " + optionName); } }
*** 113,122 **** --- 119,130 ---- return IntrinsicPredicates.SHA1_INSTRUCTION_AVAILABLE; case DigestOptionsBase.USE_SHA256_INTRINSICS_OPTION: return IntrinsicPredicates.SHA256_INSTRUCTION_AVAILABLE; case DigestOptionsBase.USE_SHA512_INTRINSICS_OPTION: return IntrinsicPredicates.SHA512_INSTRUCTION_AVAILABLE; + case DigestOptionsBase.USE_SHA3_INTRINSICS_OPTION: + return IntrinsicPredicates.SHA3_INSTRUCTION_AVAILABLE; default: throw new Error("Unexpected option " + optionName); } }
< prev index next >