1 # S/390 cpu description file
2 # this file is read by genmdesc to pruduce a table with all the relevant information
3 # about the cpu instructions that may be used by the regsiter allocator, the scheduler
4 # and other parts of the arch-dependent part of mini.
6 # An opcode name is followed by a colon and optional specifiers.
7 # A specifier has a name, a colon and a value. Specifiers are separated by white space.
8 # Here is a description of the specifiers valid for this file and their possible values.
10 # dest:register describes the destination register of an instruction
11 # src1:register describes the first source register of an instruction
12 # src2:register describes the second source register of an instruction
14 # register may have the following values:
16 # a r3 register (output from calls)
17 # b base register (used in address references)
18 # f floating point register
20 # len:number describe the maximun length in bytes of the instruction
21 # number is a positive integer
23 # cost:number describe how many cycles are needed to complete the instruction (unused)
25 # clob:spec describe if the instruction clobbers registers or has special needs
27 # spec can be one of the following characters:
28 # c clobbers caller-save registers
29 # r 'reserves' the destination register until a later instruction unreserves it
30 # used mostly to set output registers in function calls
32 # flags:spec describe if the instruction uses or sets the flags (unused)
34 # spec can be one of the following chars:
37 # m uses and modifies the flags
39 # res:spec describe what units are used in the processor (unused)
41 # delay: describe delay slots (unused)
43 # the required specifiers are: len, clob (if registers are clobbered), the registers
44 # specifiers if the registers are actually used, flags (when scheduling is implemented).
46 # See the code in mini-x86.c for more details on how the specifiers are used.
49 adc: dest:i src1:i src2:i len:6
50 adc_imm: dest:i src1:i len:14
51 add_imm: dest:i src1:i len:24
52 add_ovf_carry: dest:i src1:1 src2:i len:28
53 add_ovf_un_carry: dest:i src1:1 src2:i len:12
54 addcc: dest:i src1:i src2:i len:12
55 and_imm: dest:i src1:i len:24
56 aot_const: dest:i len:8
57 atomic_add_i4: src1:b src2:i dest:i len:28
58 atomic_add_i8: src1:b src2:i dest:i len:30
59 atomic_add_new_i4: src1:b src2:i dest:i len:28
60 atomic_add_new_i8: src1:b src2:i dest:i len:30
61 atomic_exchange_i4: src1:b src2:i dest:i len:18
62 atomic_exchange_i8: src1:b src2:i dest:i len:24
66 call: dest:o clob:c len:26
67 call_handler: len:12 clob:c
68 call_membase: dest:o src1:b len:12 clob:c
69 call_reg: dest:o src1:i len:8 clob:c
73 checkthis: src1:b len:10
74 ckfinite: dest:f src1:f len:22
77 compare: src1:i src2:i len:4
78 compare_imm: src1:i len:20
93 div_imm: dest:i src1:i src2:i len:24
94 div_un_imm: dest:i src1:i src2:i len:24
96 fcall: dest:g len:26 clob:c
97 fcall_membase: dest:g src1:b len:14 clob:c
98 fcall_reg: dest:g src1:i len:10 clob:c
99 fcompare: src1:f src2:f len:14
100 float_add: dest:f src1:f src2:f len:6
111 float_ceq: dest:i src1:f src2:f len:16
112 float_cgt: dest:i src1:f src2:f len:16
113 float_cgt_un: dest:i src1:f src2:f len:16
114 float_clt: dest:i src1:f src2:f len:16
115 float_clt_un: dest:i src1:f src2:f len:16
116 float_conv_to_i1: dest:i src1:f len:50
117 float_conv_to_i2: dest:i src1:f len:50
118 float_conv_to_i4: dest:i src1:f len:50
119 float_conv_to_i8: dest:l src1:f len:50
120 float_conv_to_i: dest:i src1:f len:52
121 float_conv_to_r4: dest:f src1:f len:4
122 float_conv_to_u1: dest:i src1:f len:66
123 float_conv_to_u2: dest:i src1:f len:66
124 float_conv_to_u4: dest:i src1:f len:66
125 float_conv_to_u8: dest:i src1:f len:66
126 float_conv_to_u: dest:i src1:f len:36
127 float_div: dest:f src1:f src2:f len:6
128 float_div_un: dest:f src1:f src2:f len:6
129 float_mul: dest:f src1:f src2:f len:6
130 float_neg: dest:f src1:f len:6
131 float_not: dest:f src1:f len:6
132 float_rem: dest:f src1:f src2:f len:16
133 float_rem_un: dest:f src1:f src2:f len:16
134 float_sub: dest:f src1:f src2:f len:6
135 fmove: dest:f src1:f len:4
136 i8const: dest:i len:20
137 icompare: src1:i src2:i len:4
138 icompare_imm: src1:i len:14
139 iconst: dest:i len:40
144 lcall: dest:o len:22 clob:c
145 lcall_membase: dest:o src1:b len:12 clob:c
146 lcall_reg: dest:o src1:i len:8 clob:c
147 lcompare: src1:i src2:i len:4
148 load_membase: dest:i src1:b len:26
149 loadi1_membase: dest:i src1:b len:40
150 loadi2_membase: dest:i src1:b len:26
151 loadi4_membase: dest:i src1:b len:26
152 loadi8_membase: dest:i src1:b len:26
153 loadr4_membase: dest:f src1:b len:28
154 loadr8_membase: dest:f src1:b len:28
155 loadu1_membase: dest:i src1:b len:26
156 loadu2_membase: dest:i src1:b len:26
157 loadu4_mem: dest:i len:8
158 loadu4_membase: dest:i src1:b len:26
159 localloc: dest:i src1:i len:106
160 memory_barrier: len: 10
161 move: dest:i src1:i len:4
162 mul_imm: dest:i src1:i len:24
165 oparglist: src1:i len:28
166 bigmul: len:2 dest:i src1:a src2:i
167 bigmul_un: len:2 dest:i src1:a src2:i
168 endfilter: src1:i len:28
169 rethrow: src1:i len:26
170 or_imm: dest:i src1:i len:24
171 r4const: dest:f len:26
172 r8const: dest:f len:24
173 rem_imm: dest:i src1:i src2:i len:24
174 rem_un_imm: dest:i src1:i src2:i len:24
175 s390_bkchain: len: 8 dest:i src1:i
176 s390_move: len:48 dest:b src1:b
177 s390_setf4ret: dest:f src1:f len:4
178 sbb: dest:i src1:i src2:i len:6
179 sbb_imm: dest:i src1:i len:14
180 sext_i4: dest:i src1:i len:4
181 zext_i4: dest:i src1:i len:4
182 shl_imm: dest:i src1:i len:10
183 shr_imm: dest:i src1:i len:10
184 shr_un_imm: dest:i src1:i len:8
185 sqrt: dest:f src1:f len:4
186 start_handler: len:26
187 store_membase_imm: dest:b len:46
188 store_membase_reg: dest:b src1:i len:26
189 storei1_membase_imm: dest:b len:46
190 storei1_membase_reg: dest:b src1:i len:26
191 storei2_membase_imm: dest:b len:46
192 storei2_membase_reg: dest:b src1:i len:26
193 storei4_membase_imm: dest:b len:46
194 storei4_membase_reg: dest:b src1:i len:26
195 storei8_membase_imm: dest:b len:46
196 storei8_membase_reg: dest:b src1:i len:26
197 storer4_membase_reg: dest:b src1:f len:28
198 storer8_membase_reg: dest:b src1:f len:24
199 sub_imm: dest:i src1:i len:18
200 sub_ovf_carry: dest:i src1:1 src2:i len:28
201 sub_ovf_un_carry: dest:i src1:1 src2:i len:12
202 subcc: dest:i src1:i src2:i len:12
205 vcall_membase: src1:b len:12 clob:c
206 vcall_reg: src1:i len:8 clob:c
207 voidcall: len:22 clob:c
208 voidcall_membase: src1:b len:12 clob:c
209 voidcall_reg: src1:i len:8 clob:c
210 xor_imm: dest:i src1:i len:20
213 int_adc: dest:i src1:i src2:i len:12
214 int_adc_imm: dest:i src1:i len:14
215 int_addcc: dest:i src1:i src2:i len:12
216 int_add: dest:i src1:i src2:i len:12
217 int_add_imm: dest:i src1:i len:20
218 int_and: dest:i src1:i src2:i len:12
219 int_and_imm: dest:i src1:i len:24
230 int_ceq: dest:i len:12
231 int_cgt: dest:i len:12
232 int_cgt_un: dest:i len:12
233 int_clt: dest:i len:12
234 int_clt_un: dest:i len:12
235 int_div: dest:a src1:i src2:i len:16
236 int_div_imm: dest:a src1:i len:24
237 int_div_un: dest:a src1:i src2:i len:16
238 int_div_un_imm: dest:a src1:i len:24
239 int_mul: dest:i src1:i src2:i len:16
240 int_mul_imm: dest:i src1:i len:24
241 int_mul_ovf: dest:i src1:i src2:i len:44
242 int_mul_ovf_un: dest:i src1:i src2:i len:22
243 int_add_ovf: dest:i src1:i src2:i len:32
244 int_add_ovf_un: dest:i src1:i src2:i len:32
245 int_sub_ovf: dest:i src1:i src2:i len:32
246 int_sub_ovf_un: dest:i src1:i src2:i len:32
247 int_neg: dest:i src1:i len:12
248 int_not: dest:i src1:i len:12
249 int_or: dest:i src1:i src2:i len:12
250 int_or_imm: dest:i src1:i len:24
251 int_rem: dest:d src1:i src2:i len:16
252 int_rem_imm: dest:d src1:i len:24
253 int_rem_un: dest:d src1:i src2:i len:16
254 int_rem_un_imm: dest:d src1:i len:24
255 int_sbb: dest:i src1:i src2:i len:6
256 int_sbb_imm: dest:i src1:i len:14
257 int_shl: dest:i src1:i src2:i clob:s len:12
258 int_shl_imm: dest:i src1:i len:10
259 int_shr: dest:i src1:i src2:i clob:s len:12
260 int_shr_imm: dest:i src1:i len:10
261 int_shr_un: dest:i src1:i src2:i clob:s len:12
262 int_shr_un_imm: dest:i src1:i len:10
263 int_subcc: dest:i src1:i src2:i len:12
264 int_sub: dest:i src1:i src2:i len:12
265 int_sub_imm: dest:i src1:i len:18
266 int_xor: dest:i src1:i src2:i len:12
267 int_xor_imm: dest:i src1:i len:24
268 int_conv_to_r4: dest:f src1:i len:16
269 int_conv_to_r8: dest:f src1:i len:16
272 long_add: dest:i src1:i src2:i len:12
273 long_sub: dest:i src1:i src2:i len:12
274 long_add_ovf: dest:i src1:i src2:i len:32
275 long_add_ovf_un: dest:i src1:i src2:i len:32
276 long_div: dest:i src1:i src2:i len:12
277 long_div_un: dest:i src1:i src2:i len:16
278 long_mul: dest:i src1:i src2:i len:12
279 long_mul_imm: dest:i src1:i len:20
280 long_mul_ovf: dest:i src1:i src2:i len:56
281 long_mul_ovf_un: dest:i src1:i src2:i len:64
282 long_and: dest:i src1:i src2:i len:8
283 long_or: dest:i src1:i src2:i len:8
284 long_xor: dest:i src1:i src2:i len:8
285 long_neg: dest:i src1:i len:6
286 long_not: dest:i src1:i len:12
287 long_rem: dest:i src1:i src2:i len:12
288 long_rem_un: dest:i src1:i src2:i len:16
289 long_shl: dest:i src1:i src2:i len:14
290 long_shl_imm: dest:i src1:i len:14
291 long_shr_un: dest:i src1:i src2:i len:14
292 long_shr: dest:i src1:i src2:i len:14
293 long_shr_imm: dest:i src1:i len:14
294 long_shr_un_imm: dest:i src1:i len:14
295 long_sub_imm: dest:i src1:i len:16
296 long_sub_ovf: dest:i src1:i src2:i len:16
297 long_sub_ovf_un: dest:i src1:i src2:i len:28
299 long_conv_to_i1: dest:i src1:i len:12
300 long_conv_to_i2: dest:i src1:i len:12
301 long_conv_to_i4: dest:i src1:i len:4
302 long_conv_to_i8: dest:i src1:i len:4
303 long_conv_to_i: dest:i src1:i len:4
304 long_conv_to_ovf_i: dest:i src1:i src2:i len:44
305 long_conv_to_ovf_i4_un: dest:i src1:i len:50
306 long_conv_to_ovf_u4: dest:i src1:i len:48
307 long_conv_to_ovf_u8_un: dest:i src1:i len:4
308 long_conv_to_r4: dest:f src1:i len:16
309 long_conv_to_r8: dest:f src1:i len:16
310 long_conv_to_u1: dest:i src1:i len:16
311 long_conv_to_u2: dest:i src1:i len:24
312 long_conv_to_u4: dest:i src1:i len:4
313 long_conv_to_u8: dest:i src1:i len:4
314 long_conv_to_u: dest:i src1:i len:4
315 long_conv_to_r_un: dest:f src1:i len:37
332 not_null: src1:i len:0
334 jump_table: dest:i len:24
336 int_conv_to_i1: dest:i src1:i len:12
337 int_conv_to_i2: dest:i src1:i len:12
338 int_conv_to_i4: dest:i src1:i len:2
339 int_conv_to_i: dest:i src1:i len:2
340 int_conv_to_u1: dest:i src1:i len:10
341 int_conv_to_u2: dest:i src1:i len:16
342 int_conv_to_u4: dest:i src1:i
343 int_conv_to_r_un: dest:f src1:i len:37
348 cond_exc_ige_un: len:8
350 cond_exc_igt_un: len:8
352 cond_exc_ile_un: len:8
354 cond_exc_ilt_un: len:8
356 cond_exc_ine_un: len:8
360 lcompare_imm: src1:i len:20
362 long_add_imm: dest:i src1:i len:20
364 long_ceq: dest:i len:12
365 long_cgt_un: dest:i len:12
366 long_cgt: dest:i len:12
367 long_clt_un: dest:i len:12
368 long_clt: dest:i len:12
370 vcall2: len:22 clob:c
371 vcall2_membase: src1:b len:12 clob:c
372 vcall2_reg: src1:i len:8 clob:c
374 s390_int_add_ovf: len:32 dest:i src1:i src2:i
375 s390_int_add_ovf_un: len:32 dest:i src1:i src2:i
376 s390_int_sub_ovf: len:32 dest:i src1:i src2:i
377 s390_int_sub_ovf_un: len:32 dest:i src1:i src2:i
379 s390_long_add_ovf: dest:i src1:i src2:i len:32
380 s390_long_add_ovf_un: dest:i src1:i src2:i len:32
381 s390_long_sub_ovf: dest:i src1:i src2:i len:32
382 s390_long_sub_ovf_un: dest:i src1:i src2:i len:32