@@ -122,11 +122,6 @@ void VM_Version::common_initialize() {
122
122
FLAG_SET_DEFAULT (AllocatePrefetchDistance, 0 );
123
123
}
124
124
125
- if (UseAESCTRIntrinsics) {
126
- warning (" AES/CTR intrinsics are not available on this CPU" );
127
- FLAG_SET_DEFAULT (UseAESCTRIntrinsics, false );
128
- }
129
-
130
125
if (UseZba) {
131
126
if (FLAG_IS_DEFAULT (UseCRC32Intrinsics)) {
132
127
FLAG_SET_DEFAULT (UseCRC32Intrinsics, true );
@@ -428,14 +423,23 @@ void VM_Version::c2_initialize() {
428
423
warning (" UseAESIntrinsics enabled, but UseAES not, enabling" );
429
424
UseAES = true ;
430
425
}
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 );
434
434
}
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 );
437
440
}
438
441
}
442
+
439
443
#endif // COMPILER2
440
444
441
445
void VM_Version::initialize_cpu_information (void ) {
0 commit comments