--- old/src/hotspot/cpu/ppc/vm_version_ppc.cpp 2018-11-21 23:17:35.693417743 -0600 +++ new/src/hotspot/cpu/ppc/vm_version_ppc.cpp 2018-11-21 23:17:35.113436941 -0600 @@ -129,6 +129,17 @@ } } MaxVectorSize = SuperwordUseVSX ? 16 : 8; + + if (PowerArchitecturePPC64 >= 9) { + if (FLAG_IS_DEFAULT(UseCountTrailingZerosInstructionsPPC64)) { + FLAG_SET_ERGO(bool, UseCountTrailingZerosInstructionsPPC64, true); + } + } else { + if (UseCountTrailingZerosInstructionsPPC64) { + warning("UseCountTrailingZerosInstructionsPPC64 specified, but needs at least Power9."); + FLAG_SET_DEFAULT(UseCountTrailingZerosInstructionsPPC64, false); + } + } #endif // Create and print feature-string.