Mercurial > hg > graal-compiler
comparison test/compiler/8005956/PolynomialRoot.java @ 11107:e554162ab094
8019625: Test compiler/8005956/PolynomialRoot.java timeouts on Solaris SPARCs
Summary: Disable the test for SPARC and reduce the number of test iterations
Reviewed-by: kvn
author | adlertz |
---|---|
date | Tue, 09 Jul 2013 17:20:32 +0200 |
parents | 9347cae673f0 |
children |
comparison
equal
deleted
inserted
replaced
11106:e50be1620201 | 11107:e554162ab094 |
---|---|
13 /** | 13 /** |
14 * @test | 14 * @test |
15 * @bug 8005956 | 15 * @bug 8005956 |
16 * @summary C2: assert(!def_outside->member(r)) failed: Use of external LRG overlaps the same LRG defined in this block | 16 * @summary C2: assert(!def_outside->member(r)) failed: Use of external LRG overlaps the same LRG defined in this block |
17 * | 17 * |
18 * @run main PolynomialRoot | 18 * @run main/timeout=300 PolynomialRoot |
19 */ | 19 */ |
20 | 20 |
21 public class PolynomialRoot { | 21 public class PolynomialRoot { |
22 | 22 |
23 | 23 |
755 | 755 |
756 | 756 |
757 | 757 |
758 public static void main(final String [] args) | 758 public static void main(final String [] args) |
759 { | 759 { |
760 final long t0=System.currentTimeMillis(); | 760 if (System.getProperty("os.arch").equals("x86") || |
761 final double eps=1e-6; | 761 System.getProperty("os.arch").equals("amd64") || |
762 //checkRoots(); | 762 System.getProperty("os.arch").equals("x86_64")){ |
763 final java.util.Random r=new java.util.Random(-1381923); | 763 final long t0=System.currentTimeMillis(); |
764 printSpecialValues(); | 764 final double eps=1e-6; |
765 | 765 //checkRoots(); |
766 final int n_tests=10000000; | 766 final java.util.Random r=new java.util.Random(-1381923); |
767 //testRoots(2,n_tests,r,eps); | 767 printSpecialValues(); |
768 //testRoots(3,n_tests,r,eps); | 768 |
769 testRoots(4,n_tests,r,eps); | 769 final int n_tests=100000; |
770 final long t1=System.currentTimeMillis(); | 770 //testRoots(2,n_tests,r,eps); |
771 System.err.println("PolynomialRoot.main: "+n_tests+" tests OK done in "+(t1-t0)+" milliseconds. ver=$Id: PolynomialRoot.java,v 1.105 2012/08/18 00:00:05 mal Exp $"); | 771 //testRoots(3,n_tests,r,eps); |
772 } | 772 testRoots(4,n_tests,r,eps); |
773 final long t1=System.currentTimeMillis(); | |
774 System.err.println("PolynomialRoot.main: "+n_tests+" tests OK done in "+(t1-t0)+" milliseconds. ver=$Id: PolynomialRoot.java,v 1.105 2012/08/18 00:00:05 mal Exp $"); | |
775 System.out.println("PASSED"); | |
776 } else { | |
777 System.out.println("PASS test for non-x86"); | |
778 } | |
779 } | |
773 | 780 |
774 | 781 |
775 | 782 |
776 } | 783 } |