2008-08-18 Zoltan Varga <vargaz@gmail.com>
[mono.git] / mono / mini / simple-mini-ops.h
1
2 #if 0
3
4 MINI_OP(OP_OBJADDR,     "objaddr")
5 MINI_OP(OP_VTADDR,      "vtaddr")
6 MINI_OP(OP_RENAME,      "rename")
7
8 MINI_OP(OP_GROUP, "group")
9
10 MINI_OP(OP_CISINST, "cisinst")
11 MINI_OP(OP_CCASTCLASS, "ccastclass")
12
13 MINI_OP(OP_GETCHR, "getchar")
14 MINI_OP(OP_STRLEN, "strlen")
15
16 #endif
17
18 #if (ANALYZE_DEV_USE_SPECIFIC_OPS)
19 MINI_OP(OP_LOCAL, "local")
20 MINI_OP(OP_ARG, "arg")
21 #endif
22
23
24 MINI_OP(OP_LOAD_MEMBASE,"load_membase")
25 MINI_OP(OP_LOADI1_MEMBASE,"loadi1_membase")
26 MINI_OP(OP_LOADU1_MEMBASE,"loadu1_membase")
27 MINI_OP(OP_LOADI2_MEMBASE,"loadi2_membase")
28 MINI_OP(OP_LOADU2_MEMBASE,"loadu2_membase")
29 MINI_OP(OP_LOADI4_MEMBASE,"loadi4_membase")
30 MINI_OP(OP_LOADU4_MEMBASE,"loadu4_membase")
31 MINI_OP(OP_LOADI8_MEMBASE,"loadi8_membase")
32 MINI_OP(OP_LOADR4_MEMBASE,"loadr4_membase")
33 MINI_OP(OP_LOADR8_MEMBASE,"loadr8_membase")
34 MINI_OP(OP_LOADR8_SPILL_MEMBASE,"loadr8_spill_membase")
35 MINI_OP(OP_LOADU4_MEM,"loadu4_mem")
36
37 #if (TREEMOVE_SPECIFIC_OPS)
38 MINI_OP(OP_LDELEMA2D, "getldelema2")
39 #endif
40
41 MINI_OP(OP_GETTYPE, "gettype")
42 MINI_OP(OP_GETHASHCODE, "gethashcode")
43
44
45
46 MINI_OP(OP_ADD_IMM,    "add_imm")
47 MINI_OP(OP_SUB_IMM,    "sub_imm")
48 MINI_OP(OP_MUL_IMM,    "mul_imm")
49 MINI_OP(OP_DIV_IMM,    "div_imm")
50 MINI_OP(OP_DIV_UN_IMM, "div_un_imm")
51 MINI_OP(OP_REM_IMM,    "rem_imm")
52 MINI_OP(OP_REM_UN_IMM, "rem_un_imm")
53 MINI_OP(OP_AND_IMM,    "and_imm")
54 MINI_OP(OP_OR_IMM,     "or_imm")
55 MINI_OP(OP_XOR_IMM,    "xor_imm")
56 MINI_OP(OP_SHL_IMM,    "shl_imm")
57 MINI_OP(OP_SHR_IMM,    "shr_imm")
58 MINI_OP(OP_SHR_UN_IMM, "shr_un_imm")
59
60 MINI_OP(OP_LADD,    "long_add")
61 MINI_OP(OP_LSUB,    "long_sub")
62 MINI_OP(OP_LMUL,    "long_mul")
63 MINI_OP(OP_LDIV,    "long_div")
64 MINI_OP(OP_LDIV_UN, "long_div_un")
65 MINI_OP(OP_LREM,    "long_rem")
66 MINI_OP(OP_LREM_UN, "long_rem_un")
67 MINI_OP(OP_LAND,    "long_and")
68 MINI_OP(OP_LOR,     "long_or")
69 MINI_OP(OP_LXOR,    "long_xor")
70 MINI_OP(OP_LSHL,    "long_shl")
71 MINI_OP(OP_LSHR,    "long_shr")
72 MINI_OP(OP_LSHR_UN, "long_shr_un")
73
74 MINI_OP(OP_LNEG,       "long_neg")
75 MINI_OP(OP_LNOT,       "long_not")
76 MINI_OP(OP_LCONV_TO_I1,"long_conv_to_i1")
77 MINI_OP(OP_LCONV_TO_I2,"long_conv_to_i2")
78 MINI_OP(OP_LCONV_TO_I4,"long_conv_to_i4")
79 MINI_OP(OP_LCONV_TO_I8,"long_conv_to_i8")
80 MINI_OP(OP_LCONV_TO_R4,"long_conv_to_r4")
81 MINI_OP(OP_LCONV_TO_R8,"long_conv_to_r8")
82 MINI_OP(OP_LCONV_TO_U4,"long_conv_to_u4")
83 MINI_OP(OP_LCONV_TO_U8,"long_conv_to_u8")
84
85 MINI_OP(OP_LCONV_TO_U2,   "long_conv_to_u2")
86 MINI_OP(OP_LCONV_TO_U1,   "long_conv_to_u1")
87 MINI_OP(OP_LCONV_TO_I,    "long_conv_to_i")
88
89 #if 0
90 MINI_OP(OP_LCONV_TO_OVF_I,"long_conv_to_ovf_i")
91 MINI_OP(OP_LCONV_TO_OVF_U,"long_conv_to_ovf_u")
92 MINI_OP(OP_LADD_OVF,      "long_add_ovf")
93 MINI_OP(OP_LADD_OVF_UN,   "long_add_ovf_un")
94 MINI_OP(OP_LMUL_OVF,      "long_mul_ovf")
95 MINI_OP(OP_LMUL_OVF_UN,   "long_mul_ovf_un")
96 MINI_OP(OP_LSUB_OVF,      "long_sub_ovf")
97 MINI_OP(OP_LSUB_OVF_UN,   "long_sub_ovf_un")
98
99 MINI_OP(OP_LCONV_TO_OVF_I1_UN,"long_conv_to_ovf_i1_un")
100 MINI_OP(OP_LCONV_TO_OVF_I2_UN,"long_conv_to_ovf_i2_un")
101 MINI_OP(OP_LCONV_TO_OVF_I4_UN,"long_conv_to_ovf_i4_un")
102 MINI_OP(OP_LCONV_TO_OVF_I8_UN,"long_conv_to_ovf_i8_un")
103 MINI_OP(OP_LCONV_TO_OVF_U1_UN,"long_conv_to_ovf_u1_un")
104 MINI_OP(OP_LCONV_TO_OVF_U2_UN,"long_conv_to_ovf_u2_un")
105 MINI_OP(OP_LCONV_TO_OVF_U4_UN,"long_conv_to_ovf_u4_un")
106 MINI_OP(OP_LCONV_TO_OVF_U8_UN,"long_conv_to_ovf_u8_un")
107 MINI_OP(OP_LCONV_TO_OVF_I_UN, "long_conv_to_ovf_i_un")
108 MINI_OP(OP_LCONV_TO_OVF_U_UN, "long_conv_to_ovf_u_un")
109
110 MINI_OP(OP_LCONV_TO_OVF_I1,"long_conv_to_ovf_i1")
111 MINI_OP(OP_LCONV_TO_OVF_U1,"long_conv_to_ovf_u1")
112 MINI_OP(OP_LCONV_TO_OVF_I2,"long_conv_to_ovf_i2")
113 MINI_OP(OP_LCONV_TO_OVF_U2,"long_conv_to_ovf_u2")
114 MINI_OP(OP_LCONV_TO_OVF_I4,"long_conv_to_ovf_i4")
115 MINI_OP(OP_LCONV_TO_OVF_U4,"long_conv_to_ovf_u4")
116 MINI_OP(OP_LCONV_TO_OVF_I8,"long_conv_to_ovf_i8")
117 MINI_OP(OP_LCONV_TO_OVF_U8,"long_conv_to_ovf_u8")
118 #endif
119
120 MINI_OP(OP_LCONV_TO_R_UN,"long_conv_to_r_un")
121 MINI_OP(OP_LCONV_TO_U,   "long_conv_to_u")
122 MINI_OP(OP_LSHR_IMM,     "long_shr_imm")
123 MINI_OP(OP_LSHR_UN_IMM,  "long_shr_un_imm")
124 MINI_OP(OP_LSHL_IMM,     "long_shl_imm")
125 MINI_OP(OP_LADD_IMM,     "long_add_imm")
126 MINI_OP(OP_LSUB_IMM,     "long_sub_imm")
127
128 #if 0
129 MINI_OP(OP_IMUL_OVF,    "int_mul_ovf")
130 MINI_OP(OP_IMUL_OVF_UN, "int_mul_ovf_un")
131 #endif
132
133 MINI_OP(OP_IADD,    "int_add")
134 MINI_OP(OP_ISUB,    "int_sub")
135 MINI_OP(OP_IMUL,    "int_mul")
136 MINI_OP(OP_IDIV,    "int_div")
137 MINI_OP(OP_IDIV_UN, "int_div_un")
138 MINI_OP(OP_IREM,    "int_rem")
139 MINI_OP(OP_IREM_UN, "int_rem_un")
140 MINI_OP(OP_IAND,    "int_and")
141 MINI_OP(OP_IOR,     "int_or")
142 MINI_OP(OP_IXOR,    "int_xor")
143 MINI_OP(OP_ISHL,    "int_shl")
144 MINI_OP(OP_ISHR,    "int_shr")
145 MINI_OP(OP_ISHR_UN, "int_shr_un")
146 MINI_OP(OP_IADC,     "int_adc")
147 MINI_OP(OP_IADC_IMM, "int_adc_imm")
148 MINI_OP(OP_ISBB,     "int_sbb")
149 MINI_OP(OP_ISBB_IMM, "int_sbb_imm")
150 MINI_OP(OP_IADDCC,   "int_addcc")
151 MINI_OP(OP_ISUBCC,   "int_subcc")
152
153 MINI_OP(OP_IADD_IMM,    "int_add_imm")
154 MINI_OP(OP_ISUB_IMM,    "int_sub_imm")
155 MINI_OP(OP_IMUL_IMM,    "int_mul_imm")
156 MINI_OP(OP_IDIV_IMM,    "int_div_imm")
157 MINI_OP(OP_IDIV_UN_IMM, "int_div_un_imm")
158 MINI_OP(OP_IREM_IMM,    "int_rem_imm")
159 MINI_OP(OP_IREM_UN_IMM, "int_rem_un_imm")
160 MINI_OP(OP_IAND_IMM,    "int_and_imm")
161 MINI_OP(OP_IOR_IMM,     "int_or_imm")
162 MINI_OP(OP_IXOR_IMM,    "int_xor_imm")
163 MINI_OP(OP_ISHL_IMM,    "int_shl_imm")
164 MINI_OP(OP_ISHR_IMM,    "int_shr_imm")
165 MINI_OP(OP_ISHR_UN_IMM, "int_shr_un_imm")
166
167 MINI_OP(OP_INEG,       "int_neg")
168 MINI_OP(OP_INOT,       "int_not")
169
170 MINI_OP(OP_LSHR_UN_32, "long_shr_un_32")
171
172 MINI_OP(OP_FADD,   "float_add")
173 MINI_OP(OP_FSUB,   "float_sub")
174 MINI_OP(OP_FMUL,   "float_mul")
175 MINI_OP(OP_FDIV,   "float_div")
176 MINI_OP(OP_FDIV_UN,"float_div_un")
177 MINI_OP(OP_FREM,   "float_rem")
178 MINI_OP(OP_FREM_UN,"float_rem_un")
179
180 MINI_OP(OP_FNEG,       "float_neg")
181 MINI_OP(OP_FNOT,       "float_not")
182 MINI_OP(OP_FCONV_TO_I1,"float_conv_to_i1")
183 MINI_OP(OP_FCONV_TO_I2,"float_conv_to_i2")
184 MINI_OP(OP_FCONV_TO_I4,"float_conv_to_i4")
185 MINI_OP(OP_FCONV_TO_I8,"float_conv_to_i8")
186 MINI_OP(OP_FCONV_TO_R4,"float_conv_to_r4")
187 MINI_OP(OP_FCONV_TO_R8,"float_conv_to_r8")
188 MINI_OP(OP_FCONV_TO_U4,"float_conv_to_u4")
189 MINI_OP(OP_FCONV_TO_U8,"float_conv_to_u8")
190
191 MINI_OP(OP_FCONV_TO_U2,   "float_conv_to_u2")
192 MINI_OP(OP_FCONV_TO_U1,   "float_conv_to_u1")
193 MINI_OP(OP_FCONV_TO_I,    "float_conv_to_i")
194
195
196 #if 0
197 MINI_OP(OP_FCONV_TO_OVF_I,"float_conv_to_ovf_i")
198 MINI_OP(OP_FCONV_TO_OVF_U,"float_conv_to_ovd_u")
199 MINI_OP(OP_FADD_OVF,      "float_add_ovf")
200 MINI_OP(OP_FADD_OVF_UN,   "float_add_ovf_un")
201 MINI_OP(OP_FMUL_OVF,      "float_mul_ovf")
202 MINI_OP(OP_FMUL_OVF_UN,   "float_mul_ovf_un")
203 MINI_OP(OP_FSUB_OVF,      "float_sub_ovf")
204 MINI_OP(OP_FSUB_OVF_UN,   "float_sub_ovf_un")
205
206 MINI_OP(OP_FCONV_TO_OVF_I1_UN,"float_conv_to_ovf_i1_un")
207 MINI_OP(OP_FCONV_TO_OVF_I2_UN,"float_conv_to_ovf_i2_un")
208 MINI_OP(OP_FCONV_TO_OVF_I4_UN,"float_conv_to_ovf_i4_un")
209 MINI_OP(OP_FCONV_TO_OVF_I8_UN,"float_conv_to_ovf_i8_un")
210 MINI_OP(OP_FCONV_TO_OVF_U1_UN,"float_conv_to_ovf_u1_un")
211 MINI_OP(OP_FCONV_TO_OVF_U2_UN,"float_conv_to_ovf_u2_un")
212 MINI_OP(OP_FCONV_TO_OVF_U4_UN,"float_conv_to_ovf_u4_un")
213 MINI_OP(OP_FCONV_TO_OVF_U8_UN,"float_conv_to_ovf_u8_un")
214 MINI_OP(OP_FCONV_TO_OVF_I_UN, "float_conv_to_ovf_i_un")
215 MINI_OP(OP_FCONV_TO_OVF_U_UN, "float_conv_to_ovf_u_un")
216
217 MINI_OP(OP_FCONV_TO_OVF_I1,"float_conv_to_ovf_i1")
218 MINI_OP(OP_FCONV_TO_OVF_U1,"float_conv_to_ovf_u1")
219 MINI_OP(OP_FCONV_TO_OVF_I2,"float_conv_to_ovf_i2")
220 MINI_OP(OP_FCONV_TO_OVF_U2,"float_conv_to_ovf_u2")
221 MINI_OP(OP_FCONV_TO_OVF_I4,"float_conv_to_ovf_i4")
222 MINI_OP(OP_FCONV_TO_OVF_U4,"float_conv_to_ovf_u4")
223 MINI_OP(OP_FCONV_TO_OVF_I8,"float_conv_to_ovf_i8")
224 MINI_OP(OP_FCONV_TO_OVF_U8,"float_conv_to_ovf_u8")
225 #endif
226
227
228 MINI_OP(OP_FCONV_TO_U,  "float_conv_to_u")
229
230 MINI_OP(OP_BIGMUL, "op_bigmul")
231 MINI_OP(OP_BIGMUL_UN, "op_bigmul_un")
232
233 MINI_OP(OP_ADC,     "adc")
234 MINI_OP(OP_ADC_IMM, "adc_imm")
235 MINI_OP(OP_SBB,     "sbb")
236 MINI_OP(OP_SBB_IMM, "sbb_imm")
237 MINI_OP(OP_ADDCC,   "addcc")
238 MINI_OP(OP_ADDCC_IMM,   "addcc_imm")
239 MINI_OP(OP_SUBCC,   "subcc")
240 MINI_OP(OP_SUBCC_IMM,   "subcc_imm")
241 MINI_OP(OP_BR_REG,  "br_reg")
242 MINI_OP(OP_SEXT_I1,  "sext_i1")
243 MINI_OP(OP_SEXT_I2,  "sext_i2")
244 MINI_OP(OP_CNE,      "cne")
245
246
247 #if 0
248 MINI_OP(OP_ADD_OVF_CARRY,   "add_ovf_carry")
249 MINI_OP(OP_SUB_OVF_CARRY,   "sub_ovf_carry")
250 MINI_OP(OP_ADD_OVF_UN_CARRY,   "add_ovf_un_carry")
251 MINI_OP(OP_SUB_OVF_UN_CARRY,   "sub_ovf_un_carry")
252 #endif
253
254 MINI_OP(OP_SIN,     "sin")
255 MINI_OP(OP_COS,     "cos")
256 MINI_OP(OP_ABS,     "abs")
257 MINI_OP(OP_TAN,     "tan")
258 MINI_OP(OP_ATAN,    "atan")
259 MINI_OP(OP_SQRT,    "sqrt")
260