src/hotspot/cpu/x86/vm_version_x86.cpp
changeset 48444 a97a26eb896f
parent 48195 255407049d98
child 48490 4f647519c8be
equal deleted inserted replaced
48443:8935285e8759 48444:a97a26eb896f
   880   } else if (UseSHA256Intrinsics) {
   880   } else if (UseSHA256Intrinsics) {
   881     warning("Intrinsics for SHA-224 and SHA-256 crypto hash functions not available on this CPU.");
   881     warning("Intrinsics for SHA-224 and SHA-256 crypto hash functions not available on this CPU.");
   882     FLAG_SET_DEFAULT(UseSHA256Intrinsics, false);
   882     FLAG_SET_DEFAULT(UseSHA256Intrinsics, false);
   883   }
   883   }
   884 
   884 
   885   if (UseSHA) {
   885   if (UseSHA && supports_avx2() && supports_bmi2()) {
   886     if (FLAG_IS_DEFAULT(UseSHA512Intrinsics)) {
   886     if (FLAG_IS_DEFAULT(UseSHA512Intrinsics)) {
   887       FLAG_SET_DEFAULT(UseSHA512Intrinsics, true);
   887       FLAG_SET_DEFAULT(UseSHA512Intrinsics, true);
   888     }
   888     }
   889   } else if (UseSHA512Intrinsics) {
   889   } else if (UseSHA512Intrinsics) {
   890     warning("Intrinsics for SHA-384 and SHA-512 crypto hash functions not available on this CPU.");
   890     warning("Intrinsics for SHA-384 and SHA-512 crypto hash functions not available on this CPU.");