src/hotspot/cpu/x86/vm_version_x86.cpp
changeset 50860 480a96a43b62
parent 50699 cc7fc46cc8c1
child 51857 9978fea8a371
--- a/src/hotspot/cpu/x86/vm_version_x86.cpp	Wed Jun 27 19:09:17 2018 -0700
+++ b/src/hotspot/cpu/x86/vm_version_x86.cpp	Wed Jun 27 20:21:42 2018 -0700
@@ -856,6 +856,17 @@
     FLAG_SET_DEFAULT(UseGHASHIntrinsics, false);
   }
 
+  // Base64 Intrinsics (Check the condition for which the intrinsic will be active)
+  if ((UseAVX > 2) && supports_avx512vl() && supports_avx512bw()) {
+    if (FLAG_IS_DEFAULT(UseBASE64Intrinsics)) {
+      UseBASE64Intrinsics = true;
+    }
+  } else if (UseBASE64Intrinsics) {
+     if (!FLAG_IS_DEFAULT(UseBASE64Intrinsics))
+      warning("Base64 intrinsic requires EVEX instructions on this CPU");
+    FLAG_SET_DEFAULT(UseBASE64Intrinsics, false);
+  }
+
   if (supports_fma() && UseSSE >= 2) { // Check UseSSE since FMA code uses SSE instructions
     if (FLAG_IS_DEFAULT(UseFMA)) {
       UseFMA = true;