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