1 # sparc32 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 register 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 # b base register (used in address references)
17 # 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-sparc32.c for more details on how the specifiers are used.
87 call: dest:i clob:c len:16
123 ldind.i1: dest:i len:4
124 ldind.u1: dest:i len:4
125 ldind.i2: dest:i len:4
126 ldind.u2: dest:i len:4
127 ldind.i4: dest:i len:4
128 ldind.u4: dest:i len:4
130 ldind.i: dest:i len:4
133 ldind.ref: dest:i len:4
134 stind.ref: src1:b src2:i
135 stind.i1: src1:b src2:i
136 stind.i2: src1:b src2:i
137 stind.i4: src1:b src2:i
139 stind.r4: src1:b src2:f
140 stind.r8: src1:b src2:f
141 add: dest:i src1:i src2:i len:4
142 sub: dest:i src1:i src2:i len:4
143 mul: dest:i src1:i src2:i len:4
144 div: dest:i src1:i src2:i len:20
145 div.un: dest:i src1:i src2:i len:8
146 rem: dest:d src1:i src2:i len:28
147 rem.un: dest:d src1:i src2:i len:16
148 and: dest:i src1:i src2:i len:4
149 or: dest:i src1:i src2:i len:4
150 xor: dest:i src1:i src2:i len:4
151 shl: dest:i src1:i src2:i len:4
152 shr: dest:i src1:i src2:i len:4
153 shr.un: dest:i src1:i src2:i len:4
154 neg: dest:i src1:i len:4
155 not: dest:i src1:i len:4
156 conv.i1: dest:i src1:i len:8
157 conv.i2: dest:i src1:i len:8
158 conv.i4: dest:i src1:i len:4
160 conv.r4: dest:f src1:i len:16
161 conv.r8: dest:f src1:i len:12
162 conv.u4: dest:i src1:i len:
223 ckfinite: dest:f src1:f len:40
226 conv.u2: dest:i src1:i len:8
227 conv.u1: dest:i src1:i len:4
228 conv.i: dest:i src1:i len:4
233 mul.ovf: dest:i src1:i src2:i len:24
234 mul.ovf.un: dest:i src1:i src2:i len:20
237 start_handler: len:20
243 conv.u: dest:i src1:i len:4
255 cgt.un: dest:i len:12
257 clt.un: dest:i len:12
266 localloc: dest:i src1:i len:24
267 sparc_localloc_imm: dest:i len:16
293 compare: src1:i src2:i len:4
294 compare_imm: src1:i len:12
295 fcompare: src1:f src2:f len:12
299 setfret: dest:f src1:f len:8
300 # FIXME: Mono-specifc opcodes (OP_) Need to clean these up
304 setret: dest:a src1:i len:4
305 setlret: dest:l src1:i src2:i len:8
306 setreg: dest:i src1:i len:4 clob:r
307 setregimm: dest:i len:8 clob:r
308 setfreg: dest:f src1:f len:4 clob:r
309 checkthis: src1:b len:4
310 oparglist: src1:i len:12
311 voidcall: len:12 clob:c
312 voidcall_reg: src1:i len:12 clob:c
313 voidcall_membase: src1:b len:16 clob:c
314 fcall: dest:f len:20 clob:c
315 fcall_reg: dest:f src1:i len:20 clob:c
316 fcall_membase: dest:f src1:b len:24 clob:c
317 lcall: dest:l len:20 clob:c
318 lcall_reg: dest:l src1:i len:20 clob:c
319 lcall_membase: dest:l src1:b len:24 clob:c
321 vcall_reg: src1:i len:16 clob:c
322 vcall_membase: src1:b len:24 clob:c
323 call_reg: dest:i src1:i len:16 clob:c
324 call_membase: dest:i src1:b len:20 clob:c
328 r4const: dest:f len:16
329 r8const: dest:f len:12
334 store_membase_imm: dest:b len:20
335 store_membase_reg: dest:b src1:i len:12
336 storei1_membase_imm: dest:b len:20
337 storei1_membase_reg: dest:b src1:i len:12
338 storei2_membase_imm: dest:b len:20
339 storei2_membase_reg: dest:b src1:i len:12
340 storei4_membase_imm: dest:b len:20
341 storei4_membase_reg: dest:b src1:i len:12
342 storei8_membase_imm: dest:b len:20
343 storei8_membase_reg: dest:b src1:i len:12
344 storer4_membase_reg: dest:b src1:f len:20
345 storer8_membase_reg: dest:b src1:f len:20
346 load_membase: dest:i src1:b len:12
347 loadi1_membase: dest:i src1:b len:12
348 loadu1_membase: dest:i src1:b len:12
349 loadi2_membase: dest:i src1:b len:12
350 loadu2_membase: dest:i src1:b len:12
351 loadi4_membase: dest:i src1:b len:12
352 loadu4_membase: dest:i src1:b len:12
353 loadi8_membase: dest:i src1:b
354 loadr4_membase: dest:f src1:b len:16
355 loadr8_membase: dest:f src1:b len:20
356 loadu4_mem: dest:i len:8
357 move: dest:i src1:i len:4
358 add_imm: dest:i src1:i len:12
359 sub_imm: dest:i src1:i len:12
360 mul_imm: dest:i src1:i len:12
361 div_imm: dest:a src1:i src2:i len:28
362 div_un_imm: dest:a src1:i src2:i len:12
363 rem_imm: dest:d src1:i src2:i len:36
364 rem_un_imm: dest:d src1:i src2:i len:16
365 and_imm: dest:i src1:i len:12
366 or_imm: dest:i src1:i len:12
367 xor_imm: dest:i src1:i len:12
368 shl_imm: dest:i src1:i len:12
369 shr_imm: dest:i src1:i len:12
370 shr_un_imm: dest:i src1:i len:12
372 cond_exc_ne_un: len:12
374 cond_exc_lt_un: len:12
376 cond_exc_gt_un: len:12
378 cond_exc_ge_un: len:12
380 cond_exc_le_un: len:12
411 long_conv_to_ovf_i: dest:i src1:i src2:i len:44
419 long_conv_to_ovf_i1_un:
420 long_conv_to_ovf_i2_un:
421 long_conv_to_ovf_i4_un:
422 long_conv_to_ovf_i8_un:
423 long_conv_to_ovf_u1_un:
424 long_conv_to_ovf_u2_un:
425 long_conv_to_ovf_u4_un:
426 long_conv_to_ovf_u8_un:
427 long_conv_to_ovf_i_un:
428 long_conv_to_ovf_u_un:
442 long_conv_to_r_un: dest:f src1:i src2:i len:37
469 float_add: dest:f src1:f src2:f len:4
470 float_sub: dest:f src1:f src2:f len:4
471 float_mul: dest:f src1:f src2:f len:4
472 float_div: dest:f src1:f src2:f len:4
473 float_div_un: dest:f src1:f src2:f len:4
474 float_rem: dest:f src1:f src2:f len:16
475 float_rem_un: dest:f src1:f src2:f len:16
476 float_neg: dest:f src1:f len:4
477 float_not: dest:f src1:f len:4
478 float_conv_to_i1: dest:i src1:f len:40
479 float_conv_to_i2: dest:i src1:f len:40
480 float_conv_to_i4: dest:i src1:f len:40
481 float_conv_to_i8: dest:l src1:f len:40
482 float_conv_to_r4: dest:f src1:f len:8
484 float_conv_to_u4: dest:i src1:f len:40
485 float_conv_to_u8: dest:l src1:f len:40
486 float_conv_to_u2: dest:i src1:f len:40
487 float_conv_to_u1: dest:i src1:f len:40
488 float_conv_to_i: dest:i src1:f len:40
497 float_conv_to_ovf_i1_un:
498 float_conv_to_ovf_i2_un:
499 float_conv_to_ovf_i4_un:
500 float_conv_to_ovf_i8_un:
501 float_conv_to_ovf_u1_un:
502 float_conv_to_ovf_u2_un:
503 float_conv_to_ovf_u4_un:
504 float_conv_to_ovf_u8_un:
505 float_conv_to_ovf_i_un:
506 float_conv_to_ovf_u_un:
507 float_conv_to_ovf_i1:
508 float_conv_to_ovf_u1:
509 float_conv_to_ovf_i2:
510 float_conv_to_ovf_u2:
511 float_conv_to_ovf_i4:
512 float_conv_to_ovf_u4:
513 float_conv_to_ovf_i8:
514 float_conv_to_ovf_u8:
515 float_ceq: dest:i src1:f src2:f len:16
516 float_cgt: dest:i src1:f src2:f len:16
517 float_cgt_un: dest:i src1:f src2:f len:24
518 float_clt: dest:i src1:f src2:f len:16
519 float_clt_un: dest:i src1:f src2:f len:24
520 float_conv_to_u: dest:i src1:f len:36
522 op_endfilter: src1:i len:12
523 aot_const: dest:i len:8
524 adc: dest:i src1:i src2:i len:4
525 addcc: dest:i src1:i src2:i len:4
526 subcc: dest:i src1:i src2:i len:4
527 adc_imm: dest:i src1:i len:12
528 sbb: dest:i src1:i src2:i len:4
529 sbb_imm: dest:i src1:i len:12
531 op_bigmul: len:2 dest:l src1:a src2:i
532 op_bigmul_un: len:2 dest:l src1:a src2:i
533 fmove: dest:f src1:f len:8