changeset 7998:4abc54f62213

8151522: Disable 8130150 and 8081778 intrinsics by default Reviewed-by: kvn
author vkempik
date Wed, 09 Mar 2016 19:51:23 +0300
parents 5601e440e5e7
children dd8507f51d78
files src/cpu/x86/vm/vm_version_x86.cpp test/compiler/intrinsics/montgomerymultiply/MontgomeryMultiplyTest.java test/compiler/intrinsics/muladd/TestMulAdd.java test/compiler/intrinsics/squaretolen/TestSquareToLen.java
diffstat 4 files changed, 12 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/cpu/x86/vm/vm_version_x86.cpp	Fri Mar 04 16:15:48 2016 +0300
+++ b/src/cpu/x86/vm/vm_version_x86.cpp	Wed Mar 09 19:51:23 2016 +0300
@@ -704,16 +704,16 @@
     UseMultiplyToLenIntrinsic = true;
   }
   if (FLAG_IS_DEFAULT(UseSquareToLenIntrinsic)) {
-    UseSquareToLenIntrinsic = true;
+    UseSquareToLenIntrinsic = false;
   }
   if (FLAG_IS_DEFAULT(UseMulAddIntrinsic)) {
-    UseMulAddIntrinsic = true;
+    UseMulAddIntrinsic = false;
   }
   if (FLAG_IS_DEFAULT(UseMontgomeryMultiplyIntrinsic)) {
-    UseMontgomeryMultiplyIntrinsic = true;
+    UseMontgomeryMultiplyIntrinsic = false;
   }
   if (FLAG_IS_DEFAULT(UseMontgomerySquareIntrinsic)) {
-    UseMontgomerySquareIntrinsic = true;
+    UseMontgomerySquareIntrinsic = false;
   }
 #else
   if (UseMultiplyToLenIntrinsic) {
--- a/test/compiler/intrinsics/montgomerymultiply/MontgomeryMultiplyTest.java	Fri Mar 04 16:15:48 2016 +0300
+++ b/test/compiler/intrinsics/montgomerymultiply/MontgomeryMultiplyTest.java	Wed Mar 09 19:51:23 2016 +0300
@@ -39,6 +39,12 @@
  * @library /testlibrary
  * @requires (os.simpleArch == "x64") & (os.family != "windows")
  * @summary Verify that the Montgomery multiply intrinsic works and correctly checks its arguments.
+ * @run main/othervm -XX:+UseMontgomerySquareIntrinsic -XX:+UseMontgomeryMultiplyIntrinsic
+ *      MontgomeryMultiplyTest
+ * @run main/othervm -XX:+UseMontgomerySquareIntrinsic -XX:-UseMontgomeryMultiplyIntrinsic
+ *      MontgomeryMultiplyTest
+ * @run main/othervm -XX:-UseMontgomerySquareIntrinsic -XX:+UseMontgomeryMultiplyIntrinsic
+ *      MontgomeryMultiplyTest
  */
 
 public class MontgomeryMultiplyTest {
--- a/test/compiler/intrinsics/muladd/TestMulAdd.java	Fri Mar 04 16:15:48 2016 +0300
+++ b/test/compiler/intrinsics/muladd/TestMulAdd.java	Wed Mar 09 19:51:23 2016 +0300
@@ -29,6 +29,7 @@
  *
  * @run main/othervm/timeout=600 -XX:-TieredCompilation -Xbatch
  *      -XX:+IgnoreUnrecognizedVMOptions -XX:-UseSquareToLenIntrinsic -XX:-UseMultiplyToLenIntrinsic
+ *      -XX:+UseMulAddIntrinsic
  *      -XX:CompileCommand=dontinline,TestMulAdd::main
  *      -XX:CompileCommand=option,TestMulAdd::base_multiply,ccstr,DisableIntrinsic,_mulAdd
  *      -XX:CompileCommand=option,java.math.BigInteger::multiply,ccstr,DisableIntrinsic,_mulAdd
--- a/test/compiler/intrinsics/squaretolen/TestSquareToLen.java	Fri Mar 04 16:15:48 2016 +0300
+++ b/test/compiler/intrinsics/squaretolen/TestSquareToLen.java	Wed Mar 09 19:51:23 2016 +0300
@@ -28,6 +28,7 @@
  * @summary Add C2 x86 intrinsic for BigInteger::squareToLen() method
  *
  * @run main/othervm/timeout=600 -XX:-TieredCompilation -Xbatch
+ *      -XX:+UseSquareToLenIntrinsic
  *      -XX:CompileCommand=exclude,TestSquareToLen::main
  *      -XX:CompileCommand=option,TestSquareToLen::base_multiply,ccstr,DisableIntrinsic,_squareToLen
  *      -XX:CompileCommand=option,java.math.BigInteger::multiply,ccstr,DisableIntrinsic,_squareToLen