@@ -50,6 +50,71 @@ void VM_Version::initialize() {
5050 FLAG_SET_DEFAULT (UseHeavyMonitors, true );
5151 }
5252
53+ if (UseAESIntrinsics) {
54+ warning (" AES intrinsics are not available on this CPU" );
55+ FLAG_SET_DEFAULT (UseAESIntrinsics, false );
56+ }
57+
58+ if (UseAES) {
59+ warning (" AES instructions are not available on this CPU" );
60+ FLAG_SET_DEFAULT (UseAES, false );
61+ }
62+
63+ if (UseAESCTRIntrinsics) {
64+ warning (" AES/CTR intrinsics are not available on this CPU" );
65+ FLAG_SET_DEFAULT (UseAESCTRIntrinsics, false );
66+ }
67+
68+ if (UseFMA) {
69+ warning (" FMA instructions are not available on this CPU" );
70+ FLAG_SET_DEFAULT (UseFMA, false );
71+ }
72+
73+ if (UseMD5Intrinsics) {
74+ warning (" MD5 intrinsics are not available on this CPU" );
75+ FLAG_SET_DEFAULT (UseMD5Intrinsics, false );
76+ }
77+
78+ if (UseSHA) {
79+ warning (" SHA instructions are not available on this CPU" );
80+ FLAG_SET_DEFAULT (UseSHA, false );
81+ }
82+
83+ if (UseSHA1Intrinsics) {
84+ warning (" Intrinsics for SHA-1 crypto hash functions not available on this CPU." );
85+ FLAG_SET_DEFAULT (UseSHA1Intrinsics, false );
86+ }
87+
88+ if (UseSHA256Intrinsics) {
89+ warning (" Intrinsics for SHA-224 and SHA-256 crypto hash functions not available on this CPU." );
90+ FLAG_SET_DEFAULT (UseSHA256Intrinsics, false );
91+ }
92+
93+ if (UseSHA512Intrinsics) {
94+ warning (" Intrinsics for SHA-384 and SHA-512 crypto hash functions not available on this CPU." );
95+ FLAG_SET_DEFAULT (UseSHA512Intrinsics, false );
96+ }
97+
98+ if (UseSHA3Intrinsics) {
99+ warning (" Intrinsics for SHA3-224, SHA3-256, SHA3-384 and SHA3-512 crypto hash functions not available on this CPU." );
100+ FLAG_SET_DEFAULT (UseSHA3Intrinsics, false );
101+ }
102+
103+ if (UseCRC32Intrinsics) {
104+ warning (" CRC32 intrinsics are not available on this CPU" );
105+ FLAG_SET_DEFAULT (UseCRC32Intrinsics, false );
106+ }
107+
108+ if (UseAdler32Intrinsics) {
109+ warning (" Adler32 intrinsics are not available on this CPU" );
110+ FLAG_SET_DEFAULT (UseAdler32Intrinsics, false );
111+ }
112+
113+ if (UseVectorizedMismatchIntrinsic) {
114+ warning (" vectorizedMismatch intrinsic is not available on this CPU." );
115+ FLAG_SET_DEFAULT (UseVectorizedMismatchIntrinsic, false );
116+ }
117+
53118 // Not implemented
54119 UNSUPPORTED_OPTION (CriticalJNINatives);
55120}
0 commit comments