11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 13 * version 2 for more details (a copy is included in the LICENSE file that 14 * accompanied this code). 15 * 16 * You should have received a copy of the GNU General Public License version 17 * 2 along with this work; if not, write to the Free Software Foundation, 18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 19 * 20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 21 * or visit www.oracle.com if you need additional information or have any 22 * questions. 23 */ 24 25 /** 26 * @test 27 * @bug 8130150 8131779 8139907 28 * @summary Verify that the Montgomery multiply and square intrinsic works and correctly checks their arguments. 29 * @requires vm.flavor == "server" 30 * @modules java.base/jdk.internal.misc 31 * @library /testlibrary /test/lib 32 * 33 * @build compiler.intrinsics.bigInteger.MontgomeryMultiplyTest 34 * @run driver ClassFileInstaller sun.hotspot.WhiteBox 35 * sun.hotspot.WhiteBox$WhiteBoxPermission 36 * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI 37 * compiler.intrinsics.bigInteger.MontgomeryMultiplyTest 38 */ 39 40 package compiler.intrinsics.bigInteger; 41 42 import jdk.test.lib.Platform; 43 import sun.hotspot.WhiteBox; 44 45 import java.lang.invoke.MethodHandle; 46 import java.lang.invoke.MethodHandles; 47 import java.lang.reflect.Constructor; 48 import java.lang.reflect.Executable; 49 import java.lang.reflect.Field; 50 import java.lang.reflect.Method; 51 import java.math.BigInteger; 52 import java.util.Arrays; 53 import java.util.Random; | 11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 13 * version 2 for more details (a copy is included in the LICENSE file that 14 * accompanied this code). 15 * 16 * You should have received a copy of the GNU General Public License version 17 * 2 along with this work; if not, write to the Free Software Foundation, 18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 19 * 20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 21 * or visit www.oracle.com if you need additional information or have any 22 * questions. 23 */ 24 25 /** 26 * @test 27 * @bug 8130150 8131779 8139907 28 * @summary Verify that the Montgomery multiply and square intrinsic works and correctly checks their arguments. 29 * @requires vm.flavor == "server" 30 * @modules java.base/jdk.internal.misc 31 * @library /test/lib 32 * 33 * @build sun.hotspot.WhiteBox 34 * @run driver ClassFileInstaller sun.hotspot.WhiteBox 35 * sun.hotspot.WhiteBox$WhiteBoxPermission 36 * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI 37 * compiler.intrinsics.bigInteger.MontgomeryMultiplyTest 38 */ 39 40 package compiler.intrinsics.bigInteger; 41 42 import jdk.test.lib.Platform; 43 import sun.hotspot.WhiteBox; 44 45 import java.lang.invoke.MethodHandle; 46 import java.lang.invoke.MethodHandles; 47 import java.lang.reflect.Constructor; 48 import java.lang.reflect.Executable; 49 import java.lang.reflect.Field; 50 import java.lang.reflect.Method; 51 import java.math.BigInteger; 52 import java.util.Arrays; 53 import java.util.Random; |