- Fix atomic ops on s390
[mono.git] / mono / mini / mini-ops.h
blob54bc9096f4c0df1ba343ff7a382992c9c2102aac
2 MINI_OP(OP_LOAD, "load")
3 MINI_OP(OP_LDADDR, "ldaddr")
4 MINI_OP(OP_STORE, "store")
5 MINI_OP(OP_OBJADDR, "objaddr")
6 MINI_OP(OP_VTADDR, "vtaddr")
7 MINI_OP(OP_PHI, "phi")
8 MINI_OP(OP_RENAME, "rename")
9 MINI_OP(OP_COMPARE, "compare")
10 MINI_OP(OP_COMPARE_IMM, "compare_imm")
11 MINI_OP(OP_FCOMPARE, "fcompare")
12 MINI_OP(OP_LCOMPARE, "lcompare")
13 MINI_OP(OP_ICOMPARE, "icompare")
14 MINI_OP(OP_ICOMPARE_IMM, "icompare_imm")
15 MINI_OP(OP_LOCAL, "local")
16 MINI_OP(OP_ARG, "arg")
17 MINI_OP(OP_ARGLIST, "oparglist")
18 MINI_OP(OP_OUTARG, "outarg")
19 MINI_OP(OP_OUTARG_REG, "outarg_reg")
20 MINI_OP(OP_OUTARG_IMM, "outarg_imm")
21 MINI_OP(OP_OUTARG_R4, "outarg_r4")
22 MINI_OP(OP_OUTARG_R8, "outarg_r8")
23 MINI_OP(OP_OUTARG_VT, "outarg_vt")
24 MINI_OP(OP_INARG_VT, "inarg_vt")
25 MINI_OP(OP_RETARG, "retarg")
26 MINI_OP(OP_SETRET, "setret")
27 MINI_OP(OP_SETFRET, "setfret")
28 MINI_OP(OP_SETLRET, "setlret")
29 MINI_OP(OP_SETREG, "setreg")
30 MINI_OP(OP_SETREGIMM, "setregimm")
31 MINI_OP(OP_SETFREG, "setfreg")
32 MINI_OP(OP_CHECK_THIS, "checkthis")
33 MINI_OP(OP_VOIDCALL, "voidcall")
34 MINI_OP(OP_VOIDCALLVIRT, "voidcallvirt")
35 MINI_OP(OP_VOIDCALL_REG, "voidcall_reg")
36 MINI_OP(OP_VOIDCALL_MEMBASE, "voidcall_membase")
37 MINI_OP(OP_FCALL, "fcall")
38 MINI_OP(OP_FCALLVIRT, "fcallvirt")
39 MINI_OP(OP_FCALL_REG, "fcall_reg")
40 MINI_OP(OP_FCALL_MEMBASE, "fcall_membase")
41 MINI_OP(OP_LCALL, "lcall")
42 MINI_OP(OP_LCALLVIRT, "lcallvirt")
43 MINI_OP(OP_LCALL_REG, "lcall_reg")
44 MINI_OP(OP_LCALL_MEMBASE, "lcall_membase")
45 MINI_OP(OP_VCALL, "vcall")
46 MINI_OP(OP_VCALLVIRT, "vcallvirt")
47 MINI_OP(OP_VCALL_REG, "vcall_reg")
48 MINI_OP(OP_VCALL_MEMBASE, "vcall_membase")
49 MINI_OP(OP_CALL_REG, "call_reg")
50 MINI_OP(OP_CALL_MEMBASE, "call_membase")
51 MINI_OP(OP_TRAP, "trap")
52 MINI_OP(OP_ICONST, "iconst")
53 MINI_OP(OP_I8CONST, "i8const")
54 MINI_OP(OP_R4CONST, "r4const")
55 MINI_OP(OP_R8CONST, "r8const")
56 MINI_OP(OP_REGVAR, "regvar")
57 MINI_OP(OP_REG, "reg")
58 MINI_OP(OP_REGOFFSET, "regoffset")
59 MINI_OP(OP_LABEL, "label")
60 MINI_OP(OP_CHECK_ARRAY_TYPE, "check_array_type")
61 MINI_OP(OP_ARRAY_RANK, "array_rank")
62 MINI_OP(OP_THROW_OR_NULL, "throw_or_null")
63 MINI_OP(OP_RETHROW, "op_rethrow")
64 MINI_OP(OP_REFANYTYPE, "refanytype")
65 MINI_OP(OP_NEWOBJ, "op_newobj")
67 MINI_OP(OP_STORE_MEMBASE_IMM,"store_membase_imm")
68 MINI_OP(OP_STORE_MEMBASE_REG,"store_membase_reg")
69 MINI_OP(OP_STOREI1_MEMBASE_IMM, "storei1_membase_imm")
70 MINI_OP(OP_STOREI1_MEMBASE_REG, "storei1_membase_reg")
71 MINI_OP(OP_STOREI2_MEMBASE_IMM, "storei2_membase_imm")
72 MINI_OP(OP_STOREI2_MEMBASE_REG, "storei2_membase_reg")
73 MINI_OP(OP_STOREI4_MEMBASE_IMM, "storei4_membase_imm")
74 MINI_OP(OP_STOREI4_MEMBASE_REG, "storei4_membase_reg")
75 MINI_OP(OP_STOREI8_MEMBASE_IMM, "storei8_membase_imm")
76 MINI_OP(OP_STOREI8_MEMBASE_REG, "storei8_membase_reg")
77 MINI_OP(OP_STORER4_MEMBASE_REG, "storer4_membase_reg")
78 MINI_OP(OP_STORER8_MEMBASE_REG, "storer8_membase_reg")
79 MINI_OP(OP_LOAD_MEMBASE, "load_membase")
80 MINI_OP(OP_LOADI1_MEMBASE,"loadi1_membase")
81 MINI_OP(OP_LOADU1_MEMBASE,"loadu1_membase")
82 MINI_OP(OP_LOADI2_MEMBASE,"loadi2_membase")
83 MINI_OP(OP_LOADU2_MEMBASE,"loadu2_membase")
84 MINI_OP(OP_LOADI4_MEMBASE,"loadi4_membase")
85 MINI_OP(OP_LOADU4_MEMBASE,"loadu4_membase")
86 MINI_OP(OP_LOADI8_MEMBASE,"loadi8_membase")
87 MINI_OP(OP_LOADR4_MEMBASE,"loadr4_membase")
88 MINI_OP(OP_LOADR8_MEMBASE,"loadr8_membase")
89 MINI_OP(OP_LOADR8_SPILL_MEMBASE,"loadr8_spill_membase")
90 MINI_OP(OP_LOADU4_MEM,"loadu4_mem")
91 MINI_OP(OP_MOVE, "move")
92 MINI_OP(OP_FMOVE, "fmove")
94 MINI_OP(OP_ADD_IMM, "add_imm")
95 MINI_OP(OP_SUB_IMM, "sub_imm")
96 MINI_OP(OP_MUL_IMM, "mul_imm")
97 MINI_OP(OP_DIV_IMM, "div_imm")
98 MINI_OP(OP_DIV_UN_IMM, "div_un_imm")
99 MINI_OP(OP_REM_IMM, "rem_imm")
100 MINI_OP(OP_REM_UN_IMM, "rem_un_imm")
101 MINI_OP(OP_AND_IMM, "and_imm")
102 MINI_OP(OP_OR_IMM, "or_imm")
103 MINI_OP(OP_XOR_IMM, "xor_imm")
104 MINI_OP(OP_SHL_IMM, "shl_imm")
105 MINI_OP(OP_SHR_IMM, "shr_imm")
106 MINI_OP(OP_SHR_UN_IMM, "shr_un_imm")
108 /* exceptions: must be in the same order as the matching CEE_ branch opcodes */
109 MINI_OP(OP_COND_EXC_EQ, "cond_exc_eq")
110 MINI_OP(OP_COND_EXC_GE, "cond_exc_ge")
111 MINI_OP(OP_COND_EXC_GT, "cond_exc_gt")
112 MINI_OP(OP_COND_EXC_LE, "cond_exc_le")
113 MINI_OP(OP_COND_EXC_LT, "cond_exc_lt")
114 MINI_OP(OP_COND_EXC_NE_UN, "cond_exc_ne_un")
115 MINI_OP(OP_COND_EXC_GE_UN, "cond_exc_ge_un")
116 MINI_OP(OP_COND_EXC_GT_UN, "cond_exc_gt_un")
117 MINI_OP(OP_COND_EXC_LE_UN, "cond_exc_le_un")
118 MINI_OP(OP_COND_EXC_LT_UN, "cond_exc_lt_un")
120 MINI_OP(OP_COND_EXC_OV, "cond_exc_ov")
121 MINI_OP(OP_COND_EXC_NO, "cond_exc_no")
122 MINI_OP(OP_COND_EXC_C, "cond_exc_c")
123 MINI_OP(OP_COND_EXC_NC, "cond_exc_nc")
125 /* 64 bit opcodes: must be in the same order as the matching CEE_ opcodes: binops_op_map */
126 MINI_OP(OP_LADD, "long_add")
127 MINI_OP(OP_LSUB, "long_sub")
128 MINI_OP(OP_LMUL, "long_mul")
129 MINI_OP(OP_LDIV, "long_div")
130 MINI_OP(OP_LDIV_UN, "long_div_un")
131 MINI_OP(OP_LREM, "long_rem")
132 MINI_OP(OP_LREM_UN, "long_rem_un")
133 MINI_OP(OP_LAND, "long_and")
134 MINI_OP(OP_LOR, "long_or")
135 MINI_OP(OP_LXOR, "long_xor")
136 MINI_OP(OP_LSHL, "long_shl")
137 MINI_OP(OP_LSHR, "long_shr")
138 MINI_OP(OP_LSHR_UN, "long_shr_un")
140 /* 64 bit opcodes: must be in the same order as the matching CEE_ opcodes: unops_op_map */
141 MINI_OP(OP_LNEG, "long_neg")
142 MINI_OP(OP_LNOT, "long_not")
143 MINI_OP(OP_LCONV_TO_I1,"long_conv_to_i1")
144 MINI_OP(OP_LCONV_TO_I2,"long_conv_to_i2")
145 MINI_OP(OP_LCONV_TO_I4,"long_conv_to_i4")
146 MINI_OP(OP_LCONV_TO_I8,"long_conv_to_i8")
147 MINI_OP(OP_LCONV_TO_R4,"long_conv_to_r4")
148 MINI_OP(OP_LCONV_TO_R8,"long_conv_to_r8")
149 MINI_OP(OP_LCONV_TO_U4,"long_conv_to_u4")
150 MINI_OP(OP_LCONV_TO_U8,"long_conv_to_u8")
152 MINI_OP(OP_LCONV_TO_U2, "long_conv_to_u2")
153 MINI_OP(OP_LCONV_TO_U1, "long_conv_to_u1")
154 MINI_OP(OP_LCONV_TO_I, "long_conv_to_i")
155 MINI_OP(OP_LCONV_TO_OVF_I,"long_conv_to_ovf_i")
156 MINI_OP(OP_LCONV_TO_OVF_U,"long_conv_to_ovf_u")
157 MINI_OP(OP_LADD_OVF, "long_add_ovf")
158 MINI_OP(OP_LADD_OVF_UN, "long_add_ovf_un")
159 MINI_OP(OP_LMUL_OVF, "long_mul_ovf")
160 MINI_OP(OP_LMUL_OVF_UN, "long_mul_ovf_un")
161 MINI_OP(OP_LSUB_OVF, "long_sub_ovf")
162 MINI_OP(OP_LSUB_OVF_UN, "long_sub_ovf_un")
164 MINI_OP(OP_LCONV_TO_OVF_I1_UN,"long_conv_to_ovf_i1_un")
165 MINI_OP(OP_LCONV_TO_OVF_I2_UN,"long_conv_to_ovf_i2_un")
166 MINI_OP(OP_LCONV_TO_OVF_I4_UN,"long_conv_to_ovf_i4_un")
167 MINI_OP(OP_LCONV_TO_OVF_I8_UN,"long_conv_to_ovf_i8_un")
168 MINI_OP(OP_LCONV_TO_OVF_U1_UN,"long_conv_to_ovf_u1_un")
169 MINI_OP(OP_LCONV_TO_OVF_U2_UN,"long_conv_to_ovf_u2_un")
170 MINI_OP(OP_LCONV_TO_OVF_U4_UN,"long_conv_to_ovf_u4_un")
171 MINI_OP(OP_LCONV_TO_OVF_U8_UN,"long_conv_to_ovf_u8_un")
172 MINI_OP(OP_LCONV_TO_OVF_I_UN, "long_conv_to_ovf_i_un")
173 MINI_OP(OP_LCONV_TO_OVF_U_UN, "long_conv_to_ovf_u_un")
175 MINI_OP(OP_LCONV_TO_OVF_I1,"long_conv_to_ovf_i1")
176 MINI_OP(OP_LCONV_TO_OVF_U1,"long_conv_to_ovf_u1")
177 MINI_OP(OP_LCONV_TO_OVF_I2,"long_conv_to_ovf_i2")
178 MINI_OP(OP_LCONV_TO_OVF_U2,"long_conv_to_ovf_u2")
179 MINI_OP(OP_LCONV_TO_OVF_I4,"long_conv_to_ovf_i4")
180 MINI_OP(OP_LCONV_TO_OVF_U4,"long_conv_to_ovf_u4")
181 MINI_OP(OP_LCONV_TO_OVF_I8,"long_conv_to_ovf_i8")
182 MINI_OP(OP_LCONV_TO_OVF_U8,"long_conv_to_ovf_u8")
184 MINI_OP(OP_LCEQ, "long_ceq")
185 MINI_OP(OP_LCGT, "long_cgt")
186 MINI_OP(OP_LCGT_UN,"long_cgt_un")
187 MINI_OP(OP_LCLT, "long_clt")
188 MINI_OP(OP_LCLT_UN,"long_clt_un")
190 MINI_OP(OP_LCONV_TO_R_UN,"long_conv_to_r_un")
191 MINI_OP(OP_LCONV_TO_U, "long_conv_to_u")
192 MINI_OP(OP_LSHR_IMM, "long_shr_imm")
193 MINI_OP(OP_LSHR_UN_IMM, "long_shr_un_imm")
194 MINI_OP(OP_LSHL_IMM, "long_shl_imm")
195 MINI_OP(OP_LADD_IMM, "long_add_imm")
196 MINI_OP(OP_LSUB_IMM, "long_sub_imm")
198 MINI_OP(OP_LBEQ, "long_beq")
199 MINI_OP(OP_LBNE_UN, "long_bne_un")
200 MINI_OP(OP_LBLT, "long_blt")
201 MINI_OP(OP_LBLT_UN, "long_blt_un")
202 MINI_OP(OP_LBGT, "long_bgt")
203 MINI_OP(OP_LBGT_UN, "long_btg_un")
204 MINI_OP(OP_LBGE, "long_bge")
205 MINI_OP(OP_LBGE_UN, "long_bge_un")
206 MINI_OP(OP_LBLE, "long_ble")
207 MINI_OP(OP_LBLE_UN, "long_ble_un")
209 /* 32 bit opcodes on 64 bit machines */
210 MINI_OP(OP_IADD, "int_add")
211 MINI_OP(OP_ISUB, "int_sub")
212 MINI_OP(OP_IMUL, "int_mul")
213 MINI_OP(OP_IMUL_OVF, "int_mul_ovf")
214 MINI_OP(OP_IMUL_OVF_UN, "int_mul_ovf_un")
215 MINI_OP(OP_IDIV, "int_div")
216 MINI_OP(OP_IDIV_UN, "int_div_un")
217 MINI_OP(OP_IREM, "int_rem")
218 MINI_OP(OP_IREM_UN, "int_rem_un")
219 MINI_OP(OP_IAND, "int_and")
220 MINI_OP(OP_IOR, "int_or")
221 MINI_OP(OP_IXOR, "int_xor")
222 MINI_OP(OP_ISHL, "int_shl")
223 MINI_OP(OP_ISHR, "int_shr")
224 MINI_OP(OP_ISHR_UN, "int_shr_un")
225 MINI_OP(OP_IADC, "int_adc")
226 MINI_OP(OP_IADC_IMM, "int_adc_imm")
227 MINI_OP(OP_ISBB, "int_sbb")
228 MINI_OP(OP_ISBB_IMM, "int_sbb_imm")
229 MINI_OP(OP_IADDCC, "int_addcc")
230 MINI_OP(OP_ISUBCC, "int_subcc")
232 MINI_OP(OP_IADD_IMM, "int_add_imm")
233 MINI_OP(OP_ISUB_IMM, "int_sub_imm")
234 MINI_OP(OP_IMUL_IMM, "int_mul_imm")
235 MINI_OP(OP_IDIV_IMM, "int_div_imm")
236 MINI_OP(OP_IDIV_UN_IMM, "int_div_un_imm")
237 MINI_OP(OP_IREM_IMM, "int_rem_imm")
238 MINI_OP(OP_IREM_UN_IMM, "int_rem_un_imm")
239 MINI_OP(OP_IAND_IMM, "int_and_imm")
240 MINI_OP(OP_IOR_IMM, "int_or_imm")
241 MINI_OP(OP_IXOR_IMM, "int_xor_imm")
242 MINI_OP(OP_ISHL_IMM, "int_shl_imm")
243 MINI_OP(OP_ISHR_IMM, "int_shr_imm")
244 MINI_OP(OP_ISHR_UN_IMM, "int_shr_un_imm")
246 MINI_OP(OP_INEG, "int_neg")
247 MINI_OP(OP_INOT, "int_not")
249 MINI_OP(OP_ICEQ, "int_ceq")
250 MINI_OP(OP_ICGT, "int_cgt")
251 MINI_OP(OP_ICGT_UN,"int_cgt_un")
252 MINI_OP(OP_ICLT, "int_clt")
253 MINI_OP(OP_ICLT_UN,"int_clt_un")
255 MINI_OP(OP_IBEQ, "int_beq")
256 MINI_OP(OP_IBNE_UN, "int_bne_un")
257 MINI_OP(OP_IBLT, "int_blt")
258 MINI_OP(OP_IBLT_UN, "int_blt_un")
259 MINI_OP(OP_IBGT, "int_bgt")
260 MINI_OP(OP_IBGT_UN, "int_bgt_un")
261 MINI_OP(OP_IBGE, "int_bge")
262 MINI_OP(OP_IBGE_UN, "int_bge_un")
263 MINI_OP(OP_IBLE, "int_ble")
264 MINI_OP(OP_IBLE_UN, "int_ble_un")
266 MINI_OP(OP_COND_EXC_IOV, "cond_exc_iov")
267 MINI_OP(OP_COND_EXC_IC, "cond_exc_ic")
269 MINI_OP(OP_FBEQ, "float_beq")
270 MINI_OP(OP_FBNE_UN,"float_bne_un")
271 MINI_OP(OP_FBLT, "float_blt")
272 MINI_OP(OP_FBLT_UN,"float_blt_un")
273 MINI_OP(OP_FBGT, "float_bgt")
274 MINI_OP(OP_FBGT_UN,"float_btg_un")
275 MINI_OP(OP_FBGE, "float_bge")
276 MINI_OP(OP_FBGE_UN,"float_bge_un")
277 MINI_OP(OP_FBLE, "float_ble")
278 MINI_OP(OP_FBLE_UN,"float_ble_un")
280 MINI_OP(OP_LONG_SHRUN_32, "long_shr_un_32")
282 /* float opcodes: must be in the same order as the matching CEE_ opcodes: binops_op_map */
283 MINI_OP(OP_FADD, "float_add")
284 MINI_OP(OP_FSUB, "float_sub")
285 MINI_OP(OP_FMUL, "float_mul")
286 MINI_OP(OP_FDIV, "float_div")
287 MINI_OP(OP_FDIV_UN,"float_div_un")
288 MINI_OP(OP_FREM, "float_rem")
289 MINI_OP(OP_FREM_UN,"float_rem_un")
291 /* float opcodes: must be in the same order as the matching CEE_ opcodes: unops_op_map */
292 MINI_OP(OP_FNEG, "float_neg")
293 MINI_OP(OP_FNOT, "float_not")
294 MINI_OP(OP_FCONV_TO_I1,"float_conv_to_i1")
295 MINI_OP(OP_FCONV_TO_I2,"float_conv_to_i2")
296 MINI_OP(OP_FCONV_TO_I4,"float_conv_to_i4")
297 MINI_OP(OP_FCONV_TO_I8,"float_conv_to_i8")
298 MINI_OP(OP_FCONV_TO_R4,"float_conv_to_r4")
299 MINI_OP(OP_FCONV_TO_R8,"float_conv_to_r8")
300 MINI_OP(OP_FCONV_TO_U4,"float_conv_to_u4")
301 MINI_OP(OP_FCONV_TO_U8,"float_conv_to_u8")
303 MINI_OP(OP_FCONV_TO_U2, "float_conv_to_u2")
304 MINI_OP(OP_FCONV_TO_U1, "float_conv_to_u1")
305 MINI_OP(OP_FCONV_TO_I, "float_conv_to_i")
306 MINI_OP(OP_FCONV_TO_OVF_I,"float_conv_to_ovf_i")
307 MINI_OP(OP_FCONV_TO_OVF_U,"float_conv_to_ovd_u")
308 MINI_OP(OP_FADD_OVF, "float_add_ovf")
309 MINI_OP(OP_FADD_OVF_UN, "float_add_ovf_un")
310 MINI_OP(OP_FMUL_OVF, "float_mul_ovf")
311 MINI_OP(OP_FMUL_OVF_UN, "float_mul_ovf_un")
312 MINI_OP(OP_FSUB_OVF, "float_sub_ovf")
313 MINI_OP(OP_FSUB_OVF_UN, "float_sub_ovf_un")
315 MINI_OP(OP_FCONV_TO_OVF_I1_UN,"float_conv_to_ovf_i1_un")
316 MINI_OP(OP_FCONV_TO_OVF_I2_UN,"float_conv_to_ovf_i2_un")
317 MINI_OP(OP_FCONV_TO_OVF_I4_UN,"float_conv_to_ovf_i4_un")
318 MINI_OP(OP_FCONV_TO_OVF_I8_UN,"float_conv_to_ovf_i8_un")
319 MINI_OP(OP_FCONV_TO_OVF_U1_UN,"float_conv_to_ovf_u1_un")
320 MINI_OP(OP_FCONV_TO_OVF_U2_UN,"float_conv_to_ovf_u2_un")
321 MINI_OP(OP_FCONV_TO_OVF_U4_UN,"float_conv_to_ovf_u4_un")
322 MINI_OP(OP_FCONV_TO_OVF_U8_UN,"float_conv_to_ovf_u8_un")
323 MINI_OP(OP_FCONV_TO_OVF_I_UN, "float_conv_to_ovf_i_un")
324 MINI_OP(OP_FCONV_TO_OVF_U_UN, "float_conv_to_ovf_u_un")
326 MINI_OP(OP_FCONV_TO_OVF_I1,"float_conv_to_ovf_i1")
327 MINI_OP(OP_FCONV_TO_OVF_U1,"float_conv_to_ovf_u1")
328 MINI_OP(OP_FCONV_TO_OVF_I2,"float_conv_to_ovf_i2")
329 MINI_OP(OP_FCONV_TO_OVF_U2,"float_conv_to_ovf_u2")
330 MINI_OP(OP_FCONV_TO_OVF_I4,"float_conv_to_ovf_i4")
331 MINI_OP(OP_FCONV_TO_OVF_U4,"float_conv_to_ovf_u4")
332 MINI_OP(OP_FCONV_TO_OVF_I8,"float_conv_to_ovf_i8")
333 MINI_OP(OP_FCONV_TO_OVF_U8,"float_conv_to_ovf_u8")
335 MINI_OP(OP_FCEQ, "float_ceq")
336 MINI_OP(OP_FCGT, "float_cgt")
337 MINI_OP(OP_FCGT_UN,"float_cgt_un")
338 MINI_OP(OP_FCLT, "float_clt")
339 MINI_OP(OP_FCLT_UN,"float_clt_un")
341 MINI_OP(OP_FCONV_TO_U, "float_conv_to_u")
343 MINI_OP(OP_GROUP, "group")
345 /* aot compiler */
346 MINI_OP(OP_AOTCONST, "aot_const")
347 MINI_OP(OP_PATCH_INFO, "patch_info")
348 MINI_OP(OP_GOT_ENTRY, "got_entry")
350 /* used to impl unbox */
351 MINI_OP(OP_UNBOXCAST , "unboxcast")
353 /* exception related opcodes */
354 MINI_OP(OP_CALL_HANDLER , "call_handler")
355 MINI_OP(OP_START_HANDLER , "start_handler")
356 MINI_OP(OP_ENDFILTER, "op_endfilter")
358 /* inline (long)int * (long)int */
359 MINI_OP(OP_BIGMUL, "op_bigmul")
360 MINI_OP(OP_BIGMUL_UN, "op_bigmul_un")
362 /* opcodes most architecture have */
363 MINI_OP(OP_ADC, "adc")
364 MINI_OP(OP_ADC_IMM, "adc_imm")
365 MINI_OP(OP_SBB, "sbb")
366 MINI_OP(OP_SBB_IMM, "sbb_imm")
367 MINI_OP(OP_ADDCC, "addcc")
368 MINI_OP(OP_ADDCC_IMM, "addcc_imm")
369 MINI_OP(OP_SUBCC, "subcc")
370 MINI_OP(OP_SUBCC_IMM, "subcc_imm")
371 MINI_OP(OP_BR_REG, "br_reg")
372 MINI_OP(OP_SEXT_I1, "sext_i1")
373 MINI_OP(OP_SEXT_I2, "sext_i2")
374 MINI_OP(OP_CNE, "cne")
375 /* to implement the upper half of long32 add and sub */
376 MINI_OP(OP_ADD_OVF_CARRY, "add_ovf_carry")
377 MINI_OP(OP_SUB_OVF_CARRY, "sub_ovf_carry")
378 MINI_OP(OP_ADD_OVF_UN_CARRY, "add_ovf_un_carry")
379 MINI_OP(OP_SUB_OVF_UN_CARRY, "sub_ovf_un_carry")
381 /* FP functions usually done by the CPU */
382 MINI_OP(OP_SIN, "sin")
383 MINI_OP(OP_COS, "cos")
384 MINI_OP(OP_ABS, "abs")
385 MINI_OP(OP_TAN, "tan")
386 MINI_OP(OP_ATAN, "atan")
387 MINI_OP(OP_SQRT, "sqrt")
388 /* to optimize strings */
389 MINI_OP(OP_GETCHR, "getchar")
390 MINI_OP(OP_STRLEN, "strlen")
391 MINI_OP(OP_GETTYPE, "gettype")
392 MINI_OP(OP_GETHASHCODE, "gethashcode")
393 /* get adrress of element in a 2D array */
394 MINI_OP(OP_LDELEMA2D, "getldelema2")
395 /* inlined small memcpy with constant length */
396 MINI_OP(OP_MEMCPY, "memcpy")
397 /* inlined small memset with constant length */
398 MINI_OP(OP_MEMSET, "memset")
399 /* type check that support custom remoting types */
400 MINI_OP(OP_CISINST, "cisinst")
401 MINI_OP(OP_CCASTCLASS, "ccastclass")
402 MINI_OP(OP_SAVE_LMF, "save_lmf")
403 MINI_OP(OP_RESTORE_LMF, "restore_lmf")
405 /* arch-dep tls access */
406 MINI_OP(OP_TLS_GET, "tls_get")
408 MINI_OP(OP_LOAD_GOTADDR, "load_gotaddr")
409 MINI_OP(OP_DUMMY_USE, "dummy_use")
412 /* Atomic specific
414 Note, OP_ATOMIC_ADD_IMM_NEW_I4 and
415 OP_ATOMIC_ADD_NEW_I4 returns the new
416 value compared to OP_ATOMIC_ADD_I4 that
417 returns the old value.
419 OP_ATOMIC_ADD_NEW_I4 is used by
420 Interlocked::Increment and Interlocked:Decrement
421 and atomic_add_i4 by Interlocked::Add
423 MINI_OP(OP_ATOMIC_ADD_I4, "atomic_add_i4")
424 MINI_OP(OP_ATOMIC_ADD_NEW_I4, "atomic_add_new_i4")
425 MINI_OP(OP_ATOMIC_ADD_IMM_I4, "atomic_add_imm_i4")
426 MINI_OP(OP_ATOMIC_ADD_IMM_NEW_I4, "atomic_add_imm_new_i4")
427 MINI_OP(OP_ATOMIC_EXCHANGE_I4, "atomic_exchange_i4")
429 /* x86 specific */
430 MINI_OP(OP_X86_TEST_NULL, "x86_test_null")
431 MINI_OP(OP_X86_COMPARE_MEMBASE_REG,"x86_compare_membase_reg")
432 MINI_OP(OP_X86_COMPARE_MEMBASE_IMM,"x86_compare_membase_imm")
433 MINI_OP(OP_X86_COMPARE_MEMBASE8_IMM,"x86_compare_membase8_imm")
434 MINI_OP(OP_X86_COMPARE_REG_MEMBASE,"x86_compare_reg_membase")
435 MINI_OP(OP_X86_INC_REG, "x86_inc_reg")
436 MINI_OP(OP_X86_INC_MEMBASE, "x86_inc_membase")
437 MINI_OP(OP_X86_DEC_REG, "x86_dec_reg")
438 MINI_OP(OP_X86_DEC_MEMBASE, "x86_dec_membase")
439 MINI_OP(OP_X86_ADD_MEMBASE_IMM, "x86_add_membase_imm")
440 MINI_OP(OP_X86_SUB_MEMBASE_IMM, "x86_sub_membase_imm")
441 MINI_OP(OP_X86_PUSH_MEMBASE, "x86_push_membase")
442 MINI_OP(OP_X86_PUSH_IMM, "x86_push_imm")
443 MINI_OP(OP_X86_PUSH, "x86_push")
444 MINI_OP(OP_X86_PUSH_FP, "x86_push_fp")
445 MINI_OP(OP_X86_PUSH_OBJ, "x86_push_obj")
446 MINI_OP(OP_X86_PUSH_GOT_ENTRY, "x86_push_got_entry")
447 MINI_OP(OP_X86_LEA, "x86_lea")
448 MINI_OP(OP_X86_LEA_MEMBASE, "x86_lea_membase")
449 MINI_OP(OP_X86_XCHG, "x86_xchg")
450 MINI_OP(OP_X86_FPOP, "x86_fpop")
451 MINI_OP(OP_X86_FP_LOAD_I8, "x86_fp_load_i8")
452 MINI_OP(OP_X86_FP_LOAD_I4, "x86_fp_load_i4")
453 MINI_OP(OP_X86_SETEQ_MEMBASE, "x86_seteq_membase")
454 MINI_OP(OP_X86_SETNE_MEMBASE, "x86_setne_membase")
455 MINI_OP(OP_X86_ADD_MEMBASE, "x86_add_membase")
456 MINI_OP(OP_X86_SUB_MEMBASE, "x86_sub_membase")
457 MINI_OP(OP_X86_MUL_MEMBASE, "x86_mul_membase")
459 MINI_OP(OP_AMD64_TEST_NULL, "amd64_test_null")
460 MINI_OP(OP_AMD64_SET_XMMREG_R4, "amd64_set_xmmreg_r4")
461 MINI_OP(OP_AMD64_SET_XMMREG_R8, "amd64_set_xmmreg_r8")
462 MINI_OP(OP_AMD64_OUTARG_XMMREG_R4, "amd64_outarg_xmmreg_r4")
463 MINI_OP(OP_AMD64_OUTARG_XMMREG_R8, "amd64_outarg_xmmreg_r8")
464 MINI_OP(OP_AMD64_ICOMPARE_MEMBASE_REG, "amd64_icompare_membase_reg")
465 MINI_OP(OP_AMD64_ICOMPARE_MEMBASE_IMM, "amd64_icompare_membase_imm")
466 MINI_OP(OP_AMD64_ICOMPARE_REG_MEMBASE, "amd64_icompare_reg_membase")
467 MINI_OP(OP_AMD64_OUTARG_ALIGN_STACK, "amd64_outarg_align_stack")
469 MINI_OP(OP_PPC_SUBFIC, "ppc_subfic")
470 MINI_OP(OP_PPC_SUBFZE, "ppc_subfze")
472 MINI_OP(OP_SPARC_OUTARG_REGPAIR, "sparc_outarg_regpair")
473 MINI_OP(OP_SPARC_OUTARG_MEM, "sparc_outarg_mem")
474 MINI_OP(OP_SPARC_OUTARG_MEMPAIR, "sparc_outarg_mempair")
475 MINI_OP(OP_SPARC_OUTARG_SPLIT_REG_STACK, "sparc_outarg_split_reg_stack")
476 MINI_OP(OP_SPARC_OUTARG_FLOAT_REG, "sparc_outarg_float_reg")
477 MINI_OP(OP_SPARC_OUTARG_DOUBLE_REG, "sparc_outarg_double_reg")
478 MINI_OP(OP_SPARC_INARG_VT, "sparc_inarg_vt")
479 MINI_OP(OP_SPARC_LOCALLOC_IMM, "sparc_localloc_imm")
480 MINI_OP(OP_SPARC_SETFREG_FLOAT, "sparc_setfreg_float")
481 MINI_OP(OP_SPARC_BRZ, "sparc_brz")
482 MINI_OP(OP_SPARC_BRLEZ, "sparc_brlez")
483 MINI_OP(OP_SPARC_BRLZ, "sparc_brlz")
484 MINI_OP(OP_SPARC_BRNZ, "sparc_brnz")
485 MINI_OP(OP_SPARC_BRGZ, "sparc_brgz")
486 MINI_OP(OP_SPARC_BRGEZ, "sparc_brgez")
487 MINI_OP(OP_SPARC_COND_EXC_EQZ, "sparc_cond_exc_eqz")
488 MINI_OP(OP_SPARC_COND_EXC_GEZ, "sparc_cond_exc_gez")
489 MINI_OP(OP_SPARC_COND_EXC_GTZ, "sparc_cond_exc_gtz")
490 MINI_OP(OP_SPARC_COND_EXC_LEZ, "sparc_cond_exc_lez")
491 MINI_OP(OP_SPARC_COND_EXC_LTZ, "sparc_cond_exc_ltz")
492 MINI_OP(OP_SPARC_COND_EXC_NEZ, "sparc_cond_exc_nez")
495 MINI_OP(OP_S390_LOADARG, "s390_loadarg")
496 MINI_OP(OP_S390_ARGPTR, "s390_argptr")
497 MINI_OP(OP_S390_STKARG, "s390_stkarg")
498 MINI_OP(OP_S390_MOVE, "s390_move")
499 MINI_OP(OP_S390_SETF4RET, "s390_setf4ret")