1#include "exec/def-helper.h"
2
3DEF_HELPER_FLAGS_1(clz, TCG_CALL_NO_RWG_SE, i32, i32)
4DEF_HELPER_FLAGS_1(sxtb16, TCG_CALL_NO_RWG_SE, i32, i32)
5DEF_HELPER_FLAGS_1(uxtb16, TCG_CALL_NO_RWG_SE, i32, i32)
6
7DEF_HELPER_3(add_setq, i32, env, i32, i32)
8DEF_HELPER_3(add_saturate, i32, env, i32, i32)
9DEF_HELPER_3(sub_saturate, i32, env, i32, i32)
10DEF_HELPER_3(add_usaturate, i32, env, i32, i32)
11DEF_HELPER_3(sub_usaturate, i32, env, i32, i32)
12DEF_HELPER_2(double_saturate, i32, env, s32)
13DEF_HELPER_FLAGS_2(sdiv, TCG_CALL_NO_RWG_SE, s32, s32, s32)
14DEF_HELPER_FLAGS_2(udiv, TCG_CALL_NO_RWG_SE, i32, i32, i32)
15DEF_HELPER_FLAGS_1(rbit, TCG_CALL_NO_RWG_SE, i32, i32)
16
17#define PAS_OP(pfx) \
18 DEF_HELPER_3(pfx ## add8, i32, i32, i32, ptr) \
19 DEF_HELPER_3(pfx ## sub8, i32, i32, i32, ptr) \
20 DEF_HELPER_3(pfx ## sub16, i32, i32, i32, ptr) \
21 DEF_HELPER_3(pfx ## add16, i32, i32, i32, ptr) \
22 DEF_HELPER_3(pfx ## addsubx, i32, i32, i32, ptr) \
23 DEF_HELPER_3(pfx ## subaddx, i32, i32, i32, ptr)
24
25PAS_OP(s)
26PAS_OP(u)
27#undef PAS_OP
28
29#define PAS_OP(pfx) \
30 DEF_HELPER_2(pfx ## add8, i32, i32, i32) \
31 DEF_HELPER_2(pfx ## sub8, i32, i32, i32) \
32 DEF_HELPER_2(pfx ## sub16, i32, i32, i32) \
33 DEF_HELPER_2(pfx ## add16, i32, i32, i32) \
34 DEF_HELPER_2(pfx ## addsubx, i32, i32, i32) \
35 DEF_HELPER_2(pfx ## subaddx, i32, i32, i32)
36PAS_OP(q)
37PAS_OP(sh)
38PAS_OP(uq)
39PAS_OP(uh)
40#undef PAS_OP
41
42DEF_HELPER_3(ssat, i32, env, i32, i32)
43DEF_HELPER_3(usat, i32, env, i32, i32)
44DEF_HELPER_3(ssat16, i32, env, i32, i32)
45DEF_HELPER_3(usat16, i32, env, i32, i32)
46
47DEF_HELPER_FLAGS_2(usad8, TCG_CALL_NO_RWG_SE, i32, i32, i32)
48
49DEF_HELPER_1(logicq_cc, i32, i64)
50
51DEF_HELPER_FLAGS_3(sel_flags, TCG_CALL_NO_RWG_SE,
52 i32, i32, i32, i32)
53DEF_HELPER_2(exception, void, env, i32)
54DEF_HELPER_1(wfi, void, env)
55
56DEF_HELPER_3(cpsr_write, void, env, i32, i32)
57DEF_HELPER_1(cpsr_read, i32, env)
58
59DEF_HELPER_3(v7m_msr, void, env, i32, i32)
60DEF_HELPER_2(v7m_mrs, i32, env, i32)
61
62DEF_HELPER_3(set_cp_reg, void, env, ptr, i32)
63DEF_HELPER_2(get_cp_reg, i32, env, ptr)
64DEF_HELPER_3(set_cp_reg64, void, env, ptr, i64)
65DEF_HELPER_2(get_cp_reg64, i64, env, ptr)
66
67DEF_HELPER_2(get_r13_banked, i32, env, i32)
68DEF_HELPER_3(set_r13_banked, void, env, i32, i32)
69
70DEF_HELPER_2(get_user_reg, i32, env, i32)
71DEF_HELPER_3(set_user_reg, void, env, i32, i32)
72
73DEF_HELPER_1(vfp_get_fpscr, i32, env)
74DEF_HELPER_2(vfp_set_fpscr, void, env, i32)
75
76DEF_HELPER_3(vfp_adds, f32, f32, f32, ptr)
77DEF_HELPER_3(vfp_addd, f64, f64, f64, ptr)
78DEF_HELPER_3(vfp_subs, f32, f32, f32, ptr)
79DEF_HELPER_3(vfp_subd, f64, f64, f64, ptr)
80DEF_HELPER_3(vfp_muls, f32, f32, f32, ptr)
81DEF_HELPER_3(vfp_muld, f64, f64, f64, ptr)
82DEF_HELPER_3(vfp_divs, f32, f32, f32, ptr)
83DEF_HELPER_3(vfp_divd, f64, f64, f64, ptr)
84DEF_HELPER_1(vfp_negs, f32, f32)
85DEF_HELPER_1(vfp_negd, f64, f64)
86DEF_HELPER_1(vfp_abss, f32, f32)
87DEF_HELPER_1(vfp_absd, f64, f64)
88DEF_HELPER_2(vfp_sqrts, f32, f32, env)
89DEF_HELPER_2(vfp_sqrtd, f64, f64, env)
90DEF_HELPER_3(vfp_cmps, void, f32, f32, env)
91DEF_HELPER_3(vfp_cmpd, void, f64, f64, env)
92DEF_HELPER_3(vfp_cmpes, void, f32, f32, env)
93DEF_HELPER_3(vfp_cmped, void, f64, f64, env)
94
95DEF_HELPER_2(vfp_fcvtds, f64, f32, env)
96DEF_HELPER_2(vfp_fcvtsd, f32, f64, env)
97
98DEF_HELPER_2(vfp_uitos, f32, i32, ptr)
99DEF_HELPER_2(vfp_uitod, f64, i32, ptr)
100DEF_HELPER_2(vfp_sitos, f32, i32, ptr)
101DEF_HELPER_2(vfp_sitod, f64, i32, ptr)
102
103DEF_HELPER_2(vfp_touis, i32, f32, ptr)
104DEF_HELPER_2(vfp_touid, i32, f64, ptr)
105DEF_HELPER_2(vfp_touizs, i32, f32, ptr)
106DEF_HELPER_2(vfp_touizd, i32, f64, ptr)
107DEF_HELPER_2(vfp_tosis, i32, f32, ptr)
108DEF_HELPER_2(vfp_tosid, i32, f64, ptr)
109DEF_HELPER_2(vfp_tosizs, i32, f32, ptr)
110DEF_HELPER_2(vfp_tosizd, i32, f64, ptr)
111
112DEF_HELPER_3(vfp_toshs, i32, f32, i32, ptr)
113DEF_HELPER_3(vfp_tosls, i32, f32, i32, ptr)
114DEF_HELPER_3(vfp_touhs, i32, f32, i32, ptr)
115DEF_HELPER_3(vfp_touls, i32, f32, i32, ptr)
116DEF_HELPER_3(vfp_toshd, i64, f64, i32, ptr)
117DEF_HELPER_3(vfp_tosld, i64, f64, i32, ptr)
118DEF_HELPER_3(vfp_touhd, i64, f64, i32, ptr)
119DEF_HELPER_3(vfp_tould, i64, f64, i32, ptr)
120DEF_HELPER_3(vfp_shtos, f32, i32, i32, ptr)
121DEF_HELPER_3(vfp_sltos, f32, i32, i32, ptr)
122DEF_HELPER_3(vfp_uhtos, f32, i32, i32, ptr)
123DEF_HELPER_3(vfp_ultos, f32, i32, i32, ptr)
124DEF_HELPER_3(vfp_shtod, f64, i64, i32, ptr)
125DEF_HELPER_3(vfp_sltod, f64, i64, i32, ptr)
126DEF_HELPER_3(vfp_uhtod, f64, i64, i32, ptr)
127DEF_HELPER_3(vfp_ultod, f64, i64, i32, ptr)
128
129DEF_HELPER_2(vfp_fcvt_f16_to_f32, f32, i32, env)
130DEF_HELPER_2(vfp_fcvt_f32_to_f16, i32, f32, env)
131DEF_HELPER_2(neon_fcvt_f16_to_f32, f32, i32, env)
132DEF_HELPER_2(neon_fcvt_f32_to_f16, i32, f32, env)
133
134DEF_HELPER_4(vfp_muladdd, f64, f64, f64, f64, ptr)
135DEF_HELPER_4(vfp_muladds, f32, f32, f32, f32, ptr)
136
137DEF_HELPER_3(recps_f32, f32, f32, f32, env)
138DEF_HELPER_3(rsqrts_f32, f32, f32, f32, env)
139DEF_HELPER_2(recpe_f32, f32, f32, env)
140DEF_HELPER_2(rsqrte_f32, f32, f32, env)
141DEF_HELPER_2(recpe_u32, i32, i32, env)
142DEF_HELPER_2(rsqrte_u32, i32, i32, env)
143DEF_HELPER_5(neon_tbl, i32, env, i32, i32, i32, i32)
144
145DEF_HELPER_3(adc_cc, i32, env, i32, i32)
146DEF_HELPER_3(sbc_cc, i32, env, i32, i32)
147
148DEF_HELPER_3(shl_cc, i32, env, i32, i32)
149DEF_HELPER_3(shr_cc, i32, env, i32, i32)
150DEF_HELPER_3(sar_cc, i32, env, i32, i32)
151DEF_HELPER_3(ror_cc, i32, env, i32, i32)
152
153
154DEF_HELPER_3(neon_qadd_u8, i32, env, i32, i32)
155DEF_HELPER_3(neon_qadd_s8, i32, env, i32, i32)
156DEF_HELPER_3(neon_qadd_u16, i32, env, i32, i32)
157DEF_HELPER_3(neon_qadd_s16, i32, env, i32, i32)
158DEF_HELPER_3(neon_qadd_u32, i32, env, i32, i32)
159DEF_HELPER_3(neon_qadd_s32, i32, env, i32, i32)
160DEF_HELPER_3(neon_qsub_u8, i32, env, i32, i32)
161DEF_HELPER_3(neon_qsub_s8, i32, env, i32, i32)
162DEF_HELPER_3(neon_qsub_u16, i32, env, i32, i32)
163DEF_HELPER_3(neon_qsub_s16, i32, env, i32, i32)
164DEF_HELPER_3(neon_qsub_u32, i32, env, i32, i32)
165DEF_HELPER_3(neon_qsub_s32, i32, env, i32, i32)
166DEF_HELPER_3(neon_qadd_u64, i64, env, i64, i64)
167DEF_HELPER_3(neon_qadd_s64, i64, env, i64, i64)
168DEF_HELPER_3(neon_qsub_u64, i64, env, i64, i64)
169DEF_HELPER_3(neon_qsub_s64, i64, env, i64, i64)
170
171DEF_HELPER_2(neon_hadd_s8, i32, i32, i32)
172DEF_HELPER_2(neon_hadd_u8, i32, i32, i32)
173DEF_HELPER_2(neon_hadd_s16, i32, i32, i32)
174DEF_HELPER_2(neon_hadd_u16, i32, i32, i32)
175DEF_HELPER_2(neon_hadd_s32, s32, s32, s32)
176DEF_HELPER_2(neon_hadd_u32, i32, i32, i32)
177DEF_HELPER_2(neon_rhadd_s8, i32, i32, i32)
178DEF_HELPER_2(neon_rhadd_u8, i32, i32, i32)
179DEF_HELPER_2(neon_rhadd_s16, i32, i32, i32)
180DEF_HELPER_2(neon_rhadd_u16, i32, i32, i32)
181DEF_HELPER_2(neon_rhadd_s32, s32, s32, s32)
182DEF_HELPER_2(neon_rhadd_u32, i32, i32, i32)
183DEF_HELPER_2(neon_hsub_s8, i32, i32, i32)
184DEF_HELPER_2(neon_hsub_u8, i32, i32, i32)
185DEF_HELPER_2(neon_hsub_s16, i32, i32, i32)
186DEF_HELPER_2(neon_hsub_u16, i32, i32, i32)
187DEF_HELPER_2(neon_hsub_s32, s32, s32, s32)
188DEF_HELPER_2(neon_hsub_u32, i32, i32, i32)
189
190DEF_HELPER_2(neon_cgt_u8, i32, i32, i32)
191DEF_HELPER_2(neon_cgt_s8, i32, i32, i32)
192DEF_HELPER_2(neon_cgt_u16, i32, i32, i32)
193DEF_HELPER_2(neon_cgt_s16, i32, i32, i32)
194DEF_HELPER_2(neon_cgt_u32, i32, i32, i32)
195DEF_HELPER_2(neon_cgt_s32, i32, i32, i32)
196DEF_HELPER_2(neon_cge_u8, i32, i32, i32)
197DEF_HELPER_2(neon_cge_s8, i32, i32, i32)
198DEF_HELPER_2(neon_cge_u16, i32, i32, i32)
199DEF_HELPER_2(neon_cge_s16, i32, i32, i32)
200DEF_HELPER_2(neon_cge_u32, i32, i32, i32)
201DEF_HELPER_2(neon_cge_s32, i32, i32, i32)
202
203DEF_HELPER_2(neon_min_u8, i32, i32, i32)
204DEF_HELPER_2(neon_min_s8, i32, i32, i32)
205DEF_HELPER_2(neon_min_u16, i32, i32, i32)
206DEF_HELPER_2(neon_min_s16, i32, i32, i32)
207DEF_HELPER_2(neon_min_u32, i32, i32, i32)
208DEF_HELPER_2(neon_min_s32, i32, i32, i32)
209DEF_HELPER_2(neon_max_u8, i32, i32, i32)
210DEF_HELPER_2(neon_max_s8, i32, i32, i32)
211DEF_HELPER_2(neon_max_u16, i32, i32, i32)
212DEF_HELPER_2(neon_max_s16, i32, i32, i32)
213DEF_HELPER_2(neon_max_u32, i32, i32, i32)
214DEF_HELPER_2(neon_max_s32, i32, i32, i32)
215DEF_HELPER_2(neon_pmin_u8, i32, i32, i32)
216DEF_HELPER_2(neon_pmin_s8, i32, i32, i32)
217DEF_HELPER_2(neon_pmin_u16, i32, i32, i32)
218DEF_HELPER_2(neon_pmin_s16, i32, i32, i32)
219DEF_HELPER_2(neon_pmax_u8, i32, i32, i32)
220DEF_HELPER_2(neon_pmax_s8, i32, i32, i32)
221DEF_HELPER_2(neon_pmax_u16, i32, i32, i32)
222DEF_HELPER_2(neon_pmax_s16, i32, i32, i32)
223
224DEF_HELPER_2(neon_abd_u8, i32, i32, i32)
225DEF_HELPER_2(neon_abd_s8, i32, i32, i32)
226DEF_HELPER_2(neon_abd_u16, i32, i32, i32)
227DEF_HELPER_2(neon_abd_s16, i32, i32, i32)
228DEF_HELPER_2(neon_abd_u32, i32, i32, i32)
229DEF_HELPER_2(neon_abd_s32, i32, i32, i32)
230
231DEF_HELPER_2(neon_shl_u8, i32, i32, i32)
232DEF_HELPER_2(neon_shl_s8, i32, i32, i32)
233DEF_HELPER_2(neon_shl_u16, i32, i32, i32)
234DEF_HELPER_2(neon_shl_s16, i32, i32, i32)
235DEF_HELPER_2(neon_shl_u32, i32, i32, i32)
236DEF_HELPER_2(neon_shl_s32, i32, i32, i32)
237DEF_HELPER_2(neon_shl_u64, i64, i64, i64)
238DEF_HELPER_2(neon_shl_s64, i64, i64, i64)
239DEF_HELPER_2(neon_rshl_u8, i32, i32, i32)
240DEF_HELPER_2(neon_rshl_s8, i32, i32, i32)
241DEF_HELPER_2(neon_rshl_u16, i32, i32, i32)
242DEF_HELPER_2(neon_rshl_s16, i32, i32, i32)
243DEF_HELPER_2(neon_rshl_u32, i32, i32, i32)
244DEF_HELPER_2(neon_rshl_s32, i32, i32, i32)
245DEF_HELPER_2(neon_rshl_u64, i64, i64, i64)
246DEF_HELPER_2(neon_rshl_s64, i64, i64, i64)
247DEF_HELPER_3(neon_qshl_u8, i32, env, i32, i32)
248DEF_HELPER_3(neon_qshl_s8, i32, env, i32, i32)
249DEF_HELPER_3(neon_qshl_u16, i32, env, i32, i32)
250DEF_HELPER_3(neon_qshl_s16, i32, env, i32, i32)
251DEF_HELPER_3(neon_qshl_u32, i32, env, i32, i32)
252DEF_HELPER_3(neon_qshl_s32, i32, env, i32, i32)
253DEF_HELPER_3(neon_qshl_u64, i64, env, i64, i64)
254DEF_HELPER_3(neon_qshl_s64, i64, env, i64, i64)
255DEF_HELPER_3(neon_qshlu_s8, i32, env, i32, i32);
256DEF_HELPER_3(neon_qshlu_s16, i32, env, i32, i32);
257DEF_HELPER_3(neon_qshlu_s32, i32, env, i32, i32);
258DEF_HELPER_3(neon_qshlu_s64, i64, env, i64, i64);
259DEF_HELPER_3(neon_qrshl_u8, i32, env, i32, i32)
260DEF_HELPER_3(neon_qrshl_s8, i32, env, i32, i32)
261DEF_HELPER_3(neon_qrshl_u16, i32, env, i32, i32)
262DEF_HELPER_3(neon_qrshl_s16, i32, env, i32, i32)
263DEF_HELPER_3(neon_qrshl_u32, i32, env, i32, i32)
264DEF_HELPER_3(neon_qrshl_s32, i32, env, i32, i32)
265DEF_HELPER_3(neon_qrshl_u64, i64, env, i64, i64)
266DEF_HELPER_3(neon_qrshl_s64, i64, env, i64, i64)
267
268DEF_HELPER_2(neon_add_u8, i32, i32, i32)
269DEF_HELPER_2(neon_add_u16, i32, i32, i32)
270DEF_HELPER_2(neon_padd_u8, i32, i32, i32)
271DEF_HELPER_2(neon_padd_u16, i32, i32, i32)
272DEF_HELPER_2(neon_sub_u8, i32, i32, i32)
273DEF_HELPER_2(neon_sub_u16, i32, i32, i32)
274DEF_HELPER_2(neon_mul_u8, i32, i32, i32)
275DEF_HELPER_2(neon_mul_u16, i32, i32, i32)
276DEF_HELPER_2(neon_mul_p8, i32, i32, i32)
277DEF_HELPER_2(neon_mull_p8, i64, i32, i32)
278
279DEF_HELPER_2(neon_tst_u8, i32, i32, i32)
280DEF_HELPER_2(neon_tst_u16, i32, i32, i32)
281DEF_HELPER_2(neon_tst_u32, i32, i32, i32)
282DEF_HELPER_2(neon_ceq_u8, i32, i32, i32)
283DEF_HELPER_2(neon_ceq_u16, i32, i32, i32)
284DEF_HELPER_2(neon_ceq_u32, i32, i32, i32)
285
286DEF_HELPER_1(neon_abs_s8, i32, i32)
287DEF_HELPER_1(neon_abs_s16, i32, i32)
288DEF_HELPER_1(neon_clz_u8, i32, i32)
289DEF_HELPER_1(neon_clz_u16, i32, i32)
290DEF_HELPER_1(neon_cls_s8, i32, i32)
291DEF_HELPER_1(neon_cls_s16, i32, i32)
292DEF_HELPER_1(neon_cls_s32, i32, i32)
293DEF_HELPER_1(neon_cnt_u8, i32, i32)
294
295DEF_HELPER_3(neon_qdmulh_s16, i32, env, i32, i32)
296DEF_HELPER_3(neon_qrdmulh_s16, i32, env, i32, i32)
297DEF_HELPER_3(neon_qdmulh_s32, i32, env, i32, i32)
298DEF_HELPER_3(neon_qrdmulh_s32, i32, env, i32, i32)
299
300DEF_HELPER_1(neon_narrow_u8, i32, i64)
301DEF_HELPER_1(neon_narrow_u16, i32, i64)
302DEF_HELPER_2(neon_unarrow_sat8, i32, env, i64)
303DEF_HELPER_2(neon_narrow_sat_u8, i32, env, i64)
304DEF_HELPER_2(neon_narrow_sat_s8, i32, env, i64)
305DEF_HELPER_2(neon_unarrow_sat16, i32, env, i64)
306DEF_HELPER_2(neon_narrow_sat_u16, i32, env, i64)
307DEF_HELPER_2(neon_narrow_sat_s16, i32, env, i64)
308DEF_HELPER_2(neon_unarrow_sat32, i32, env, i64)
309DEF_HELPER_2(neon_narrow_sat_u32, i32, env, i64)
310DEF_HELPER_2(neon_narrow_sat_s32, i32, env, i64)
311DEF_HELPER_1(neon_narrow_high_u8, i32, i64)
312DEF_HELPER_1(neon_narrow_high_u16, i32, i64)
313DEF_HELPER_1(neon_narrow_round_high_u8, i32, i64)
314DEF_HELPER_1(neon_narrow_round_high_u16, i32, i64)
315DEF_HELPER_1(neon_widen_u8, i64, i32)
316DEF_HELPER_1(neon_widen_s8, i64, i32)
317DEF_HELPER_1(neon_widen_u16, i64, i32)
318DEF_HELPER_1(neon_widen_s16, i64, i32)
319
320DEF_HELPER_2(neon_addl_u16, i64, i64, i64)
321DEF_HELPER_2(neon_addl_u32, i64, i64, i64)
322DEF_HELPER_2(neon_paddl_u16, i64, i64, i64)
323DEF_HELPER_2(neon_paddl_u32, i64, i64, i64)
324DEF_HELPER_2(neon_subl_u16, i64, i64, i64)
325DEF_HELPER_2(neon_subl_u32, i64, i64, i64)
326DEF_HELPER_3(neon_addl_saturate_s32, i64, env, i64, i64)
327DEF_HELPER_3(neon_addl_saturate_s64, i64, env, i64, i64)
328DEF_HELPER_2(neon_abdl_u16, i64, i32, i32)
329DEF_HELPER_2(neon_abdl_s16, i64, i32, i32)
330DEF_HELPER_2(neon_abdl_u32, i64, i32, i32)
331DEF_HELPER_2(neon_abdl_s32, i64, i32, i32)
332DEF_HELPER_2(neon_abdl_u64, i64, i32, i32)
333DEF_HELPER_2(neon_abdl_s64, i64, i32, i32)
334DEF_HELPER_2(neon_mull_u8, i64, i32, i32)
335DEF_HELPER_2(neon_mull_s8, i64, i32, i32)
336DEF_HELPER_2(neon_mull_u16, i64, i32, i32)
337DEF_HELPER_2(neon_mull_s16, i64, i32, i32)
338
339DEF_HELPER_1(neon_negl_u16, i64, i64)
340DEF_HELPER_1(neon_negl_u32, i64, i64)
341
342DEF_HELPER_2(neon_qabs_s8, i32, env, i32)
343DEF_HELPER_2(neon_qabs_s16, i32, env, i32)
344DEF_HELPER_2(neon_qabs_s32, i32, env, i32)
345DEF_HELPER_2(neon_qneg_s8, i32, env, i32)
346DEF_HELPER_2(neon_qneg_s16, i32, env, i32)
347DEF_HELPER_2(neon_qneg_s32, i32, env, i32)
348
349DEF_HELPER_3(neon_min_f32, i32, i32, i32, ptr)
350DEF_HELPER_3(neon_max_f32, i32, i32, i32, ptr)
351DEF_HELPER_3(neon_abd_f32, i32, i32, i32, ptr)
352DEF_HELPER_3(neon_ceq_f32, i32, i32, i32, ptr)
353DEF_HELPER_3(neon_cge_f32, i32, i32, i32, ptr)
354DEF_HELPER_3(neon_cgt_f32, i32, i32, i32, ptr)
355DEF_HELPER_3(neon_acge_f32, i32, i32, i32, ptr)
356DEF_HELPER_3(neon_acgt_f32, i32, i32, i32, ptr)
357
358
359DEF_HELPER_2(iwmmxt_maddsq, i64, i64, i64)
360DEF_HELPER_2(iwmmxt_madduq, i64, i64, i64)
361DEF_HELPER_2(iwmmxt_sadb, i64, i64, i64)
362DEF_HELPER_2(iwmmxt_sadw, i64, i64, i64)
363DEF_HELPER_2(iwmmxt_mulslw, i64, i64, i64)
364DEF_HELPER_2(iwmmxt_mulshw, i64, i64, i64)
365DEF_HELPER_2(iwmmxt_mululw, i64, i64, i64)
366DEF_HELPER_2(iwmmxt_muluhw, i64, i64, i64)
367DEF_HELPER_2(iwmmxt_macsw, i64, i64, i64)
368DEF_HELPER_2(iwmmxt_macuw, i64, i64, i64)
369DEF_HELPER_1(iwmmxt_setpsr_nz, i32, i64)
370
371#define DEF_IWMMXT_HELPER_SIZE_ENV(name) \
372DEF_HELPER_3(iwmmxt_##name##b, i64, env, i64, i64) \
373DEF_HELPER_3(iwmmxt_##name##w, i64, env, i64, i64) \
374DEF_HELPER_3(iwmmxt_##name##l, i64, env, i64, i64) \
375
376DEF_IWMMXT_HELPER_SIZE_ENV(unpackl)
377DEF_IWMMXT_HELPER_SIZE_ENV(unpackh)
378
379DEF_HELPER_2(iwmmxt_unpacklub, i64, env, i64)
380DEF_HELPER_2(iwmmxt_unpackluw, i64, env, i64)
381DEF_HELPER_2(iwmmxt_unpacklul, i64, env, i64)
382DEF_HELPER_2(iwmmxt_unpackhub, i64, env, i64)
383DEF_HELPER_2(iwmmxt_unpackhuw, i64, env, i64)
384DEF_HELPER_2(iwmmxt_unpackhul, i64, env, i64)
385DEF_HELPER_2(iwmmxt_unpacklsb, i64, env, i64)
386DEF_HELPER_2(iwmmxt_unpacklsw, i64, env, i64)
387DEF_HELPER_2(iwmmxt_unpacklsl, i64, env, i64)
388DEF_HELPER_2(iwmmxt_unpackhsb, i64, env, i64)
389DEF_HELPER_2(iwmmxt_unpackhsw, i64, env, i64)
390DEF_HELPER_2(iwmmxt_unpackhsl, i64, env, i64)
391
392DEF_IWMMXT_HELPER_SIZE_ENV(cmpeq)
393DEF_IWMMXT_HELPER_SIZE_ENV(cmpgtu)
394DEF_IWMMXT_HELPER_SIZE_ENV(cmpgts)
395
396DEF_IWMMXT_HELPER_SIZE_ENV(mins)
397DEF_IWMMXT_HELPER_SIZE_ENV(minu)
398DEF_IWMMXT_HELPER_SIZE_ENV(maxs)
399DEF_IWMMXT_HELPER_SIZE_ENV(maxu)
400
401DEF_IWMMXT_HELPER_SIZE_ENV(subn)
402DEF_IWMMXT_HELPER_SIZE_ENV(addn)
403DEF_IWMMXT_HELPER_SIZE_ENV(subu)
404DEF_IWMMXT_HELPER_SIZE_ENV(addu)
405DEF_IWMMXT_HELPER_SIZE_ENV(subs)
406DEF_IWMMXT_HELPER_SIZE_ENV(adds)
407
408DEF_HELPER_3(iwmmxt_avgb0, i64, env, i64, i64)
409DEF_HELPER_3(iwmmxt_avgb1, i64, env, i64, i64)
410DEF_HELPER_3(iwmmxt_avgw0, i64, env, i64, i64)
411DEF_HELPER_3(iwmmxt_avgw1, i64, env, i64, i64)
412
413DEF_HELPER_2(iwmmxt_msadb, i64, i64, i64)
414
415DEF_HELPER_3(iwmmxt_align, i64, i64, i64, i32)
416DEF_HELPER_4(iwmmxt_insr, i64, i64, i32, i32, i32)
417
418DEF_HELPER_1(iwmmxt_bcstb, i64, i32)
419DEF_HELPER_1(iwmmxt_bcstw, i64, i32)
420DEF_HELPER_1(iwmmxt_bcstl, i64, i32)
421
422DEF_HELPER_1(iwmmxt_addcb, i64, i64)
423DEF_HELPER_1(iwmmxt_addcw, i64, i64)
424DEF_HELPER_1(iwmmxt_addcl, i64, i64)
425
426DEF_HELPER_1(iwmmxt_msbb, i32, i64)
427DEF_HELPER_1(iwmmxt_msbw, i32, i64)
428DEF_HELPER_1(iwmmxt_msbl, i32, i64)
429
430DEF_HELPER_3(iwmmxt_srlw, i64, env, i64, i32)
431DEF_HELPER_3(iwmmxt_srll, i64, env, i64, i32)
432DEF_HELPER_3(iwmmxt_srlq, i64, env, i64, i32)
433DEF_HELPER_3(iwmmxt_sllw, i64, env, i64, i32)
434DEF_HELPER_3(iwmmxt_slll, i64, env, i64, i32)
435DEF_HELPER_3(iwmmxt_sllq, i64, env, i64, i32)
436DEF_HELPER_3(iwmmxt_sraw, i64, env, i64, i32)
437DEF_HELPER_3(iwmmxt_sral, i64, env, i64, i32)
438DEF_HELPER_3(iwmmxt_sraq, i64, env, i64, i32)
439DEF_HELPER_3(iwmmxt_rorw, i64, env, i64, i32)
440DEF_HELPER_3(iwmmxt_rorl, i64, env, i64, i32)
441DEF_HELPER_3(iwmmxt_rorq, i64, env, i64, i32)
442DEF_HELPER_3(iwmmxt_shufh, i64, env, i64, i32)
443
444DEF_HELPER_3(iwmmxt_packuw, i64, env, i64, i64)
445DEF_HELPER_3(iwmmxt_packul, i64, env, i64, i64)
446DEF_HELPER_3(iwmmxt_packuq, i64, env, i64, i64)
447DEF_HELPER_3(iwmmxt_packsw, i64, env, i64, i64)
448DEF_HELPER_3(iwmmxt_packsl, i64, env, i64, i64)
449DEF_HELPER_3(iwmmxt_packsq, i64, env, i64, i64)
450
451DEF_HELPER_3(iwmmxt_muladdsl, i64, i64, i32, i32)
452DEF_HELPER_3(iwmmxt_muladdsw, i64, i64, i32, i32)
453DEF_HELPER_3(iwmmxt_muladdswl, i64, i64, i32, i32)
454
455DEF_HELPER_3(neon_unzip8, void, env, i32, i32)
456DEF_HELPER_3(neon_unzip16, void, env, i32, i32)
457DEF_HELPER_3(neon_qunzip8, void, env, i32, i32)
458DEF_HELPER_3(neon_qunzip16, void, env, i32, i32)
459DEF_HELPER_3(neon_qunzip32, void, env, i32, i32)
460DEF_HELPER_3(neon_zip8, void, env, i32, i32)
461DEF_HELPER_3(neon_zip16, void, env, i32, i32)
462DEF_HELPER_3(neon_qzip8, void, env, i32, i32)
463DEF_HELPER_3(neon_qzip16, void, env, i32, i32)
464DEF_HELPER_3(neon_qzip32, void, env, i32, i32)
465
466#include "exec/def-helper.h"
467