< prev index next >

## src/cpu/x86/vm/vm_version_x86.cpp

Print this page

    @@ -693,17 +693,35 @@

     #ifdef _LP64
       if (FLAG_IS_DEFAULT(UseMultiplyToLenIntrinsic)) {
         UseMultiplyToLenIntrinsic = true;
       }
    +  if (FLAG_IS_DEFAULT(UseSquareToLenIntrinsic)) {
    +    UseSquareToLenIntrinsic = true;
    +  }
    +  if (FLAG_IS_DEFAULT(UseMulAddIntrinsic)) {
    +    UseMulAddIntrinsic = true;
    +  }
     #else
       if (UseMultiplyToLenIntrinsic) {
         if (!FLAG_IS_DEFAULT(UseMultiplyToLenIntrinsic)) {
           warning("multiplyToLen intrinsic is not available in 32-bit VM");
         }
         FLAG_SET_DEFAULT(UseMultiplyToLenIntrinsic, false);
       }
    +  if (UseSquareToLenIntrinsic) {
    +    if (!FLAG_IS_DEFAULT(UseSquareToLenIntrinsic)) {
    +      warning("squareToLen intrinsic is not available in 32-bit VM");
    +    }
    +    FLAG_SET_DEFAULT(UseSquareToLenIntrinsic, false);
    +  }
    +  if (UseMulAddIntrinsic) {
    +    if (!FLAG_IS_DEFAULT(UseMulAddIntrinsic)) {
    +      warning("mulAdd intrinsic is not available in 32-bit VM");
    +    }
    +    FLAG_SET_DEFAULT(UseMulAddIntrinsic, false);
    +  }
     #endif
     #endif // COMPILER2

       // On new cpus instructions which update whole XMM register should be used
       // to prevent partial register stall due to dependencies on high half.

< prev index next >