@@ -122,11 +122,6 @@ void VM_Version::common_initialize() {
122122 FLAG_SET_DEFAULT (AllocatePrefetchDistance, 0 );
123123 }
124124
125- if (UseAESCTRIntrinsics) {
126- warning (" AES/CTR intrinsics are not available on this CPU" );
127- FLAG_SET_DEFAULT (UseAESCTRIntrinsics, false );
128- }
129-
130125 if (UseZba) {
131126 if (FLAG_IS_DEFAULT (UseCRC32Intrinsics)) {
132127 FLAG_SET_DEFAULT (UseCRC32Intrinsics, true );
@@ -428,14 +423,23 @@ void VM_Version::c2_initialize() {
428423 warning (" UseAESIntrinsics enabled, but UseAES not, enabling" );
429424 UseAES = true ;
430425 }
431- } else if (UseAESIntrinsics || UseAES) {
432- if (!FLAG_IS_DEFAULT (UseAESIntrinsics) || !FLAG_IS_DEFAULT (UseAES)) {
433- warning (" AES intrinsics require Zvkn extension (not available on this CPU)." );
426+ } else {
427+ if (UseAES) {
428+ warning (" AES instructions are not available on this CPU" );
429+ FLAG_SET_DEFAULT (UseAES, false );
430+ }
431+ if (UseAESIntrinsics) {
432+ warning (" AES intrinsics are not available on this CPU" );
433+ FLAG_SET_DEFAULT (UseAESIntrinsics, false );
434434 }
435- FLAG_SET_DEFAULT (UseAES, false );
436- FLAG_SET_DEFAULT (UseAESIntrinsics, false );
435+ }
436+
437+ if (UseAESCTRIntrinsics) {
438+ warning (" AES/CTR intrinsics are not available on this CPU" );
439+ FLAG_SET_DEFAULT (UseAESCTRIntrinsics, false );
437440 }
438441}
442+
439443#endif // COMPILER2
440444
441445void VM_Version::initialize_cpu_information (void ) {
0 commit comments