hotspot/src/cpu/ppc/vm/vm_version_ppc.cpp
changeset 31861 7efea6fae96b
parent 31773 f874931cbae7
child 32581 632402f18fe6
equal deleted inserted replaced
31860:c765af1b93c9 31861:7efea6fae96b
   157     AllocatePrefetchStyle = 1; // Fall back if inappropriate.
   157     AllocatePrefetchStyle = 1; // Fall back if inappropriate.
   158   }
   158   }
   159 
   159 
   160   assert(AllocatePrefetchStyle >= 0, "AllocatePrefetchStyle should be positive");
   160   assert(AllocatePrefetchStyle >= 0, "AllocatePrefetchStyle should be positive");
   161 
   161 
   162   if (UseCRC32Intrinsics) {
   162   // Implementation does not use any of the vector instructions
   163     if (!FLAG_IS_DEFAULT(UseCRC32Intrinsics))
   163   // available with Power8. Their exploitation is still pending.
   164       warning("CRC32 intrinsics  are not available on this CPU");
   164   if (!UseCRC32Intrinsics) {
   165     FLAG_SET_DEFAULT(UseCRC32Intrinsics, false);
   165     if (FLAG_IS_DEFAULT(UseCRC32Intrinsics)) {
       
   166       FLAG_SET_DEFAULT(UseCRC32Intrinsics, true);
       
   167     }
       
   168   }
       
   169 
       
   170   if (UseCRC32CIntrinsics) {
       
   171     if (!FLAG_IS_DEFAULT(UseCRC32CIntrinsics))
       
   172       warning("CRC32C intrinsics are not available on this CPU");
       
   173     FLAG_SET_DEFAULT(UseCRC32CIntrinsics, false);
   166   }
   174   }
   167 
   175 
   168   // The AES intrinsic stubs require AES instruction support.
   176   // The AES intrinsic stubs require AES instruction support.
   169   if (UseAES) {
   177   if (UseAES) {
   170     warning("AES instructions are not available on this CPU");
   178     warning("AES instructions are not available on this CPU");
   188   if (UseSHA1Intrinsics || UseSHA256Intrinsics || UseSHA512Intrinsics) {
   196   if (UseSHA1Intrinsics || UseSHA256Intrinsics || UseSHA512Intrinsics) {
   189     warning("SHA intrinsics are not available on this CPU");
   197     warning("SHA intrinsics are not available on this CPU");
   190     FLAG_SET_DEFAULT(UseSHA1Intrinsics, false);
   198     FLAG_SET_DEFAULT(UseSHA1Intrinsics, false);
   191     FLAG_SET_DEFAULT(UseSHA256Intrinsics, false);
   199     FLAG_SET_DEFAULT(UseSHA256Intrinsics, false);
   192     FLAG_SET_DEFAULT(UseSHA512Intrinsics, false);
   200     FLAG_SET_DEFAULT(UseSHA512Intrinsics, false);
   193   }
       
   194 
       
   195   if (UseCRC32CIntrinsics) {
       
   196     if (!FLAG_IS_DEFAULT(UseCRC32CIntrinsics))
       
   197       warning("CRC32C intrinsics are not available on this CPU");
       
   198     FLAG_SET_DEFAULT(UseCRC32CIntrinsics, false);
       
   199   }
   201   }
   200 
   202 
   201   if (FLAG_IS_DEFAULT(UseMultiplyToLenIntrinsic)) {
   203   if (FLAG_IS_DEFAULT(UseMultiplyToLenIntrinsic)) {
   202     UseMultiplyToLenIntrinsic = true;
   204     UseMultiplyToLenIntrinsic = true;
   203   }
   205   }