test/compiler/intrinsics/muladd/TestMulAdd.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Sdiff test/compiler/intrinsics/muladd

test/compiler/intrinsics/muladd/TestMulAdd.java

Print this page




  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 /**
  26  * @test
  27  * @bug 8081778
  28  * @summary Add C2 x86 intrinsic for BigInteger::mulAdd() method
  29  *
  30  * @run main/othervm/timeout=600 -XX:-TieredCompilation -Xbatch
  31  *      -XX:+IgnoreUnrecognizedVMOptions -XX:+UnlockDiagnosticVMOptions -XX:-UseSquareToLenIntrinsic -XX:-UseMultiplyToLenIntrinsic
  32  *      -XX:CompileCommand=dontinline,TestMulAdd::main
  33  *      -XX:CompileCommand=option,TestMulAdd::base_multiply,ccstr,DisableIntrinsic,_mulAdd
  34  *      -XX:CompileCommand=option,java.math.BigInteger::multiply,ccstr,DisableIntrinsic,_mulAdd
  35  *      -XX:CompileCommand=option,java.math.BigInteger::square,ccstr,DisableIntrinsic,_mulAdd
  36  *      -XX:CompileCommand=option,java.math.BigInteger::squareToLen,ccstr,DisableIntrinsic,_mulAdd
  37  *      -XX:CompileCommand=option,java.math.BigInteger::mulAdd,ccstr,DisableIntrinsic,_mulAdd
  38  *      -XX:CompileCommand=inline,java.math.BigInteger::multiply
  39  *      -XX:CompileCommand=inline,java.math.BigInteger::square
  40  *      -XX:CompileCommand=inline,java.math.BigInteger::squareToLen
  41  *      -XX:CompileCommand=inline,java.math.BigInteger::mulAdd TestMulAdd
  42  */
  43 
  44 import java.util.Random;
  45 import java.math.*;
  46 
  47 public class TestMulAdd {
  48 
  49     // Avoid intrinsic by preventing inlining multiply() and mulAdd().
  50     public static BigInteger base_multiply(BigInteger op1) {
  51       return op1.multiply(op1);




  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 /**
  26  * @test
  27  * @bug 8081778
  28  * @summary Add C2 x86 intrinsic for BigInteger::mulAdd() method
  29  *
  30  * @run main/othervm/timeout=600 -XX:-TieredCompilation -Xbatch
  31  *      -XX:+IgnoreUnrecognizedVMOptions -XX:-UseSquareToLenIntrinsic -XX:-UseMultiplyToLenIntrinsic
  32  *      -XX:CompileCommand=dontinline,TestMulAdd::main
  33  *      -XX:CompileCommand=option,TestMulAdd::base_multiply,ccstr,DisableIntrinsic,_mulAdd
  34  *      -XX:CompileCommand=option,java.math.BigInteger::multiply,ccstr,DisableIntrinsic,_mulAdd
  35  *      -XX:CompileCommand=option,java.math.BigInteger::square,ccstr,DisableIntrinsic,_mulAdd
  36  *      -XX:CompileCommand=option,java.math.BigInteger::squareToLen,ccstr,DisableIntrinsic,_mulAdd
  37  *      -XX:CompileCommand=option,java.math.BigInteger::mulAdd,ccstr,DisableIntrinsic,_mulAdd
  38  *      -XX:CompileCommand=inline,java.math.BigInteger::multiply
  39  *      -XX:CompileCommand=inline,java.math.BigInteger::square
  40  *      -XX:CompileCommand=inline,java.math.BigInteger::squareToLen
  41  *      -XX:CompileCommand=inline,java.math.BigInteger::mulAdd TestMulAdd
  42  */
  43 
  44 import java.util.Random;
  45 import java.math.*;
  46 
  47 public class TestMulAdd {
  48 
  49     // Avoid intrinsic by preventing inlining multiply() and mulAdd().
  50     public static BigInteger base_multiply(BigInteger op1) {
  51       return op1.multiply(op1);


test/compiler/intrinsics/muladd/TestMulAdd.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File