6a36e36464f7e5ba5e0430e6ba061ecab12ee681
[mono.git] / mono / mini / mini-ops.h
1
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")
66
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")
93
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")
107
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")
119
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")
124
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")
139
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")
151
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")
163
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")
174
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")
183
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")
189
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")
197
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")
208
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")
231
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")
245
246 MINI_OP(OP_INEG,       "int_neg")
247 MINI_OP(OP_INOT,       "int_not")
248
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")
254
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")
265
266 MINI_OP(OP_COND_EXC_IOV, "cond_exc_iov")
267 MINI_OP(OP_COND_EXC_IC, "cond_exc_ic")
268
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")
279
280 MINI_OP(OP_LONG_SHRUN_32, "long_shr_un_32")
281
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")
290
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")
302
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")
314
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")
325
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")
334
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")
340
341 MINI_OP(OP_FCONV_TO_U,  "float_conv_to_u")
342
343 MINI_OP(OP_GROUP, "group")
344
345 /* aot compiler */
346 MINI_OP(OP_AOTCONST, "aot_const")
347
348 /* used to impl unbox */
349 MINI_OP(OP_UNBOXCAST  , "unboxcast")
350
351 /* exception related opcodes */
352 MINI_OP(OP_CALL_HANDLER  , "call_handler")
353 MINI_OP(OP_START_HANDLER  , "start_handler")
354 MINI_OP(OP_ENDFILTER,  "op_endfilter")
355
356 /* inline (long)int * (long)int */
357 MINI_OP(OP_BIGMUL, "op_bigmul")
358 MINI_OP(OP_BIGMUL_UN, "op_bigmul_un")
359
360 /* opcodes most architecture have */
361 MINI_OP(OP_ADC,     "adc")
362 MINI_OP(OP_ADC_IMM, "adc_imm")
363 MINI_OP(OP_SBB,     "sbb")
364 MINI_OP(OP_SBB_IMM, "sbb_imm")
365 MINI_OP(OP_ADDCC,   "addcc")
366 MINI_OP(OP_ADDCC_IMM,   "addcc_imm")
367 MINI_OP(OP_SUBCC,   "subcc")
368 MINI_OP(OP_SUBCC_IMM,   "subcc_imm")
369 MINI_OP(OP_BR_REG,  "br_reg")
370 MINI_OP(OP_SEXT_I1,  "sext_i1")
371 MINI_OP(OP_SEXT_I2,  "sext_i2")
372 MINI_OP(OP_CNE,      "cne")
373 /* to implement the upper half of long32 add and sub */
374 MINI_OP(OP_ADD_OVF_CARRY,   "add_ovf_carry")
375 MINI_OP(OP_SUB_OVF_CARRY,   "sub_ovf_carry")
376 MINI_OP(OP_ADD_OVF_UN_CARRY,   "add_ovf_un_carry")
377 MINI_OP(OP_SUB_OVF_UN_CARRY,   "sub_ovf_un_carry")
378
379 /* FP functions usually done by the CPU */
380 MINI_OP(OP_SIN,     "sin")
381 MINI_OP(OP_COS,     "cos")
382 MINI_OP(OP_ABS,     "abs")
383 MINI_OP(OP_TAN,     "tan")
384 MINI_OP(OP_ATAN,    "atan")
385 MINI_OP(OP_SQRT,    "sqrt")
386 /* to optimize strings */
387 MINI_OP(OP_GETCHR, "getchar")
388 MINI_OP(OP_STRLEN, "strlen")
389 MINI_OP(OP_GETTYPE, "gettype")
390 /* get adrress of element in a 2D array */
391 MINI_OP(OP_LDELEMA2D, "getldelema2")
392 /* inlined small memcpy with constant length */
393 MINI_OP(OP_MEMCPY, "memcpy")
394 /* inlined small memset with constant length */
395 MINI_OP(OP_MEMSET, "memset")
396 /* type check that support custom remoting types */
397 MINI_OP(OP_CISINST, "cisinst")
398 MINI_OP(OP_CCASTCLASS, "ccastclass")
399 MINI_OP(OP_SAVE_LMF, "save_lmf")
400 MINI_OP(OP_RESTORE_LMF, "restore_lmf")
401
402 /* atomic specific */
403 MINI_OP(OP_ATOMIC_ADD_I4, "atomic_add_i4")
404 MINI_OP(OP_ATOMIC_ADD_IMM_I4, "atomic_add_imm_i4")
405 /* Note, OP_ATOMIC_ADD_IMM_PREV_I4 is used by Interlocked::Add and 
406         returns the value before add compared to OP_ATOMIC_ADD_IMM_I4
407         that returns the value after inc/dec */
408 MINI_OP(OP_ATOMIC_ADD_IMM_PREV_I4, "atomic_add_imm_prev_i4")
409 MINI_OP(OP_ATOMIC_EXCHANGE_I4, "atomic_exchange_i4")
410
411 /* x86 specific */
412 MINI_OP(OP_X86_TEST_NULL,          "x86_test_null")
413 MINI_OP(OP_X86_COMPARE_MEMBASE_REG,"x86_compare_membase_reg")
414 MINI_OP(OP_X86_COMPARE_MEMBASE_IMM,"x86_compare_membase_imm")
415 MINI_OP(OP_X86_COMPARE_MEMBASE8_IMM,"x86_compare_membase8_imm")
416 MINI_OP(OP_X86_COMPARE_REG_MEMBASE,"x86_compare_reg_membase")
417 MINI_OP(OP_X86_INC_REG,            "x86_inc_reg")
418 MINI_OP(OP_X86_INC_MEMBASE,        "x86_inc_membase")
419 MINI_OP(OP_X86_DEC_REG,            "x86_dec_reg")
420 MINI_OP(OP_X86_DEC_MEMBASE,        "x86_dec_membase")
421 MINI_OP(OP_X86_ADD_MEMBASE_IMM,    "x86_add_membase_imm")
422 MINI_OP(OP_X86_SUB_MEMBASE_IMM,    "x86_sub_membase_imm")
423 MINI_OP(OP_X86_PUSH_MEMBASE,       "x86_push_membase")
424 MINI_OP(OP_X86_PUSH_IMM,           "x86_push_imm")
425 MINI_OP(OP_X86_PUSH,               "x86_push")
426 MINI_OP(OP_X86_PUSH_FP,            "x86_push_fp")
427 MINI_OP(OP_X86_PUSH_OBJ,           "x86_push_obj")
428 MINI_OP(OP_X86_LEA,                "x86_lea")
429 MINI_OP(OP_X86_LEA_MEMBASE,        "x86_lea_membase")
430 MINI_OP(OP_X86_XCHG,               "x86_xchg")
431 MINI_OP(OP_X86_FPOP,               "x86_fpop")
432 MINI_OP(OP_X86_FP_LOAD_I8,         "x86_fp_load_i8")
433 MINI_OP(OP_X86_FP_LOAD_I4,         "x86_fp_load_i4")
434 MINI_OP(OP_X86_SETEQ_MEMBASE,      "x86_seteq_membase")
435 MINI_OP(OP_X86_SETNE_MEMBASE,      "x86_setne_membase")
436 MINI_OP(OP_X86_ADD_MEMBASE,        "x86_add_membase")
437 MINI_OP(OP_X86_SUB_MEMBASE,        "x86_sub_membase")
438 MINI_OP(OP_X86_MUL_MEMBASE,        "x86_mul_membase")
439 MINI_OP(OP_X86_TLS_GET,            "x86_tls_get")
440
441 MINI_OP(OP_AMD64_TEST_NULL,              "amd64_test_null")
442 MINI_OP(OP_AMD64_SET_XMMREG_R4,          "amd64_set_xmmreg_r4")
443 MINI_OP(OP_AMD64_SET_XMMREG_R8,          "amd64_set_xmmreg_r8")
444 MINI_OP(OP_AMD64_OUTARG_XMMREG_R4,       "amd64_outarg_xmmreg_r4")
445 MINI_OP(OP_AMD64_OUTARG_XMMREG_R8,       "amd64_outarg_xmmreg_r8")
446 MINI_OP(OP_AMD64_ICOMPARE_MEMBASE_REG,   "amd64_icompare_membase_reg")
447 MINI_OP(OP_AMD64_ICOMPARE_MEMBASE_IMM,   "amd64_icompare_membase_imm")
448 MINI_OP(OP_AMD64_ICOMPARE_REG_MEMBASE,   "amd64_icompare_reg_membase")
449 MINI_OP(OP_AMD64_OUTARG_ALIGN_STACK,     "amd64_outarg_align_stack")
450         
451 MINI_OP(OP_PPC_SUBFIC,             "ppc_subfic")
452 MINI_OP(OP_PPC_SUBFZE,             "ppc_subfze")
453
454 MINI_OP(OP_SPARC_OUTARG_REGPAIR,   "sparc_outarg_regpair")
455 MINI_OP(OP_SPARC_OUTARG_MEM,       "sparc_outarg_mem")
456 MINI_OP(OP_SPARC_OUTARG_MEMPAIR,   "sparc_outarg_mempair")
457 MINI_OP(OP_SPARC_OUTARG_SPLIT_REG_STACK, "sparc_outarg_split_reg_stack")
458 MINI_OP(OP_SPARC_OUTARG_FLOAT_REG, "sparc_outarg_float_reg")
459 MINI_OP(OP_SPARC_OUTARG_DOUBLE_REG, "sparc_outarg_double_reg")
460 MINI_OP(OP_SPARC_INARG_VT,         "sparc_inarg_vt")
461 MINI_OP(OP_SPARC_LOCALLOC_IMM,     "sparc_localloc_imm")
462 MINI_OP(OP_SPARC_SETFREG_FLOAT,   "sparc_setfreg_float")
463 MINI_OP(OP_SPARC_BRZ,              "sparc_brz")
464 MINI_OP(OP_SPARC_BRLEZ,            "sparc_brlez")
465 MINI_OP(OP_SPARC_BRLZ,             "sparc_brlz")
466 MINI_OP(OP_SPARC_BRNZ,             "sparc_brnz")
467 MINI_OP(OP_SPARC_BRGZ,             "sparc_brgz")
468 MINI_OP(OP_SPARC_BRGEZ,            "sparc_brgez")
469 MINI_OP(OP_SPARC_COND_EXC_EQZ,     "sparc_cond_exc_eqz")
470 MINI_OP(OP_SPARC_COND_EXC_GEZ,     "sparc_cond_exc_gez")
471 MINI_OP(OP_SPARC_COND_EXC_GTZ,     "sparc_cond_exc_gtz")
472 MINI_OP(OP_SPARC_COND_EXC_LEZ,     "sparc_cond_exc_lez")
473 MINI_OP(OP_SPARC_COND_EXC_LTZ,     "sparc_cond_exc_ltz")
474 MINI_OP(OP_SPARC_COND_EXC_NEZ,     "sparc_cond_exc_nez")
475
476
477 MINI_OP(OP_S390_LOADARG,           "s390_loadarg")
478 MINI_OP(OP_S390_ARGPTR,            "s390_argptr")
479 MINI_OP(OP_S390_STKARG,            "s390_stkarg")
480 MINI_OP(OP_S390_MOVE,              "s390_move")
481 MINI_OP(OP_S390_SETF4RET,          "s390_setf4ret")
482 MINI_OP(OP_S390_TLS_GET,           "s390_tls_get")