test/compiler/intrinsics/mathexact/AddExactILoopDependentTest.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File
*** old/test/compiler/intrinsics/mathexact/LoopDependentTest.java	Tue Oct 22 15:44:56 2013
--- new/test/compiler/intrinsics/mathexact/AddExactILoopDependentTest.java	Tue Oct 22 15:44:56 2013

*** 23,48 **** --- 23,37 ---- /* * @test * @bug 8024924 * @summary Test non constant addExact ! * @compile AddExactILoopDependentTest.java Verify.java ! * @run main AddExactILoopDependentTest * */ import java.lang.ArithmeticException; public class LoopDependentTest { public static java.util.Random rnd = new java.util.Random(); + public class AddExactILoopDependentTest { public static void main(String[] args) { ! int rnd1 = rnd.nextInt(), rnd2 = rnd.nextInt(); for (int i = 0; i < 50000; ++i) { Verify.verify(rnd1 + i, rnd2 + i); Verify.verify(rnd1 + i, rnd2 + (i & 0xff)); Verify.verify(rnd1 - i, rnd2 - (i & 0xff)); Verify.verify(rnd1 + i + 1, rnd2 + i + 2); Verify.verify(rnd1 + i * 2, rnd2 + i); } ! Verify.LoopDependentTest.verify(new Verify.AddExactI()); } }

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