fbdev: fix pixman compile on old pixman
[qemu/agraf.git] / target-mips / helper.h
blobacf9ebd75950cb3b9f21464fbec3deee2e04e0d8
1 #include "def-helper.h"
3 DEF_HELPER_3(raise_exception_err, noreturn, env, i32, int)
4 DEF_HELPER_2(raise_exception, noreturn, env, i32)
6 #ifdef TARGET_MIPS64
7 DEF_HELPER_4(sdl, void, env, tl, tl, int)
8 DEF_HELPER_4(sdr, void, env, tl, tl, int)
9 #endif
10 DEF_HELPER_4(swl, void, env, tl, tl, int)
11 DEF_HELPER_4(swr, void, env, tl, tl, int)
13 #ifndef CONFIG_USER_ONLY
14 DEF_HELPER_3(ll, tl, env, tl, int)
15 DEF_HELPER_4(sc, tl, env, tl, tl, int)
16 #ifdef TARGET_MIPS64
17 DEF_HELPER_3(lld, tl, env, tl, int)
18 DEF_HELPER_4(scd, tl, env, tl, tl, int)
19 #endif
20 #endif
22 DEF_HELPER_FLAGS_1(clo, TCG_CALL_NO_RWG_SE, tl, tl)
23 DEF_HELPER_FLAGS_1(clz, TCG_CALL_NO_RWG_SE, tl, tl)
24 #ifdef TARGET_MIPS64
25 DEF_HELPER_FLAGS_1(dclo, TCG_CALL_NO_RWG_SE, tl, tl)
26 DEF_HELPER_FLAGS_1(dclz, TCG_CALL_NO_RWG_SE, tl, tl)
27 DEF_HELPER_3(dmult, void, env, tl, tl)
28 DEF_HELPER_3(dmultu, void, env, tl, tl)
29 #endif
31 DEF_HELPER_3(muls, tl, env, tl, tl)
32 DEF_HELPER_3(mulsu, tl, env, tl, tl)
33 DEF_HELPER_3(macc, tl, env, tl, tl)
34 DEF_HELPER_3(maccu, tl, env, tl, tl)
35 DEF_HELPER_3(msac, tl, env, tl, tl)
36 DEF_HELPER_3(msacu, tl, env, tl, tl)
37 DEF_HELPER_3(mulhi, tl, env, tl, tl)
38 DEF_HELPER_3(mulhiu, tl, env, tl, tl)
39 DEF_HELPER_3(mulshi, tl, env, tl, tl)
40 DEF_HELPER_3(mulshiu, tl, env, tl, tl)
41 DEF_HELPER_3(macchi, tl, env, tl, tl)
42 DEF_HELPER_3(macchiu, tl, env, tl, tl)
43 DEF_HELPER_3(msachi, tl, env, tl, tl)
44 DEF_HELPER_3(msachiu, tl, env, tl, tl)
46 #ifndef CONFIG_USER_ONLY
47 /* CP0 helpers */
48 DEF_HELPER_1(mfc0_mvpcontrol, tl, env)
49 DEF_HELPER_1(mfc0_mvpconf0, tl, env)
50 DEF_HELPER_1(mfc0_mvpconf1, tl, env)
51 DEF_HELPER_1(mftc0_vpecontrol, tl, env)
52 DEF_HELPER_1(mftc0_vpeconf0, tl, env)
53 DEF_HELPER_1(mfc0_random, tl, env)
54 DEF_HELPER_1(mfc0_tcstatus, tl, env)
55 DEF_HELPER_1(mftc0_tcstatus, tl, env)
56 DEF_HELPER_1(mfc0_tcbind, tl, env)
57 DEF_HELPER_1(mftc0_tcbind, tl, env)
58 DEF_HELPER_1(mfc0_tcrestart, tl, env)
59 DEF_HELPER_1(mftc0_tcrestart, tl, env)
60 DEF_HELPER_1(mfc0_tchalt, tl, env)
61 DEF_HELPER_1(mftc0_tchalt, tl, env)
62 DEF_HELPER_1(mfc0_tccontext, tl, env)
63 DEF_HELPER_1(mftc0_tccontext, tl, env)
64 DEF_HELPER_1(mfc0_tcschedule, tl, env)
65 DEF_HELPER_1(mftc0_tcschedule, tl, env)
66 DEF_HELPER_1(mfc0_tcschefback, tl, env)
67 DEF_HELPER_1(mftc0_tcschefback, tl, env)
68 DEF_HELPER_1(mfc0_count, tl, env)
69 DEF_HELPER_1(mftc0_entryhi, tl, env)
70 DEF_HELPER_1(mftc0_status, tl, env)
71 DEF_HELPER_1(mftc0_cause, tl, env)
72 DEF_HELPER_1(mftc0_epc, tl, env)
73 DEF_HELPER_1(mftc0_ebase, tl, env)
74 DEF_HELPER_2(mftc0_configx, tl, env, tl)
75 DEF_HELPER_1(mfc0_lladdr, tl, env)
76 DEF_HELPER_2(mfc0_watchlo, tl, env, i32)
77 DEF_HELPER_2(mfc0_watchhi, tl, env, i32)
78 DEF_HELPER_1(mfc0_debug, tl, env)
79 DEF_HELPER_1(mftc0_debug, tl, env)
80 #ifdef TARGET_MIPS64
81 DEF_HELPER_1(dmfc0_tcrestart, tl, env)
82 DEF_HELPER_1(dmfc0_tchalt, tl, env)
83 DEF_HELPER_1(dmfc0_tccontext, tl, env)
84 DEF_HELPER_1(dmfc0_tcschedule, tl, env)
85 DEF_HELPER_1(dmfc0_tcschefback, tl, env)
86 DEF_HELPER_1(dmfc0_lladdr, tl, env)
87 DEF_HELPER_2(dmfc0_watchlo, tl, env, i32)
88 #endif /* TARGET_MIPS64 */
90 DEF_HELPER_2(mtc0_index, void, env, tl)
91 DEF_HELPER_2(mtc0_mvpcontrol, void, env, tl)
92 DEF_HELPER_2(mtc0_vpecontrol, void, env, tl)
93 DEF_HELPER_2(mttc0_vpecontrol, void, env, tl)
94 DEF_HELPER_2(mtc0_vpeconf0, void, env, tl)
95 DEF_HELPER_2(mttc0_vpeconf0, void, env, tl)
96 DEF_HELPER_2(mtc0_vpeconf1, void, env, tl)
97 DEF_HELPER_2(mtc0_yqmask, void, env, tl)
98 DEF_HELPER_2(mtc0_vpeopt, void, env, tl)
99 DEF_HELPER_2(mtc0_entrylo0, void, env, tl)
100 DEF_HELPER_2(mtc0_tcstatus, void, env, tl)
101 DEF_HELPER_2(mttc0_tcstatus, void, env, tl)
102 DEF_HELPER_2(mtc0_tcbind, void, env, tl)
103 DEF_HELPER_2(mttc0_tcbind, void, env, tl)
104 DEF_HELPER_2(mtc0_tcrestart, void, env, tl)
105 DEF_HELPER_2(mttc0_tcrestart, void, env, tl)
106 DEF_HELPER_2(mtc0_tchalt, void, env, tl)
107 DEF_HELPER_2(mttc0_tchalt, void, env, tl)
108 DEF_HELPER_2(mtc0_tccontext, void, env, tl)
109 DEF_HELPER_2(mttc0_tccontext, void, env, tl)
110 DEF_HELPER_2(mtc0_tcschedule, void, env, tl)
111 DEF_HELPER_2(mttc0_tcschedule, void, env, tl)
112 DEF_HELPER_2(mtc0_tcschefback, void, env, tl)
113 DEF_HELPER_2(mttc0_tcschefback, void, env, tl)
114 DEF_HELPER_2(mtc0_entrylo1, void, env, tl)
115 DEF_HELPER_2(mtc0_context, void, env, tl)
116 DEF_HELPER_2(mtc0_pagemask, void, env, tl)
117 DEF_HELPER_2(mtc0_pagegrain, void, env, tl)
118 DEF_HELPER_2(mtc0_wired, void, env, tl)
119 DEF_HELPER_2(mtc0_srsconf0, void, env, tl)
120 DEF_HELPER_2(mtc0_srsconf1, void, env, tl)
121 DEF_HELPER_2(mtc0_srsconf2, void, env, tl)
122 DEF_HELPER_2(mtc0_srsconf3, void, env, tl)
123 DEF_HELPER_2(mtc0_srsconf4, void, env, tl)
124 DEF_HELPER_2(mtc0_hwrena, void, env, tl)
125 DEF_HELPER_2(mtc0_count, void, env, tl)
126 DEF_HELPER_2(mtc0_entryhi, void, env, tl)
127 DEF_HELPER_2(mttc0_entryhi, void, env, tl)
128 DEF_HELPER_2(mtc0_compare, void, env, tl)
129 DEF_HELPER_2(mtc0_status, void, env, tl)
130 DEF_HELPER_2(mttc0_status, void, env, tl)
131 DEF_HELPER_2(mtc0_intctl, void, env, tl)
132 DEF_HELPER_2(mtc0_srsctl, void, env, tl)
133 DEF_HELPER_2(mtc0_cause, void, env, tl)
134 DEF_HELPER_2(mttc0_cause, void, env, tl)
135 DEF_HELPER_2(mtc0_ebase, void, env, tl)
136 DEF_HELPER_2(mttc0_ebase, void, env, tl)
137 DEF_HELPER_2(mtc0_config0, void, env, tl)
138 DEF_HELPER_2(mtc0_config2, void, env, tl)
139 DEF_HELPER_2(mtc0_lladdr, void, env, tl)
140 DEF_HELPER_3(mtc0_watchlo, void, env, tl, i32)
141 DEF_HELPER_3(mtc0_watchhi, void, env, tl, i32)
142 DEF_HELPER_2(mtc0_xcontext, void, env, tl)
143 DEF_HELPER_2(mtc0_framemask, void, env, tl)
144 DEF_HELPER_2(mtc0_debug, void, env, tl)
145 DEF_HELPER_2(mttc0_debug, void, env, tl)
146 DEF_HELPER_2(mtc0_performance0, void, env, tl)
147 DEF_HELPER_2(mtc0_taglo, void, env, tl)
148 DEF_HELPER_2(mtc0_datalo, void, env, tl)
149 DEF_HELPER_2(mtc0_taghi, void, env, tl)
150 DEF_HELPER_2(mtc0_datahi, void, env, tl)
152 /* MIPS MT functions */
153 DEF_HELPER_2(mftgpr, tl, env, i32);
154 DEF_HELPER_2(mftlo, tl, env, i32)
155 DEF_HELPER_2(mfthi, tl, env, i32)
156 DEF_HELPER_2(mftacx, tl, env, i32)
157 DEF_HELPER_1(mftdsp, tl, env)
158 DEF_HELPER_3(mttgpr, void, env, tl, i32)
159 DEF_HELPER_3(mttlo, void, env, tl, i32)
160 DEF_HELPER_3(mtthi, void, env, tl, i32)
161 DEF_HELPER_3(mttacx, void, env, tl, i32)
162 DEF_HELPER_2(mttdsp, void, env, tl)
163 DEF_HELPER_0(dmt, tl)
164 DEF_HELPER_0(emt, tl)
165 DEF_HELPER_1(dvpe, tl, env)
166 DEF_HELPER_1(evpe, tl, env)
167 #endif /* !CONFIG_USER_ONLY */
169 /* microMIPS functions */
170 DEF_HELPER_4(lwm, void, env, tl, tl, i32);
171 DEF_HELPER_4(swm, void, env, tl, tl, i32);
172 #ifdef TARGET_MIPS64
173 DEF_HELPER_4(ldm, void, env, tl, tl, i32);
174 DEF_HELPER_4(sdm, void, env, tl, tl, i32);
175 #endif
177 DEF_HELPER_2(fork, void, tl, tl)
178 DEF_HELPER_2(yield, tl, env, tl)
180 /* CP1 functions */
181 DEF_HELPER_2(cfc1, tl, env, i32)
182 DEF_HELPER_3(ctc1, void, env, tl, i32)
184 DEF_HELPER_2(float_cvtd_s, i64, env, i32)
185 DEF_HELPER_2(float_cvtd_w, i64, env, i32)
186 DEF_HELPER_2(float_cvtd_l, i64, env, i64)
187 DEF_HELPER_2(float_cvtl_d, i64, env, i64)
188 DEF_HELPER_2(float_cvtl_s, i64, env, i32)
189 DEF_HELPER_2(float_cvtps_pw, i64, env, i64)
190 DEF_HELPER_2(float_cvtpw_ps, i64, env, i64)
191 DEF_HELPER_2(float_cvts_d, i32, env, i64)
192 DEF_HELPER_2(float_cvts_w, i32, env, i32)
193 DEF_HELPER_2(float_cvts_l, i32, env, i64)
194 DEF_HELPER_2(float_cvts_pl, i32, env, i32)
195 DEF_HELPER_2(float_cvts_pu, i32, env, i32)
196 DEF_HELPER_2(float_cvtw_s, i32, env, i32)
197 DEF_HELPER_2(float_cvtw_d, i32, env, i64)
199 DEF_HELPER_3(float_addr_ps, i64, env, i64, i64)
200 DEF_HELPER_3(float_mulr_ps, i64, env, i64, i64)
202 #define FOP_PROTO(op) \
203 DEF_HELPER_2(float_ ## op ## l_s, i64, env, i32) \
204 DEF_HELPER_2(float_ ## op ## l_d, i64, env, i64) \
205 DEF_HELPER_2(float_ ## op ## w_s, i32, env, i32) \
206 DEF_HELPER_2(float_ ## op ## w_d, i32, env, i64)
207 FOP_PROTO(round)
208 FOP_PROTO(trunc)
209 FOP_PROTO(ceil)
210 FOP_PROTO(floor)
211 #undef FOP_PROTO
213 #define FOP_PROTO(op) \
214 DEF_HELPER_2(float_ ## op ## _s, i32, env, i32) \
215 DEF_HELPER_2(float_ ## op ## _d, i64, env, i64)
216 FOP_PROTO(sqrt)
217 FOP_PROTO(rsqrt)
218 FOP_PROTO(recip)
219 #undef FOP_PROTO
221 #define FOP_PROTO(op) \
222 DEF_HELPER_1(float_ ## op ## _s, i32, i32) \
223 DEF_HELPER_1(float_ ## op ## _d, i64, i64) \
224 DEF_HELPER_1(float_ ## op ## _ps, i64, i64)
225 FOP_PROTO(abs)
226 FOP_PROTO(chs)
227 #undef FOP_PROTO
229 #define FOP_PROTO(op) \
230 DEF_HELPER_2(float_ ## op ## _s, i32, env, i32) \
231 DEF_HELPER_2(float_ ## op ## _d, i64, env, i64) \
232 DEF_HELPER_2(float_ ## op ## _ps, i64, env, i64)
233 FOP_PROTO(recip1)
234 FOP_PROTO(rsqrt1)
235 #undef FOP_PROTO
237 #define FOP_PROTO(op) \
238 DEF_HELPER_3(float_ ## op ## _s, i32, env, i32, i32) \
239 DEF_HELPER_3(float_ ## op ## _d, i64, env, i64, i64) \
240 DEF_HELPER_3(float_ ## op ## _ps, i64, env, i64, i64)
241 FOP_PROTO(add)
242 FOP_PROTO(sub)
243 FOP_PROTO(mul)
244 FOP_PROTO(div)
245 FOP_PROTO(recip2)
246 FOP_PROTO(rsqrt2)
247 #undef FOP_PROTO
249 #define FOP_PROTO(op) \
250 DEF_HELPER_4(float_ ## op ## _s, i32, env, i32, i32, i32) \
251 DEF_HELPER_4(float_ ## op ## _d, i64, env, i64, i64, i64) \
252 DEF_HELPER_4(float_ ## op ## _ps, i64, env, i64, i64, i64)
253 FOP_PROTO(madd)
254 FOP_PROTO(msub)
255 FOP_PROTO(nmadd)
256 FOP_PROTO(nmsub)
257 #undef FOP_PROTO
259 #define FOP_PROTO(op) \
260 DEF_HELPER_4(cmp_d_ ## op, void, env, i64, i64, int) \
261 DEF_HELPER_4(cmpabs_d_ ## op, void, env, i64, i64, int) \
262 DEF_HELPER_4(cmp_s_ ## op, void, env, i32, i32, int) \
263 DEF_HELPER_4(cmpabs_s_ ## op, void, env, i32, i32, int) \
264 DEF_HELPER_4(cmp_ps_ ## op, void, env, i64, i64, int) \
265 DEF_HELPER_4(cmpabs_ps_ ## op, void, env, i64, i64, int)
266 FOP_PROTO(f)
267 FOP_PROTO(un)
268 FOP_PROTO(eq)
269 FOP_PROTO(ueq)
270 FOP_PROTO(olt)
271 FOP_PROTO(ult)
272 FOP_PROTO(ole)
273 FOP_PROTO(ule)
274 FOP_PROTO(sf)
275 FOP_PROTO(ngle)
276 FOP_PROTO(seq)
277 FOP_PROTO(ngl)
278 FOP_PROTO(lt)
279 FOP_PROTO(nge)
280 FOP_PROTO(le)
281 FOP_PROTO(ngt)
282 #undef FOP_PROTO
284 /* Special functions */
285 #ifndef CONFIG_USER_ONLY
286 DEF_HELPER_1(tlbwi, void, env)
287 DEF_HELPER_1(tlbwr, void, env)
288 DEF_HELPER_1(tlbp, void, env)
289 DEF_HELPER_1(tlbr, void, env)
290 DEF_HELPER_1(di, tl, env)
291 DEF_HELPER_1(ei, tl, env)
292 DEF_HELPER_1(eret, void, env)
293 DEF_HELPER_1(deret, void, env)
294 #endif /* !CONFIG_USER_ONLY */
295 DEF_HELPER_1(rdhwr_cpunum, tl, env)
296 DEF_HELPER_1(rdhwr_synci_step, tl, env)
297 DEF_HELPER_1(rdhwr_cc, tl, env)
298 DEF_HELPER_1(rdhwr_ccres, tl, env)
299 DEF_HELPER_2(pmon, void, env, int)
300 DEF_HELPER_1(wait, void, env)
302 /* Loongson multimedia functions. */
303 DEF_HELPER_FLAGS_2(paddsh, TCG_CALL_NO_RWG_SE, i64, i64, i64)
304 DEF_HELPER_FLAGS_2(paddush, TCG_CALL_NO_RWG_SE, i64, i64, i64)
305 DEF_HELPER_FLAGS_2(paddh, TCG_CALL_NO_RWG_SE, i64, i64, i64)
306 DEF_HELPER_FLAGS_2(paddw, TCG_CALL_NO_RWG_SE, i64, i64, i64)
307 DEF_HELPER_FLAGS_2(paddsb, TCG_CALL_NO_RWG_SE, i64, i64, i64)
308 DEF_HELPER_FLAGS_2(paddusb, TCG_CALL_NO_RWG_SE, i64, i64, i64)
309 DEF_HELPER_FLAGS_2(paddb, TCG_CALL_NO_RWG_SE, i64, i64, i64)
311 DEF_HELPER_FLAGS_2(psubsh, TCG_CALL_NO_RWG_SE, i64, i64, i64)
312 DEF_HELPER_FLAGS_2(psubush, TCG_CALL_NO_RWG_SE, i64, i64, i64)
313 DEF_HELPER_FLAGS_2(psubh, TCG_CALL_NO_RWG_SE, i64, i64, i64)
314 DEF_HELPER_FLAGS_2(psubw, TCG_CALL_NO_RWG_SE, i64, i64, i64)
315 DEF_HELPER_FLAGS_2(psubsb, TCG_CALL_NO_RWG_SE, i64, i64, i64)
316 DEF_HELPER_FLAGS_2(psubusb, TCG_CALL_NO_RWG_SE, i64, i64, i64)
317 DEF_HELPER_FLAGS_2(psubb, TCG_CALL_NO_RWG_SE, i64, i64, i64)
319 DEF_HELPER_FLAGS_2(pshufh, TCG_CALL_NO_RWG_SE, i64, i64, i64)
320 DEF_HELPER_FLAGS_2(packsswh, TCG_CALL_NO_RWG_SE, i64, i64, i64)
321 DEF_HELPER_FLAGS_2(packsshb, TCG_CALL_NO_RWG_SE, i64, i64, i64)
322 DEF_HELPER_FLAGS_2(packushb, TCG_CALL_NO_RWG_SE, i64, i64, i64)
324 DEF_HELPER_FLAGS_2(punpcklhw, TCG_CALL_NO_RWG_SE, i64, i64, i64)
325 DEF_HELPER_FLAGS_2(punpckhhw, TCG_CALL_NO_RWG_SE, i64, i64, i64)
326 DEF_HELPER_FLAGS_2(punpcklbh, TCG_CALL_NO_RWG_SE, i64, i64, i64)
327 DEF_HELPER_FLAGS_2(punpckhbh, TCG_CALL_NO_RWG_SE, i64, i64, i64)
328 DEF_HELPER_FLAGS_2(punpcklwd, TCG_CALL_NO_RWG_SE, i64, i64, i64)
329 DEF_HELPER_FLAGS_2(punpckhwd, TCG_CALL_NO_RWG_SE, i64, i64, i64)
331 DEF_HELPER_FLAGS_2(pavgh, TCG_CALL_NO_RWG_SE, i64, i64, i64)
332 DEF_HELPER_FLAGS_2(pavgb, TCG_CALL_NO_RWG_SE, i64, i64, i64)
333 DEF_HELPER_FLAGS_2(pmaxsh, TCG_CALL_NO_RWG_SE, i64, i64, i64)
334 DEF_HELPER_FLAGS_2(pminsh, TCG_CALL_NO_RWG_SE, i64, i64, i64)
335 DEF_HELPER_FLAGS_2(pmaxub, TCG_CALL_NO_RWG_SE, i64, i64, i64)
336 DEF_HELPER_FLAGS_2(pminub, TCG_CALL_NO_RWG_SE, i64, i64, i64)
338 DEF_HELPER_FLAGS_2(pcmpeqw, TCG_CALL_NO_RWG_SE, i64, i64, i64)
339 DEF_HELPER_FLAGS_2(pcmpgtw, TCG_CALL_NO_RWG_SE, i64, i64, i64)
340 DEF_HELPER_FLAGS_2(pcmpeqh, TCG_CALL_NO_RWG_SE, i64, i64, i64)
341 DEF_HELPER_FLAGS_2(pcmpgth, TCG_CALL_NO_RWG_SE, i64, i64, i64)
342 DEF_HELPER_FLAGS_2(pcmpeqb, TCG_CALL_NO_RWG_SE, i64, i64, i64)
343 DEF_HELPER_FLAGS_2(pcmpgtb, TCG_CALL_NO_RWG_SE, i64, i64, i64)
345 DEF_HELPER_FLAGS_2(psllw, TCG_CALL_NO_RWG_SE, i64, i64, i64)
346 DEF_HELPER_FLAGS_2(psllh, TCG_CALL_NO_RWG_SE, i64, i64, i64)
347 DEF_HELPER_FLAGS_2(psrlw, TCG_CALL_NO_RWG_SE, i64, i64, i64)
348 DEF_HELPER_FLAGS_2(psrlh, TCG_CALL_NO_RWG_SE, i64, i64, i64)
349 DEF_HELPER_FLAGS_2(psraw, TCG_CALL_NO_RWG_SE, i64, i64, i64)
350 DEF_HELPER_FLAGS_2(psrah, TCG_CALL_NO_RWG_SE, i64, i64, i64)
352 DEF_HELPER_FLAGS_2(pmullh, TCG_CALL_NO_RWG_SE, i64, i64, i64)
353 DEF_HELPER_FLAGS_2(pmulhh, TCG_CALL_NO_RWG_SE, i64, i64, i64)
354 DEF_HELPER_FLAGS_2(pmulhuh, TCG_CALL_NO_RWG_SE, i64, i64, i64)
355 DEF_HELPER_FLAGS_2(pmaddhw, TCG_CALL_NO_RWG_SE, i64, i64, i64)
357 DEF_HELPER_FLAGS_2(pasubub, TCG_CALL_NO_RWG_SE, i64, i64, i64)
358 DEF_HELPER_FLAGS_1(biadd, TCG_CALL_NO_RWG_SE, i64, i64)
359 DEF_HELPER_FLAGS_1(pmovmskb, TCG_CALL_NO_RWG_SE, i64, i64)
361 /*** MIPS DSP ***/
362 /* DSP Arithmetic Sub-class insns */
363 DEF_HELPER_FLAGS_3(addq_ph, 0, tl, tl, tl, env)
364 DEF_HELPER_FLAGS_3(addq_s_ph, 0, tl, tl, tl, env)
365 #if defined(TARGET_MIPS64)
366 DEF_HELPER_FLAGS_3(addq_qh, 0, tl, tl, tl, env)
367 DEF_HELPER_FLAGS_3(addq_s_qh, 0, tl, tl, tl, env)
368 #endif
369 DEF_HELPER_FLAGS_3(addq_s_w, 0, tl, tl, tl, env)
370 #if defined(TARGET_MIPS64)
371 DEF_HELPER_FLAGS_3(addq_pw, 0, tl, tl, tl, env)
372 DEF_HELPER_FLAGS_3(addq_s_pw, 0, tl, tl, tl, env)
373 #endif
374 DEF_HELPER_FLAGS_3(addu_qb, 0, tl, tl, tl, env)
375 DEF_HELPER_FLAGS_3(addu_s_qb, 0, tl, tl, tl, env)
376 DEF_HELPER_FLAGS_2(adduh_qb, TCG_CALL_NO_RWG_SE, tl, tl, tl)
377 DEF_HELPER_FLAGS_2(adduh_r_qb, TCG_CALL_NO_RWG_SE, tl, tl, tl)
378 DEF_HELPER_FLAGS_3(addu_ph, 0, tl, tl, tl, env)
379 DEF_HELPER_FLAGS_3(addu_s_ph, 0, tl, tl, tl, env)
380 DEF_HELPER_FLAGS_2(addqh_ph, TCG_CALL_NO_RWG_SE, tl, tl, tl)
381 DEF_HELPER_FLAGS_2(addqh_r_ph, TCG_CALL_NO_RWG_SE, tl, tl, tl)
382 DEF_HELPER_FLAGS_2(addqh_w, TCG_CALL_NO_RWG_SE, tl, tl, tl)
383 DEF_HELPER_FLAGS_2(addqh_r_w, TCG_CALL_NO_RWG_SE, tl, tl, tl)
384 #if defined(TARGET_MIPS64)
385 DEF_HELPER_FLAGS_3(addu_ob, 0, tl, tl, tl, env)
386 DEF_HELPER_FLAGS_3(addu_s_ob, 0, tl, tl, tl, env)
387 DEF_HELPER_FLAGS_2(adduh_ob, TCG_CALL_NO_RWG_SE, tl, tl, tl)
388 DEF_HELPER_FLAGS_2(adduh_r_ob, TCG_CALL_NO_RWG_SE, tl, tl, tl)
389 DEF_HELPER_FLAGS_3(addu_qh, 0, tl, tl, tl, env)
390 DEF_HELPER_FLAGS_3(addu_s_qh, 0, tl, tl, tl, env)
391 #endif
392 DEF_HELPER_FLAGS_3(subq_ph, 0, tl, tl, tl, env)
393 DEF_HELPER_FLAGS_3(subq_s_ph, 0, tl, tl, tl, env)
394 #if defined(TARGET_MIPS64)
395 DEF_HELPER_FLAGS_3(subq_qh, 0, tl, tl, tl, env)
396 DEF_HELPER_FLAGS_3(subq_s_qh, 0, tl, tl, tl, env)
397 #endif
398 DEF_HELPER_FLAGS_3(subq_s_w, 0, tl, tl, tl, env)
399 #if defined(TARGET_MIPS64)
400 DEF_HELPER_FLAGS_3(subq_pw, 0, tl, tl, tl, env)
401 DEF_HELPER_FLAGS_3(subq_s_pw, 0, tl, tl, tl, env)
402 #endif
403 DEF_HELPER_FLAGS_3(subu_qb, 0, tl, tl, tl, env)
404 DEF_HELPER_FLAGS_3(subu_s_qb, 0, tl, tl, tl, env)
405 DEF_HELPER_FLAGS_2(subuh_qb, TCG_CALL_NO_RWG_SE, tl, tl, tl)
406 DEF_HELPER_FLAGS_2(subuh_r_qb, TCG_CALL_NO_RWG_SE, tl, tl, tl)
407 DEF_HELPER_FLAGS_3(subu_ph, 0, tl, tl, tl, env)
408 DEF_HELPER_FLAGS_3(subu_s_ph, 0, tl, tl, tl, env)
409 DEF_HELPER_FLAGS_2(subqh_ph, TCG_CALL_NO_RWG_SE, tl, tl, tl)
410 DEF_HELPER_FLAGS_2(subqh_r_ph, TCG_CALL_NO_RWG_SE, tl, tl, tl)
411 DEF_HELPER_FLAGS_2(subqh_w, TCG_CALL_NO_RWG_SE, tl, tl, tl)
412 DEF_HELPER_FLAGS_2(subqh_r_w, TCG_CALL_NO_RWG_SE, tl, tl, tl)
413 #if defined(TARGET_MIPS64)
414 DEF_HELPER_FLAGS_3(subu_ob, 0, tl, tl, tl, env)
415 DEF_HELPER_FLAGS_3(subu_s_ob, 0, tl, tl, tl, env)
416 DEF_HELPER_FLAGS_2(subuh_ob, TCG_CALL_NO_RWG_SE, tl, tl, tl)
417 DEF_HELPER_FLAGS_2(subuh_r_ob, TCG_CALL_NO_RWG_SE, tl, tl, tl)
418 DEF_HELPER_FLAGS_3(subu_qh, 0, tl, tl, tl, env)
419 DEF_HELPER_FLAGS_3(subu_s_qh, 0, tl, tl, tl, env)
420 #endif
421 DEF_HELPER_FLAGS_3(addsc, 0, tl, tl, tl, env)
422 DEF_HELPER_FLAGS_3(addwc, 0, tl, tl, tl, env)
423 DEF_HELPER_FLAGS_2(modsub, TCG_CALL_NO_RWG_SE, tl, tl, tl)
424 DEF_HELPER_FLAGS_1(raddu_w_qb, TCG_CALL_NO_RWG_SE, tl, tl)
425 #if defined(TARGET_MIPS64)
426 DEF_HELPER_FLAGS_1(raddu_l_ob, TCG_CALL_NO_RWG_SE, tl, tl)
427 #endif
428 DEF_HELPER_FLAGS_2(absq_s_qb, 0, tl, tl, env)
429 DEF_HELPER_FLAGS_2(absq_s_ph, 0, tl, tl, env)
430 DEF_HELPER_FLAGS_2(absq_s_w, 0, tl, tl, env)
431 #if defined(TARGET_MIPS64)
432 DEF_HELPER_FLAGS_2(absq_s_ob, 0, tl, tl, env)
433 DEF_HELPER_FLAGS_2(absq_s_qh, 0, tl, tl, env)
434 DEF_HELPER_FLAGS_2(absq_s_pw, 0, tl, tl, env)
435 #endif
436 DEF_HELPER_FLAGS_2(precr_qb_ph, TCG_CALL_NO_RWG_SE, tl, tl, tl)
437 DEF_HELPER_FLAGS_2(precrq_qb_ph, TCG_CALL_NO_RWG_SE, tl, tl, tl)
438 DEF_HELPER_FLAGS_3(precr_sra_ph_w, TCG_CALL_NO_RWG_SE,
439 tl, i32, tl, tl)
440 DEF_HELPER_FLAGS_3(precr_sra_r_ph_w, TCG_CALL_NO_RWG_SE,
441 tl, i32, tl, tl)
442 DEF_HELPER_FLAGS_2(precrq_ph_w, TCG_CALL_NO_RWG_SE, tl, tl, tl)
443 DEF_HELPER_FLAGS_3(precrq_rs_ph_w, 0, tl, tl, tl, env)
444 #if defined(TARGET_MIPS64)
445 DEF_HELPER_FLAGS_2(precr_ob_qh, TCG_CALL_NO_RWG_SE, tl, tl, tl)
446 DEF_HELPER_FLAGS_3(precr_sra_qh_pw,
447 TCG_CALL_NO_RWG_SE, tl, tl, tl, i32)
448 DEF_HELPER_FLAGS_3(precr_sra_r_qh_pw,
449 TCG_CALL_NO_RWG_SE, tl, tl, tl, i32)
450 DEF_HELPER_FLAGS_2(precrq_ob_qh, TCG_CALL_NO_RWG_SE, tl, tl, tl)
451 DEF_HELPER_FLAGS_2(precrq_qh_pw, TCG_CALL_NO_RWG_SE, tl, tl, tl)
452 DEF_HELPER_FLAGS_3(precrq_rs_qh_pw,
453 TCG_CALL_NO_RWG_SE, tl, tl, tl, env)
454 DEF_HELPER_FLAGS_2(precrq_pw_l, TCG_CALL_NO_RWG_SE, tl, tl, tl)
455 #endif
456 DEF_HELPER_FLAGS_3(precrqu_s_qb_ph, 0, tl, tl, tl, env)
457 #if defined(TARGET_MIPS64)
458 DEF_HELPER_FLAGS_3(precrqu_s_ob_qh,
459 TCG_CALL_NO_RWG_SE, tl, tl, tl, env)
461 DEF_HELPER_FLAGS_1(preceq_pw_qhl, TCG_CALL_NO_RWG_SE, tl, tl)
462 DEF_HELPER_FLAGS_1(preceq_pw_qhr, TCG_CALL_NO_RWG_SE, tl, tl)
463 DEF_HELPER_FLAGS_1(preceq_pw_qhla, TCG_CALL_NO_RWG_SE, tl, tl)
464 DEF_HELPER_FLAGS_1(preceq_pw_qhra, TCG_CALL_NO_RWG_SE, tl, tl)
465 #endif
466 DEF_HELPER_FLAGS_1(precequ_ph_qbl, TCG_CALL_NO_RWG_SE, tl, tl)
467 DEF_HELPER_FLAGS_1(precequ_ph_qbr, TCG_CALL_NO_RWG_SE, tl, tl)
468 DEF_HELPER_FLAGS_1(precequ_ph_qbla, TCG_CALL_NO_RWG_SE, tl, tl)
469 DEF_HELPER_FLAGS_1(precequ_ph_qbra, TCG_CALL_NO_RWG_SE, tl, tl)
470 #if defined(TARGET_MIPS64)
471 DEF_HELPER_FLAGS_1(precequ_qh_obl, TCG_CALL_NO_RWG_SE, tl, tl)
472 DEF_HELPER_FLAGS_1(precequ_qh_obr, TCG_CALL_NO_RWG_SE, tl, tl)
473 DEF_HELPER_FLAGS_1(precequ_qh_obla, TCG_CALL_NO_RWG_SE, tl, tl)
474 DEF_HELPER_FLAGS_1(precequ_qh_obra, TCG_CALL_NO_RWG_SE, tl, tl)
475 #endif
476 DEF_HELPER_FLAGS_1(preceu_ph_qbl, TCG_CALL_NO_RWG_SE, tl, tl)
477 DEF_HELPER_FLAGS_1(preceu_ph_qbr, TCG_CALL_NO_RWG_SE, tl, tl)
478 DEF_HELPER_FLAGS_1(preceu_ph_qbla, TCG_CALL_NO_RWG_SE, tl, tl)
479 DEF_HELPER_FLAGS_1(preceu_ph_qbra, TCG_CALL_NO_RWG_SE, tl, tl)
480 #if defined(TARGET_MIPS64)
481 DEF_HELPER_FLAGS_1(preceu_qh_obl, TCG_CALL_NO_RWG_SE, tl, tl)
482 DEF_HELPER_FLAGS_1(preceu_qh_obr, TCG_CALL_NO_RWG_SE, tl, tl)
483 DEF_HELPER_FLAGS_1(preceu_qh_obla, TCG_CALL_NO_RWG_SE, tl, tl)
484 DEF_HELPER_FLAGS_1(preceu_qh_obra, TCG_CALL_NO_RWG_SE, tl, tl)
485 #endif
487 /* DSP GPR-Based Shift Sub-class insns */
488 DEF_HELPER_FLAGS_3(shll_qb, 0, tl, tl, tl, env)
489 #if defined(TARGET_MIPS64)
490 DEF_HELPER_FLAGS_3(shll_ob, 0, tl, tl, tl, env)
491 #endif
492 DEF_HELPER_FLAGS_3(shll_ph, 0, tl, tl, tl, env)
493 DEF_HELPER_FLAGS_3(shll_s_ph, 0, tl, tl, tl, env)
494 #if defined(TARGET_MIPS64)
495 DEF_HELPER_FLAGS_3(shll_qh, 0, tl, tl, tl, env)
496 DEF_HELPER_FLAGS_3(shll_s_qh, 0, tl, tl, tl, env)
497 #endif
498 DEF_HELPER_FLAGS_3(shll_s_w, 0, tl, tl, tl, env)
499 #if defined(TARGET_MIPS64)
500 DEF_HELPER_FLAGS_3(shll_pw, 0, tl, tl, tl, env)
501 DEF_HELPER_FLAGS_3(shll_s_pw, 0, tl, tl, tl, env)
502 #endif
503 DEF_HELPER_FLAGS_2(shrl_qb, TCG_CALL_NO_RWG_SE, tl, tl, tl)
504 DEF_HELPER_FLAGS_2(shrl_ph, TCG_CALL_NO_RWG_SE, tl, tl, tl)
505 #if defined(TARGET_MIPS64)
506 DEF_HELPER_FLAGS_2(shrl_ob, TCG_CALL_NO_RWG_SE, tl, tl, tl)
507 DEF_HELPER_FLAGS_2(shrl_qh, TCG_CALL_NO_RWG_SE, tl, tl, tl)
508 #endif
509 DEF_HELPER_FLAGS_2(shra_qb, TCG_CALL_NO_RWG_SE, tl, tl, tl)
510 DEF_HELPER_FLAGS_2(shra_r_qb, TCG_CALL_NO_RWG_SE, tl, tl, tl)
511 #if defined(TARGET_MIPS64)
512 DEF_HELPER_FLAGS_2(shra_ob, TCG_CALL_NO_RWG_SE, tl, tl, tl)
513 DEF_HELPER_FLAGS_2(shra_r_ob, TCG_CALL_NO_RWG_SE, tl, tl, tl)
514 #endif
515 DEF_HELPER_FLAGS_2(shra_ph, TCG_CALL_NO_RWG_SE, tl, tl, tl)
516 DEF_HELPER_FLAGS_2(shra_r_ph, TCG_CALL_NO_RWG_SE, tl, tl, tl)
517 DEF_HELPER_FLAGS_2(shra_r_w, TCG_CALL_NO_RWG_SE, tl, tl, tl)
518 #if defined(TARGET_MIPS64)
519 DEF_HELPER_FLAGS_2(shra_qh, TCG_CALL_NO_RWG_SE, tl, tl, tl)
520 DEF_HELPER_FLAGS_2(shra_r_qh, TCG_CALL_NO_RWG_SE, tl, tl, tl)
521 DEF_HELPER_FLAGS_2(shra_pw, TCG_CALL_NO_RWG_SE, tl, tl, tl)
522 DEF_HELPER_FLAGS_2(shra_r_pw, TCG_CALL_NO_RWG_SE, tl, tl, tl)
523 #endif
525 /* DSP Multiply Sub-class insns */
526 DEF_HELPER_FLAGS_3(muleu_s_ph_qbl, 0, tl, tl, tl, env)
527 DEF_HELPER_FLAGS_3(muleu_s_ph_qbr, 0, tl, tl, tl, env)
528 #if defined(TARGET_MIPS64)
529 DEF_HELPER_FLAGS_3(muleu_s_qh_obl, 0, tl, tl, tl, env)
530 DEF_HELPER_FLAGS_3(muleu_s_qh_obr, 0, tl, tl, tl, env)
531 #endif
532 DEF_HELPER_FLAGS_3(mulq_rs_ph, 0, tl, tl, tl, env)
533 #if defined(TARGET_MIPS64)
534 DEF_HELPER_FLAGS_3(mulq_rs_qh, 0, tl, tl, tl, env)
535 #endif
536 DEF_HELPER_FLAGS_3(muleq_s_w_phl, 0, tl, tl, tl, env)
537 DEF_HELPER_FLAGS_3(muleq_s_w_phr, 0, tl, tl, tl, env)
538 #if defined(TARGET_MIPS64)
539 DEF_HELPER_FLAGS_3(muleq_s_pw_qhl, 0, tl, tl, tl, env)
540 DEF_HELPER_FLAGS_3(muleq_s_pw_qhr, 0, tl, tl, tl, env)
541 #endif
542 DEF_HELPER_FLAGS_4(dpau_h_qbl, 0, void, i32, tl, tl, env)
543 DEF_HELPER_FLAGS_4(dpau_h_qbr, 0, void, i32, tl, tl, env)
544 #if defined(TARGET_MIPS64)
545 DEF_HELPER_FLAGS_4(dpau_h_obl, 0, void, tl, tl, i32, env)
546 DEF_HELPER_FLAGS_4(dpau_h_obr, 0, void, tl, tl, i32, env)
547 #endif
548 DEF_HELPER_FLAGS_4(dpsu_h_qbl, 0, void, i32, tl, tl, env)
549 DEF_HELPER_FLAGS_4(dpsu_h_qbr, 0, void, i32, tl, tl, env)
550 #if defined(TARGET_MIPS64)
551 DEF_HELPER_FLAGS_4(dpsu_h_obl, 0, void, tl, tl, i32, env)
552 DEF_HELPER_FLAGS_4(dpsu_h_obr, 0, void, tl, tl, i32, env)
553 #endif
554 DEF_HELPER_FLAGS_4(dpa_w_ph, 0, void, i32, tl, tl, env)
555 #if defined(TARGET_MIPS64)
556 DEF_HELPER_FLAGS_4(dpa_w_qh, 0, void, tl, tl, i32, env)
557 #endif
558 DEF_HELPER_FLAGS_4(dpax_w_ph, 0, void, i32, tl, tl, env)
559 DEF_HELPER_FLAGS_4(dpaq_s_w_ph, 0, void, i32, tl, tl, env)
560 #if defined(TARGET_MIPS64)
561 DEF_HELPER_FLAGS_4(dpaq_s_w_qh, 0, void, tl, tl, i32, env)
562 #endif
563 DEF_HELPER_FLAGS_4(dpaqx_s_w_ph, 0, void, i32, tl, tl, env)
564 DEF_HELPER_FLAGS_4(dpaqx_sa_w_ph, 0, void, i32, tl, tl, env)
565 DEF_HELPER_FLAGS_4(dps_w_ph, 0, void, i32, tl, tl, env)
566 #if defined(TARGET_MIPS64)
567 DEF_HELPER_FLAGS_4(dps_w_qh, 0, void, tl, tl, i32, env)
568 #endif
569 DEF_HELPER_FLAGS_4(dpsx_w_ph, 0, void, i32, tl, tl, env)
570 DEF_HELPER_FLAGS_4(dpsq_s_w_ph, 0, void, i32, tl, tl, env)
571 #if defined(TARGET_MIPS64)
572 DEF_HELPER_FLAGS_4(dpsq_s_w_qh, 0, void, tl, tl, i32, env)
573 #endif
574 DEF_HELPER_FLAGS_4(dpsqx_s_w_ph, 0, void, i32, tl, tl, env)
575 DEF_HELPER_FLAGS_4(dpsqx_sa_w_ph, 0, void, i32, tl, tl, env)
576 DEF_HELPER_FLAGS_4(mulsaq_s_w_ph, 0, void, i32, tl, tl, env)
577 #if defined(TARGET_MIPS64)
578 DEF_HELPER_FLAGS_4(mulsaq_s_w_qh, 0, void, tl, tl, i32, env)
579 #endif
580 DEF_HELPER_FLAGS_4(dpaq_sa_l_w, 0, void, i32, tl, tl, env)
581 #if defined(TARGET_MIPS64)
582 DEF_HELPER_FLAGS_4(dpaq_sa_l_pw, 0, void, tl, tl, i32, env)
583 #endif
584 DEF_HELPER_FLAGS_4(dpsq_sa_l_w, 0, void, i32, tl, tl, env)
585 #if defined(TARGET_MIPS64)
586 DEF_HELPER_FLAGS_4(dpsq_sa_l_pw, 0, void, tl, tl, i32, env)
587 DEF_HELPER_FLAGS_4(mulsaq_s_l_pw, 0, void, tl, tl, i32, env)
588 #endif
589 DEF_HELPER_FLAGS_4(maq_s_w_phl, 0, void, i32, tl, tl, env)
590 DEF_HELPER_FLAGS_4(maq_s_w_phr, 0, void, i32, tl, tl, env)
591 DEF_HELPER_FLAGS_4(maq_sa_w_phl, 0, void, i32, tl, tl, env)
592 DEF_HELPER_FLAGS_4(maq_sa_w_phr, 0, void, i32, tl, tl, env)
593 DEF_HELPER_FLAGS_3(mul_ph, 0, tl, tl, tl, env)
594 DEF_HELPER_FLAGS_3(mul_s_ph, 0, tl, tl, tl, env)
595 DEF_HELPER_FLAGS_3(mulq_s_ph, 0, tl, tl, tl, env)
596 DEF_HELPER_FLAGS_3(mulq_s_w, 0, tl, tl, tl, env)
597 DEF_HELPER_FLAGS_3(mulq_rs_w, 0, tl, tl, tl, env)
598 DEF_HELPER_FLAGS_4(mulsa_w_ph, 0, void, i32, tl, tl, env)
599 #if defined(TARGET_MIPS64)
600 DEF_HELPER_FLAGS_4(maq_s_w_qhll, 0, void, tl, tl, i32, env)
601 DEF_HELPER_FLAGS_4(maq_s_w_qhlr, 0, void, tl, tl, i32, env)
602 DEF_HELPER_FLAGS_4(maq_s_w_qhrl, 0, void, tl, tl, i32, env)
603 DEF_HELPER_FLAGS_4(maq_s_w_qhrr, 0, void, tl, tl, i32, env)
604 DEF_HELPER_FLAGS_4(maq_sa_w_qhll, 0, void, tl, tl, i32, env)
605 DEF_HELPER_FLAGS_4(maq_sa_w_qhlr, 0, void, tl, tl, i32, env)
606 DEF_HELPER_FLAGS_4(maq_sa_w_qhrl, 0, void, tl, tl, i32, env)
607 DEF_HELPER_FLAGS_4(maq_sa_w_qhrr, 0, void, tl, tl, i32, env)
608 DEF_HELPER_FLAGS_4(maq_s_l_pwl, 0, void, tl, tl, i32, env)
609 DEF_HELPER_FLAGS_4(maq_s_l_pwr, 0, void, tl, tl, i32, env)
610 DEF_HELPER_FLAGS_4(dmadd, 0, void, tl, tl, i32, env)
611 DEF_HELPER_FLAGS_4(dmaddu, 0, void, tl, tl, i32, env)
612 DEF_HELPER_FLAGS_4(dmsub, 0, void, tl, tl, i32, env)
613 DEF_HELPER_FLAGS_4(dmsubu, 0, void, tl, tl, i32, env)
614 #endif
616 /* DSP Bit/Manipulation Sub-class insns */
617 DEF_HELPER_FLAGS_1(bitrev, TCG_CALL_NO_RWG_SE, tl, tl)
618 DEF_HELPER_FLAGS_3(insv, 0, tl, env, tl, tl)
619 #if defined(TARGET_MIPS64)
620 DEF_HELPER_FLAGS_3(dinsv, 0, tl, env, tl, tl);
621 #endif
623 /* DSP Compare-Pick Sub-class insns */
624 DEF_HELPER_FLAGS_3(cmpu_eq_qb, 0, void, tl, tl, env)
625 DEF_HELPER_FLAGS_3(cmpu_lt_qb, 0, void, tl, tl, env)
626 DEF_HELPER_FLAGS_3(cmpu_le_qb, 0, void, tl, tl, env)
627 DEF_HELPER_FLAGS_2(cmpgu_eq_qb, TCG_CALL_NO_RWG_SE, tl, tl, tl)
628 DEF_HELPER_FLAGS_2(cmpgu_lt_qb, TCG_CALL_NO_RWG_SE, tl, tl, tl)
629 DEF_HELPER_FLAGS_2(cmpgu_le_qb, TCG_CALL_NO_RWG_SE, tl, tl, tl)
630 DEF_HELPER_FLAGS_3(cmp_eq_ph, 0, void, tl, tl, env)
631 DEF_HELPER_FLAGS_3(cmp_lt_ph, 0, void, tl, tl, env)
632 DEF_HELPER_FLAGS_3(cmp_le_ph, 0, void, tl, tl, env)
633 #if defined(TARGET_MIPS64)
634 DEF_HELPER_FLAGS_3(cmpu_eq_ob, 0, void, tl, tl, env)
635 DEF_HELPER_FLAGS_3(cmpu_lt_ob, 0, void, tl, tl, env)
636 DEF_HELPER_FLAGS_3(cmpu_le_ob, 0, void, tl, tl, env)
637 DEF_HELPER_FLAGS_3(cmpgdu_eq_ob, 0, tl, tl, tl, env)
638 DEF_HELPER_FLAGS_3(cmpgdu_lt_ob, 0, tl, tl, tl, env)
639 DEF_HELPER_FLAGS_3(cmpgdu_le_ob, 0, tl, tl, tl, env)
640 DEF_HELPER_FLAGS_2(cmpgu_eq_ob, TCG_CALL_NO_RWG_SE, tl, tl, tl)
641 DEF_HELPER_FLAGS_2(cmpgu_lt_ob, TCG_CALL_NO_RWG_SE, tl, tl, tl)
642 DEF_HELPER_FLAGS_2(cmpgu_le_ob, TCG_CALL_NO_RWG_SE, tl, tl, tl)
643 DEF_HELPER_FLAGS_3(cmp_eq_qh, 0, void, tl, tl, env)
644 DEF_HELPER_FLAGS_3(cmp_lt_qh, 0, void, tl, tl, env)
645 DEF_HELPER_FLAGS_3(cmp_le_qh, 0, void, tl, tl, env)
646 DEF_HELPER_FLAGS_3(cmp_eq_pw, 0, void, tl, tl, env)
647 DEF_HELPER_FLAGS_3(cmp_lt_pw, 0, void, tl, tl, env)
648 DEF_HELPER_FLAGS_3(cmp_le_pw, 0, void, tl, tl, env)
649 #endif
650 DEF_HELPER_FLAGS_3(pick_qb, 0, tl, tl, tl, env)
651 DEF_HELPER_FLAGS_3(pick_ph, 0, tl, tl, tl, env)
652 #if defined(TARGET_MIPS64)
653 DEF_HELPER_FLAGS_3(pick_ob, 0, tl, tl, tl, env)
654 DEF_HELPER_FLAGS_3(pick_qh, 0, tl, tl, tl, env)
655 DEF_HELPER_FLAGS_3(pick_pw, 0, tl, tl, tl, env)
656 #endif
657 DEF_HELPER_FLAGS_3(append, TCG_CALL_NO_RWG_SE, tl, tl, tl, i32)
658 #if defined(TARGET_MIPS64)
659 DEF_HELPER_FLAGS_3(dappend, TCG_CALL_NO_RWG_SE, tl, tl, tl, i32)
660 #endif
661 DEF_HELPER_FLAGS_3(prepend, TCG_CALL_NO_RWG_SE, tl, tl, tl, i32)
662 #if defined(TARGET_MIPS64)
663 DEF_HELPER_FLAGS_3(prependd, TCG_CALL_NO_RWG_SE, tl, tl, tl, i32)
664 DEF_HELPER_FLAGS_3(prependw, TCG_CALL_NO_RWG_SE, tl, tl, tl, i32)
665 #endif
666 DEF_HELPER_FLAGS_3(balign, TCG_CALL_NO_RWG_SE, tl, tl, tl, i32)
667 #if defined(TARGET_MIPS64)
668 DEF_HELPER_FLAGS_3(dbalign, TCG_CALL_NO_RWG_SE, tl, tl, tl, i32)
669 #endif
670 DEF_HELPER_FLAGS_2(packrl_ph, TCG_CALL_NO_RWG_SE, tl, tl, tl)
671 #if defined(TARGET_MIPS64)
672 DEF_HELPER_FLAGS_2(packrl_pw, TCG_CALL_NO_RWG_SE, tl, tl, tl)
673 #endif
675 /* DSP Accumulator and DSPControl Access Sub-class insns */
676 DEF_HELPER_FLAGS_3(extr_w, 0, tl, tl, tl, env)
677 DEF_HELPER_FLAGS_3(extr_r_w, 0, tl, tl, tl, env)
678 DEF_HELPER_FLAGS_3(extr_rs_w, 0, tl, tl, tl, env)
679 #if defined(TARGET_MIPS64)
680 DEF_HELPER_FLAGS_3(dextr_w, 0, tl, tl, tl, env)
681 DEF_HELPER_FLAGS_3(dextr_r_w, 0, tl, tl, tl, env)
682 DEF_HELPER_FLAGS_3(dextr_rs_w, 0, tl, tl, tl, env)
683 DEF_HELPER_FLAGS_3(dextr_l, 0, tl, tl, tl, env)
684 DEF_HELPER_FLAGS_3(dextr_r_l, 0, tl, tl, tl, env)
685 DEF_HELPER_FLAGS_3(dextr_rs_l, 0, tl, tl, tl, env)
686 #endif
687 DEF_HELPER_FLAGS_3(extr_s_h, 0, tl, tl, tl, env)
688 #if defined(TARGET_MIPS64)
689 DEF_HELPER_FLAGS_3(dextr_s_h, 0, tl, tl, tl, env)
690 #endif
691 DEF_HELPER_FLAGS_3(extp, 0, tl, tl, tl, env)
692 DEF_HELPER_FLAGS_3(extpdp, 0, tl, tl, tl, env)
693 #if defined(TARGET_MIPS64)
694 DEF_HELPER_FLAGS_3(dextp, 0, tl, tl, tl, env)
695 DEF_HELPER_FLAGS_3(dextpdp, 0, tl, tl, tl, env)
696 #endif
697 DEF_HELPER_FLAGS_3(shilo, 0, void, tl, tl, env)
698 #if defined(TARGET_MIPS64)
699 DEF_HELPER_FLAGS_3(dshilo, 0, void, tl, tl, env)
700 #endif
701 DEF_HELPER_FLAGS_3(mthlip, 0, void, tl, tl, env)
702 #if defined(TARGET_MIPS64)
703 DEF_HELPER_FLAGS_3(dmthlip, 0, void, tl, tl, env)
704 #endif
705 DEF_HELPER_FLAGS_3(wrdsp, 0, void, tl, tl, env)
706 DEF_HELPER_FLAGS_2(rddsp, 0, tl, tl, env)
710 #include "def-helper.h"