Mercurial > hg > truffle
annotate test/compiler/6909839/Test6909839.java @ 4234:057620486c90
Improved time stamps of gate tasks to show duration of each task explicitly.
Added 'fastdebug' config to gate testing.
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 06 Jan 2012 14:01:43 +0100 |
parents | c18cbe5936b8 |
children |
rev | line source |
---|---|
1160
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
1 /* |
1552
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1160
diff
changeset
|
2 * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. |
1160
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
4 * |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
5 * This code is free software; you can redistribute it and/or modify it |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
6 * under the terms of the GNU General Public License version 2 only, as |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
7 * published by the Free Software Foundation. |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
8 * |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
9 * This code is distributed in the hope that it will be useful, but WITHOUT |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
12 * version 2 for more details (a copy is included in the LICENSE file that |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
13 * accompanied this code). |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
14 * |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
15 * You should have received a copy of the GNU General Public License version |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
16 * 2 along with this work; if not, write to the Free Software Foundation, |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
18 * |
1552
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1160
diff
changeset
|
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1160
diff
changeset
|
20 * or visit www.oracle.com if you need additional information or have any |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1160
diff
changeset
|
21 * questions. |
1160
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
22 * |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
23 */ |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
24 |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
25 /** |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
26 * @test |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
27 * @bug 6909839 |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
28 * @summary missing unsigned compare cases for some cmoves in sparc.ad |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
29 * |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
30 * @run main/othervm -XX:+AggressiveOpts -Xbatch Test6909839 |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
31 */ |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
32 |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
33 public class Test6909839 { |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
34 public static void main(String[] args) { |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
35 testi(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
36 testi(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
37 testi(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
38 testui(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
39 testui(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
40 testui(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
41 testdi(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
42 testdi(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
43 testdi(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
44 testfi(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
45 testfi(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
46 testfi(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
47 |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
48 testl(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
49 testl(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
50 testl(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
51 testul(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
52 testul(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
53 testul(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
54 testdl(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
55 testdl(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
56 testdl(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
57 testfl(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
58 testfl(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
59 testfl(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
60 |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
61 testf(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
62 testf(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
63 testf(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
64 testuf(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
65 testuf(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
66 testuf(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
67 testdf(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
68 testdf(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
69 testdf(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
70 testff(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
71 testff(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
72 testff(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
73 |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
74 testd(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
75 testd(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
76 testd(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
77 testud(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
78 testud(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
79 testud(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
80 testdd(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
81 testdd(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
82 testdd(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
83 testfd(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
84 testfd(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
85 testfd(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
86 |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
87 testp(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
88 testp(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
89 testp(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
90 testup(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
91 testup(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
92 testup(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
93 testdp(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
94 testdp(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
95 testdp(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
96 testfp(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
97 testfp(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
98 testfp(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
99 } |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
100 |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
101 static void testui() { |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
102 int total = 0; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
103 for (int i = 0 ; i < 10000; i++) { |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
104 int v = i % 4; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
105 total += ((v >= 1 && v < 3) ? 1 : 2); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
106 } |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
107 System.out.println(total); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
108 } |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
109 |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
110 static void testdi() { |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
111 int total = 0; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
112 for (int i = 0 ; i < 10000; i++) { |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
113 int v = i % 4; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
114 total += (v > 1.0) ? 1 : 2; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
115 } |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
116 System.out.println(total); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
117 } |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
118 |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
119 static void testfi() { |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
120 int total = 0; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
121 for (int i = 0 ; i < 10000; i++) { |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
122 int v = i % 4; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
123 total += (v > 1.0f) ? 1 : 2; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
124 } |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
125 System.out.println(total); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
126 } |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
127 |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
128 static void testi() { |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
129 int total = 0; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
130 for (int i = 0 ; i < 10000; i++) { |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
131 total += (i % 4 != 0) ? 1 : 2; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
132 } |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
133 System.out.println(total); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
134 } |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
135 |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
136 static void testul() { |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
137 long total = 0; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
138 for (int i = 0 ; i < 10000; i++) { |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
139 int v = i % 4; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
140 total += ((v >= 1 && v < 3) ? 1L : 2L); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
141 } |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
142 System.out.println(total); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
143 } |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
144 |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
145 static void testdl() { |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
146 long total = 0; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
147 for (int i = 0 ; i < 10000; i++) { |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
148 int v = i % 4; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
149 total += (v > 1.0) ? 1L : 2L; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
150 } |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
151 System.out.println(total); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
152 } |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
153 |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
154 static void testfl() { |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
155 long total = 0; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
156 for (int i = 0 ; i < 10000; i++) { |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
157 int v = i % 4; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
158 total += (v > 1.0f) ? 1L : 2L; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
159 } |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
160 System.out.println(total); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
161 } |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
162 |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
163 static void testl() { |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
164 long total = 0; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
165 for (int i = 0 ; i < 10000; i++) { |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
166 total += (i % 4 != 0) ? 1L : 2L; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
167 } |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
168 System.out.println(total); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
169 } |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
170 |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
171 static void testuf() { |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
172 float total = 0; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
173 for (int i = 0 ; i < 10000; i++) { |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
174 int v = i % 4; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
175 total += ((v >= 1 && v < 3) ? 1.0f : 2.0f); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
176 } |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
177 System.out.println(total); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
178 } |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
179 |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
180 static void testdf() { |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
181 float total = 0; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
182 for (int i = 0 ; i < 10000; i++) { |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
183 int v = i % 4; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
184 total += (v > 0.0) ? 1.0f : 2.0f; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
185 } |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
186 System.out.println(total); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
187 } |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
188 |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
189 static void testff() { |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
190 float total = 0; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
191 for (int i = 0 ; i < 10000; i++) { |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
192 int v = i % 4; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
193 total += (v > 0.0f) ? 1.0f : 2.0f; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
194 } |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
195 System.out.println(total); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
196 } |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
197 |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
198 static void testf() { |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
199 float total = 0; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
200 for (int i = 0 ; i < 10000; i++) { |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
201 total += (i % 4 != 0) ? 1.0f : 2.0f; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
202 } |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
203 System.out.println(total); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
204 } |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
205 |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
206 static void testud() { |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
207 double total = 0; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
208 for (int i = 0 ; i < 10000; i++) { |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
209 int v = i % 4; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
210 total += ((v >= 1 && v < 3) ? 1.0d : 2.0d); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
211 } |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
212 System.out.println(total); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
213 } |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
214 |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
215 static void testdd() { |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
216 double total = 0; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
217 for (int i = 0 ; i < 10000; i++) { |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
218 int v = i % 4; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
219 total += (v > 1.0) ? 1.0d : 2.0d; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
220 } |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
221 System.out.println(total); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
222 } |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
223 |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
224 static void testfd() { |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
225 double total = 0; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
226 for (int i = 0 ; i < 10000; i++) { |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
227 int v = i % 4; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
228 total += (v > 1.0f) ? 1.0d : 2.0d; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
229 } |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
230 System.out.println(total); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
231 } |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
232 |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
233 static void testd() { |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
234 double total = 0; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
235 for (int i = 0 ; i < 10000; i++) { |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
236 total += (i % 4 != 0) ? 1.0d : 2.0d; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
237 } |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
238 System.out.println(total); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
239 } |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
240 |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
241 static void testp() { |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
242 Object a = new Object(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
243 Object b = new Object();; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
244 int total = 0; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
245 for (int i = 0 ; i < 10000; i++) { |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
246 total += ((i % 4 != 0) ? a : b).hashCode(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
247 } |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
248 System.out.println(total); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
249 } |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
250 |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
251 static void testup() { |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
252 Object a = new Object(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
253 Object b = new Object();; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
254 int total = 0; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
255 for (int i = 0 ; i < 10000; i++) { |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
256 int v = i % 4; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
257 total += ((v >= 1 && v < 3) ? a : b).hashCode(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
258 } |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
259 System.out.println(total); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
260 } |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
261 |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
262 static void testdp() { |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
263 Object a = new Object(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
264 Object b = new Object();; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
265 int total = 0; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
266 for (int i = 0 ; i < 10000; i++) { |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
267 int v = i % 4; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
268 total += ((v > 1.0) ? a : b).hashCode(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
269 } |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
270 System.out.println(total); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
271 } |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
272 static void testfp() { |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
273 Object a = new Object(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
274 Object b = new Object();; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
275 int total = 0; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
276 for (int i = 0 ; i < 10000; i++) { |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
277 int v = i % 4; |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
278 total += ((v > 1.0f) ? a : b).hashCode(); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
279 } |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
280 System.out.println(total); |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
281 } |
f24201449cac
6909839: missing unsigned compare cases for some cmoves in sparc.ad
never
parents:
diff
changeset
|
282 } |