< prev index next >
src/hotspot/cpu/x86/vm_version_x86.cpp
Print this page
@@ -880,11 +880,11 @@
} else if (UseSHA256Intrinsics) {
warning("Intrinsics for SHA-224 and SHA-256 crypto hash functions not available on this CPU.");
FLAG_SET_DEFAULT(UseSHA256Intrinsics, false);
}
- if (UseSHA) {
+ if (UseSHA LP64_ONLY(&& supports_avx2() && supports_bmi2())) {
if (FLAG_IS_DEFAULT(UseSHA512Intrinsics)) {
FLAG_SET_DEFAULT(UseSHA512Intrinsics, true);
}
} else if (UseSHA512Intrinsics) {
warning("Intrinsics for SHA-384 and SHA-512 crypto hash functions not available on this CPU.");
< prev index next >