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