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