author | rkennke |
Tue, 02 Apr 2019 18:13:42 +0200 | |
changeset 54383 | cdc3bb0983a6 |
parent 53244 | 9807daeb47c4 |
permissions | -rw-r--r-- |
1 | 1 |
/* |
53244
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
47216
diff
changeset
|
2 |
* Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved. |
1 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
7 |
* published by the Free Software Foundation. |
|
8 |
* |
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
13 |
* accompanied this code). |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License version |
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
18 |
* |
|
5547
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1
diff
changeset
|
21 |
* questions. |
1 | 22 |
* |
23 |
*/ |
|
24 |
||
53244
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
47216
diff
changeset
|
25 |
#ifndef SHARE_ASM_REGISTER_HPP |
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
47216
diff
changeset
|
26 |
#define SHARE_ASM_REGISTER_HPP |
7397 | 27 |
|
37466 | 28 |
#include "utilities/debug.hpp" |
29 |
#include "utilities/globalDefinitions.hpp" |
|
40010 | 30 |
#include "utilities/macros.hpp" |
7397 | 31 |
|
1 | 32 |
// Use AbstractRegister as shortcut |
33 |
class AbstractRegisterImpl; |
|
34 |
typedef AbstractRegisterImpl* AbstractRegister; |
|
35 |
||
36 |
||
37 |
// The super class for platform specific registers. Instead of using value objects, |
|
38 |
// registers are implemented as pointers. Subclassing is used so all registers can |
|
39 |
// use the debugging suport below. No virtual functions are used for efficiency. |
|
40 |
// They are canonicalized; i.e., registers are equal if their pointers are equal, |
|
41 |
// and vice versa. A concrete implementation may just map the register onto 'this'. |
|
42 |
||
43 |
class AbstractRegisterImpl { |
|
44 |
protected: |
|
45 |
int value() const { return (int)(intx)this; } |
|
46 |
}; |
|
47 |
||
48 |
||
49 |
// |
|
50 |
// Macros for use in defining Register instances. We'd like to be |
|
51 |
// able to simply define const instances of the RegisterImpl* for each |
|
52 |
// of the registers needed on a system in a header file. However many |
|
53 |
// compilers don't handle this very well and end up producing a |
|
54 |
// private definition in every file which includes the header file. |
|
55 |
// Along with the static constructors necessary for initialization it |
|
56 |
// can consume a significant amount of space in the result library. |
|
57 |
// |
|
58 |
// The following macros allow us to declare the instance in a .hpp and |
|
59 |
// produce an enumeration value which has the same number. Then in a |
|
60 |
// .cpp the the register instance can be defined using the enumeration |
|
61 |
// value. This avoids the use of static constructors and multiple |
|
62 |
// definitions per .cpp. In addition #defines for the register can be |
|
63 |
// produced so that the constant registers can be inlined. These |
|
64 |
// macros should not be used inside other macros, because you may get |
|
65 |
// multiple evaluations of the macros which can give bad results. |
|
66 |
// |
|
67 |
// Here are some example uses and expansions. Note that the macro |
|
68 |
// invocation is terminated with a ;. |
|
69 |
// |
|
70 |
// CONSTANT_REGISTER_DECLARATION(Register, G0, 0); |
|
71 |
// |
|
72 |
// extern const Register G0 ; |
|
73 |
// enum { G0_RegisterEnumValue = 0 } ; |
|
74 |
// |
|
75 |
// REGISTER_DECLARATION(Register, Gmethod, G5); |
|
76 |
// |
|
77 |
// extern const Register Gmethod ; |
|
78 |
// enum { Gmethod_RegisterEnumValue = G5_RegisterEnumValue } ; |
|
79 |
// |
|
80 |
// REGISTER_DEFINITION(Register, G0); |
|
81 |
// |
|
82 |
// const Register G0 = ( ( Register ) G0_RegisterEnumValue ) ; |
|
83 |
// |
|
84 |
||
85 |
#define AS_REGISTER(type,name) ((type)name##_##type##EnumValue) |
|
86 |
||
87 |
#define CONSTANT_REGISTER_DECLARATION(type, name, value) \ |
|
88 |
extern const type name; \ |
|
89 |
enum { name##_##type##EnumValue = (value) } |
|
90 |
||
91 |
#define REGISTER_DECLARATION(type, name, value) \ |
|
92 |
extern const type name; \ |
|
93 |
enum { name##_##type##EnumValue = value##_##type##EnumValue } |
|
94 |
||
95 |
#define REGISTER_DEFINITION(type, name) \ |
|
96 |
const type name = ((type)name##_##type##EnumValue) |
|
97 |
||
40010 | 98 |
#include CPU_HEADER(register) |
1 | 99 |
|
100 |
// Debugging support |
|
101 |
||
102 |
inline void assert_different_registers( |
|
103 |
AbstractRegister a, |
|
104 |
AbstractRegister b |
|
105 |
) { |
|
106 |
assert( |
|
107 |
a != b, |
|
33105
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
108 |
"registers must be different: a=" INTPTR_FORMAT ", b=" INTPTR_FORMAT "", p2i(a), p2i(b) |
1 | 109 |
); |
110 |
} |
|
111 |
||
112 |
||
113 |
inline void assert_different_registers( |
|
114 |
AbstractRegister a, |
|
115 |
AbstractRegister b, |
|
116 |
AbstractRegister c |
|
117 |
) { |
|
118 |
assert( |
|
119 |
a != b && a != c |
|
120 |
&& b != c, |
|
33105
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
121 |
"registers must be different: a=" INTPTR_FORMAT ", b=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
122 |
", c=" INTPTR_FORMAT "", |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
123 |
p2i(a), p2i(b), p2i(c) |
1 | 124 |
); |
125 |
} |
|
126 |
||
127 |
||
128 |
inline void assert_different_registers( |
|
129 |
AbstractRegister a, |
|
130 |
AbstractRegister b, |
|
131 |
AbstractRegister c, |
|
132 |
AbstractRegister d |
|
133 |
) { |
|
134 |
assert( |
|
135 |
a != b && a != c && a != d |
|
136 |
&& b != c && b != d |
|
137 |
&& c != d, |
|
33105
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
138 |
"registers must be different: a=" INTPTR_FORMAT ", b=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
139 |
", c=" INTPTR_FORMAT ", d=" INTPTR_FORMAT "", |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
140 |
p2i(a), p2i(b), p2i(c), p2i(d) |
1 | 141 |
); |
142 |
} |
|
143 |
||
144 |
||
145 |
inline void assert_different_registers( |
|
146 |
AbstractRegister a, |
|
147 |
AbstractRegister b, |
|
148 |
AbstractRegister c, |
|
149 |
AbstractRegister d, |
|
150 |
AbstractRegister e |
|
151 |
) { |
|
152 |
assert( |
|
153 |
a != b && a != c && a != d && a != e |
|
154 |
&& b != c && b != d && b != e |
|
155 |
&& c != d && c != e |
|
156 |
&& d != e, |
|
33105
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
157 |
"registers must be different: a=" INTPTR_FORMAT ", b=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
158 |
", c=" INTPTR_FORMAT ", d=" INTPTR_FORMAT ", e=" INTPTR_FORMAT "", |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
159 |
p2i(a), p2i(b), p2i(c), p2i(d), p2i(e) |
1 | 160 |
); |
161 |
} |
|
162 |
||
163 |
||
164 |
inline void assert_different_registers( |
|
165 |
AbstractRegister a, |
|
166 |
AbstractRegister b, |
|
167 |
AbstractRegister c, |
|
168 |
AbstractRegister d, |
|
169 |
AbstractRegister e, |
|
170 |
AbstractRegister f |
|
171 |
) { |
|
172 |
assert( |
|
173 |
a != b && a != c && a != d && a != e && a != f |
|
174 |
&& b != c && b != d && b != e && b != f |
|
175 |
&& c != d && c != e && c != f |
|
176 |
&& d != e && d != f |
|
177 |
&& e != f, |
|
33105
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
178 |
"registers must be different: a=" INTPTR_FORMAT ", b=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
179 |
", c=" INTPTR_FORMAT ", d=" INTPTR_FORMAT ", e=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
180 |
", f=" INTPTR_FORMAT "", |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
181 |
p2i(a), p2i(b), p2i(c), p2i(d), p2i(e), p2i(f) |
1 | 182 |
); |
183 |
} |
|
184 |
||
185 |
||
186 |
inline void assert_different_registers( |
|
187 |
AbstractRegister a, |
|
188 |
AbstractRegister b, |
|
189 |
AbstractRegister c, |
|
190 |
AbstractRegister d, |
|
191 |
AbstractRegister e, |
|
192 |
AbstractRegister f, |
|
193 |
AbstractRegister g |
|
194 |
) { |
|
195 |
assert( |
|
196 |
a != b && a != c && a != d && a != e && a != f && a != g |
|
197 |
&& b != c && b != d && b != e && b != f && b != g |
|
198 |
&& c != d && c != e && c != f && c != g |
|
199 |
&& d != e && d != f && d != g |
|
200 |
&& e != f && e != g |
|
201 |
&& f != g, |
|
33105
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
202 |
"registers must be different: a=" INTPTR_FORMAT ", b=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
203 |
", c=" INTPTR_FORMAT ", d=" INTPTR_FORMAT ", e=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
204 |
", f=" INTPTR_FORMAT ", g=" INTPTR_FORMAT "", |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
205 |
p2i(a), p2i(b), p2i(c), p2i(d), p2i(e), p2i(f), p2i(g) |
1 | 206 |
); |
207 |
} |
|
208 |
||
209 |
||
210 |
inline void assert_different_registers( |
|
211 |
AbstractRegister a, |
|
212 |
AbstractRegister b, |
|
213 |
AbstractRegister c, |
|
214 |
AbstractRegister d, |
|
215 |
AbstractRegister e, |
|
216 |
AbstractRegister f, |
|
217 |
AbstractRegister g, |
|
218 |
AbstractRegister h |
|
219 |
) { |
|
220 |
assert( |
|
221 |
a != b && a != c && a != d && a != e && a != f && a != g && a != h |
|
222 |
&& b != c && b != d && b != e && b != f && b != g && b != h |
|
223 |
&& c != d && c != e && c != f && c != g && c != h |
|
224 |
&& d != e && d != f && d != g && d != h |
|
225 |
&& e != f && e != g && e != h |
|
226 |
&& f != g && f != h |
|
227 |
&& g != h, |
|
33105
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
228 |
"registers must be different: a=" INTPTR_FORMAT ", b=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
229 |
", c=" INTPTR_FORMAT ", d=" INTPTR_FORMAT ", e=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
230 |
", f=" INTPTR_FORMAT ", g=" INTPTR_FORMAT ", h=" INTPTR_FORMAT "", |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
231 |
p2i(a), p2i(b), p2i(c), p2i(d), p2i(e), p2i(f), p2i(g), p2i(h) |
13391
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
232 |
); |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
233 |
} |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
234 |
|
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
235 |
|
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
236 |
inline void assert_different_registers( |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
237 |
AbstractRegister a, |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
238 |
AbstractRegister b, |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
239 |
AbstractRegister c, |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
240 |
AbstractRegister d, |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
241 |
AbstractRegister e, |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
242 |
AbstractRegister f, |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
243 |
AbstractRegister g, |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
244 |
AbstractRegister h, |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
245 |
AbstractRegister i |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
246 |
) { |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
247 |
assert( |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
248 |
a != b && a != c && a != d && a != e && a != f && a != g && a != h && a != i |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
249 |
&& b != c && b != d && b != e && b != f && b != g && b != h && b != i |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
250 |
&& c != d && c != e && c != f && c != g && c != h && c != i |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
251 |
&& d != e && d != f && d != g && d != h && d != i |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
252 |
&& e != f && e != g && e != h && e != i |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
253 |
&& f != g && f != h && f != i |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
254 |
&& g != h && g != i |
30245956af37
7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents:
7397
diff
changeset
|
255 |
&& h != i, |
33105
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
256 |
"registers must be different: a=" INTPTR_FORMAT ", b=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
257 |
", c=" INTPTR_FORMAT ", d=" INTPTR_FORMAT ", e=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
258 |
", f=" INTPTR_FORMAT ", g=" INTPTR_FORMAT ", h=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
259 |
", i=" INTPTR_FORMAT "", |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
260 |
p2i(a), p2i(b), p2i(c), p2i(d), p2i(e), p2i(f), p2i(g), p2i(h), p2i(i) |
1 | 261 |
); |
262 |
} |
|
7397 | 263 |
|
26434
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
264 |
inline void assert_different_registers( |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
265 |
AbstractRegister a, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
266 |
AbstractRegister b, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
267 |
AbstractRegister c, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
268 |
AbstractRegister d, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
269 |
AbstractRegister e, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
270 |
AbstractRegister f, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
271 |
AbstractRegister g, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
272 |
AbstractRegister h, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
273 |
AbstractRegister i, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
274 |
AbstractRegister j |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
275 |
) { |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
276 |
assert( |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
277 |
a != b && a != c && a != d && a != e && a != f && a != g && a != h && a != i && a != j |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
278 |
&& b != c && b != d && b != e && b != f && b != g && b != h && b != i && b != j |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
279 |
&& c != d && c != e && c != f && c != g && c != h && c != i && c != j |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
280 |
&& d != e && d != f && d != g && d != h && d != i && d != j |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
281 |
&& e != f && e != g && e != h && e != i && e != j |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
282 |
&& f != g && f != h && f != i && f != j |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
283 |
&& g != h && g != i && g != j |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
284 |
&& h != i && h != j |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
285 |
&& i != j, |
33105
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
286 |
"registers must be different: a=" INTPTR_FORMAT ", b=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
287 |
", c=" INTPTR_FORMAT ", d=" INTPTR_FORMAT ", e=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
288 |
", f=" INTPTR_FORMAT ", g=" INTPTR_FORMAT ", h=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
289 |
", i=" INTPTR_FORMAT ", j=" INTPTR_FORMAT "", |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
290 |
p2i(a), p2i(b), p2i(c), p2i(d), p2i(e), p2i(f), p2i(g), p2i(h), p2i(i), p2i(j) |
26434
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
291 |
); |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
292 |
} |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
293 |
|
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
294 |
inline void assert_different_registers( |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
295 |
AbstractRegister a, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
296 |
AbstractRegister b, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
297 |
AbstractRegister c, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
298 |
AbstractRegister d, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
299 |
AbstractRegister e, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
300 |
AbstractRegister f, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
301 |
AbstractRegister g, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
302 |
AbstractRegister h, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
303 |
AbstractRegister i, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
304 |
AbstractRegister j, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
305 |
AbstractRegister k |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
306 |
) { |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
307 |
assert( |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
308 |
a != b && a != c && a != d && a != e && a != f && a != g && a != h && a != i && a != j && a !=k |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
309 |
&& b != c && b != d && b != e && b != f && b != g && b != h && b != i && b != j && b !=k |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
310 |
&& c != d && c != e && c != f && c != g && c != h && c != i && c != j && c !=k |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
311 |
&& d != e && d != f && d != g && d != h && d != i && d != j && d !=k |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
312 |
&& e != f && e != g && e != h && e != i && e != j && e !=k |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
313 |
&& f != g && f != h && f != i && f != j && f !=k |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
314 |
&& g != h && g != i && g != j && g !=k |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
315 |
&& h != i && h != j && h !=k |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
316 |
&& i != j && i !=k |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
317 |
&& j !=k, |
33105
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
318 |
"registers must be different: a=" INTPTR_FORMAT ", b=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
319 |
", c=" INTPTR_FORMAT ", d=" INTPTR_FORMAT ", e=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
320 |
", f=" INTPTR_FORMAT ", g=" INTPTR_FORMAT ", h=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
321 |
", i=" INTPTR_FORMAT ", j=" INTPTR_FORMAT ", k=" INTPTR_FORMAT "", |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
322 |
p2i(a), p2i(b), p2i(c), p2i(d), p2i(e), p2i(f), p2i(g), p2i(h), p2i(i), p2i(j), p2i(k) |
26434
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
323 |
); |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
324 |
} |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
325 |
|
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
326 |
inline void assert_different_registers( |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
327 |
AbstractRegister a, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
328 |
AbstractRegister b, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
329 |
AbstractRegister c, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
330 |
AbstractRegister d, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
331 |
AbstractRegister e, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
332 |
AbstractRegister f, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
333 |
AbstractRegister g, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
334 |
AbstractRegister h, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
335 |
AbstractRegister i, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
336 |
AbstractRegister j, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
337 |
AbstractRegister k, |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
338 |
AbstractRegister l |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
339 |
) { |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
340 |
assert( |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
341 |
a != b && a != c && a != d && a != e && a != f && a != g && a != h && a != i && a != j && a !=k && a !=l |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
342 |
&& b != c && b != d && b != e && b != f && b != g && b != h && b != i && b != j && b !=k && b !=l |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
343 |
&& c != d && c != e && c != f && c != g && c != h && c != i && c != j && c !=k && c !=l |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
344 |
&& d != e && d != f && d != g && d != h && d != i && d != j && d !=k && d !=l |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
345 |
&& e != f && e != g && e != h && e != i && e != j && e !=k && e !=l |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
346 |
&& f != g && f != h && f != i && f != j && f !=k && f !=l |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
347 |
&& g != h && g != i && g != j && g !=k && g !=l |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
348 |
&& h != i && h != j && h !=k && h !=l |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
349 |
&& i != j && i !=k && i !=l |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
350 |
&& j !=k && j !=l |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
351 |
&& k !=l, |
33105
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
352 |
"registers must be different: a=" INTPTR_FORMAT ", b=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
353 |
", c=" INTPTR_FORMAT ", d=" INTPTR_FORMAT ", e=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
354 |
", f=" INTPTR_FORMAT ", g=" INTPTR_FORMAT ", h=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
355 |
", i=" INTPTR_FORMAT ", j=" INTPTR_FORMAT ", k=" INTPTR_FORMAT |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
356 |
", l=" INTPTR_FORMAT "", |
294e48b4f704
8080775: Better argument formatting for assert() and friends
david
parents:
29180
diff
changeset
|
357 |
p2i(a), p2i(b), p2i(c), p2i(d), p2i(e), p2i(f), p2i(g), p2i(h), p2i(i), p2i(j), p2i(k), p2i(l) |
26434
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
358 |
); |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
359 |
} |
09ad55e5f486
8055494: Add C2 x86 intrinsic for BigInteger::multiplyToLen() method
kvn
parents:
24424
diff
changeset
|
360 |
|
53244
9807daeb47c4
8216167: Update include guards to reflect correct directories
coleenp
parents:
47216
diff
changeset
|
361 |
#endif // SHARE_ASM_REGISTER_HPP |