test/compiler/intrinsics/mathexact/AddExactIConstantTest.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Cdiff test/compiler/intrinsics/mathexact/AddExactIConstantTest.java

test/compiler/intrinsics/mathexact/AddExactIConstantTest.java

Print this page
rev 5462 : 8026844: Various Math functions needs intrinsification
Reviewed-by: duke

*** 23,47 **** /* * @test * @bug 8024924 * @summary Test constant addExact ! * @compile ConstantTest.java Verify.java ! * @run main ConstantTest * */ ! import java.lang.ArithmeticException; ! ! public class ConstantTest { public static void main(String[] args) { ! for (int i = 0; i < 50000; ++i) { ! Verify.verify(5, 7); ! Verify.verify(Integer.MAX_VALUE, 1); ! Verify.verify(Integer.MIN_VALUE, -1); ! Verify.verify(Integer.MAX_VALUE, -1); ! Verify.verify(Integer.MIN_VALUE, 1); ! Verify.verify(Integer.MAX_VALUE / 2, Integer.MAX_VALUE / 2); ! Verify.verify(Integer.MAX_VALUE / 2, (Integer.MAX_VALUE / 2) + 3); ! } } } --- 23,37 ---- /* * @test * @bug 8024924 * @summary Test constant addExact ! * @compile AddExactIConstantTest.java Verify.java ! * @run main/timeout=200 AddExactIConstantTest * */ ! public class AddExactIConstantTest { public static void main(String[] args) { ! Verify.ConstantTest.verify(new Verify.AddExactI()); } }
test/compiler/intrinsics/mathexact/AddExactIConstantTest.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File