xref: /openbmc/qemu/target/arm/helper.h (revision 59a3a1c0)
1 DEF_HELPER_FLAGS_1(sxtb16, TCG_CALL_NO_RWG_SE, i32, i32)
2 DEF_HELPER_FLAGS_1(uxtb16, TCG_CALL_NO_RWG_SE, i32, i32)
3 
4 DEF_HELPER_3(add_setq, i32, env, i32, i32)
5 DEF_HELPER_3(add_saturate, i32, env, i32, i32)
6 DEF_HELPER_3(sub_saturate, i32, env, i32, i32)
7 DEF_HELPER_3(add_usaturate, i32, env, i32, i32)
8 DEF_HELPER_3(sub_usaturate, i32, env, i32, i32)
9 DEF_HELPER_FLAGS_2(sdiv, TCG_CALL_NO_RWG_SE, s32, s32, s32)
10 DEF_HELPER_FLAGS_2(udiv, TCG_CALL_NO_RWG_SE, i32, i32, i32)
11 DEF_HELPER_FLAGS_1(rbit, TCG_CALL_NO_RWG_SE, i32, i32)
12 
13 #define PAS_OP(pfx)  \
14     DEF_HELPER_3(pfx ## add8, i32, i32, i32, ptr) \
15     DEF_HELPER_3(pfx ## sub8, i32, i32, i32, ptr) \
16     DEF_HELPER_3(pfx ## sub16, i32, i32, i32, ptr) \
17     DEF_HELPER_3(pfx ## add16, i32, i32, i32, ptr) \
18     DEF_HELPER_3(pfx ## addsubx, i32, i32, i32, ptr) \
19     DEF_HELPER_3(pfx ## subaddx, i32, i32, i32, ptr)
20 
21 PAS_OP(s)
22 PAS_OP(u)
23 #undef PAS_OP
24 
25 #define PAS_OP(pfx)  \
26     DEF_HELPER_2(pfx ## add8, i32, i32, i32) \
27     DEF_HELPER_2(pfx ## sub8, i32, i32, i32) \
28     DEF_HELPER_2(pfx ## sub16, i32, i32, i32) \
29     DEF_HELPER_2(pfx ## add16, i32, i32, i32) \
30     DEF_HELPER_2(pfx ## addsubx, i32, i32, i32) \
31     DEF_HELPER_2(pfx ## subaddx, i32, i32, i32)
32 PAS_OP(q)
33 PAS_OP(sh)
34 PAS_OP(uq)
35 PAS_OP(uh)
36 #undef PAS_OP
37 
38 DEF_HELPER_3(ssat, i32, env, i32, i32)
39 DEF_HELPER_3(usat, i32, env, i32, i32)
40 DEF_HELPER_3(ssat16, i32, env, i32, i32)
41 DEF_HELPER_3(usat16, i32, env, i32, i32)
42 
43 DEF_HELPER_FLAGS_2(usad8, TCG_CALL_NO_RWG_SE, i32, i32, i32)
44 
45 DEF_HELPER_FLAGS_3(sel_flags, TCG_CALL_NO_RWG_SE,
46                    i32, i32, i32, i32)
47 DEF_HELPER_2(exception_internal, void, env, i32)
48 DEF_HELPER_4(exception_with_syndrome, void, env, i32, i32, i32)
49 DEF_HELPER_2(exception_bkpt_insn, void, env, i32)
50 DEF_HELPER_1(setend, void, env)
51 DEF_HELPER_2(wfi, void, env, i32)
52 DEF_HELPER_1(wfe, void, env)
53 DEF_HELPER_1(yield, void, env)
54 DEF_HELPER_1(pre_hvc, void, env)
55 DEF_HELPER_2(pre_smc, void, env, i32)
56 
57 DEF_HELPER_1(check_breakpoints, void, env)
58 
59 DEF_HELPER_3(cpsr_write, void, env, i32, i32)
60 DEF_HELPER_2(cpsr_write_eret, void, env, i32)
61 DEF_HELPER_1(cpsr_read, i32, env)
62 
63 DEF_HELPER_3(v7m_msr, void, env, i32, i32)
64 DEF_HELPER_2(v7m_mrs, i32, env, i32)
65 
66 DEF_HELPER_2(v7m_bxns, void, env, i32)
67 DEF_HELPER_2(v7m_blxns, void, env, i32)
68 
69 DEF_HELPER_3(v7m_tt, i32, env, i32, i32)
70 
71 DEF_HELPER_1(v7m_preserve_fp_state, void, env)
72 
73 DEF_HELPER_2(v7m_vlstm, void, env, i32)
74 DEF_HELPER_2(v7m_vlldm, void, env, i32)
75 
76 DEF_HELPER_2(v8m_stackcheck, void, env, i32)
77 
78 DEF_HELPER_4(access_check_cp_reg, void, env, ptr, i32, i32)
79 DEF_HELPER_3(set_cp_reg, void, env, ptr, i32)
80 DEF_HELPER_2(get_cp_reg, i32, env, ptr)
81 DEF_HELPER_3(set_cp_reg64, void, env, ptr, i64)
82 DEF_HELPER_2(get_cp_reg64, i64, env, ptr)
83 
84 DEF_HELPER_2(get_r13_banked, i32, env, i32)
85 DEF_HELPER_3(set_r13_banked, void, env, i32, i32)
86 
87 DEF_HELPER_3(mrs_banked, i32, env, i32, i32)
88 DEF_HELPER_4(msr_banked, void, env, i32, i32, i32)
89 
90 DEF_HELPER_2(get_user_reg, i32, env, i32)
91 DEF_HELPER_3(set_user_reg, void, env, i32, i32)
92 
93 DEF_HELPER_1(vfp_get_fpscr, i32, env)
94 DEF_HELPER_2(vfp_set_fpscr, void, env, i32)
95 
96 DEF_HELPER_3(vfp_adds, f32, f32, f32, ptr)
97 DEF_HELPER_3(vfp_addd, f64, f64, f64, ptr)
98 DEF_HELPER_3(vfp_subs, f32, f32, f32, ptr)
99 DEF_HELPER_3(vfp_subd, f64, f64, f64, ptr)
100 DEF_HELPER_3(vfp_muls, f32, f32, f32, ptr)
101 DEF_HELPER_3(vfp_muld, f64, f64, f64, ptr)
102 DEF_HELPER_3(vfp_divs, f32, f32, f32, ptr)
103 DEF_HELPER_3(vfp_divd, f64, f64, f64, ptr)
104 DEF_HELPER_3(vfp_maxs, f32, f32, f32, ptr)
105 DEF_HELPER_3(vfp_maxd, f64, f64, f64, ptr)
106 DEF_HELPER_3(vfp_mins, f32, f32, f32, ptr)
107 DEF_HELPER_3(vfp_mind, f64, f64, f64, ptr)
108 DEF_HELPER_3(vfp_maxnums, f32, f32, f32, ptr)
109 DEF_HELPER_3(vfp_maxnumd, f64, f64, f64, ptr)
110 DEF_HELPER_3(vfp_minnums, f32, f32, f32, ptr)
111 DEF_HELPER_3(vfp_minnumd, f64, f64, f64, ptr)
112 DEF_HELPER_1(vfp_negs, f32, f32)
113 DEF_HELPER_1(vfp_negd, f64, f64)
114 DEF_HELPER_1(vfp_abss, f32, f32)
115 DEF_HELPER_1(vfp_absd, f64, f64)
116 DEF_HELPER_2(vfp_sqrts, f32, f32, env)
117 DEF_HELPER_2(vfp_sqrtd, f64, f64, env)
118 DEF_HELPER_3(vfp_cmps, void, f32, f32, env)
119 DEF_HELPER_3(vfp_cmpd, void, f64, f64, env)
120 DEF_HELPER_3(vfp_cmpes, void, f32, f32, env)
121 DEF_HELPER_3(vfp_cmped, void, f64, f64, env)
122 
123 DEF_HELPER_2(vfp_fcvtds, f64, f32, env)
124 DEF_HELPER_2(vfp_fcvtsd, f32, f64, env)
125 
126 DEF_HELPER_2(vfp_uitoh, f16, i32, ptr)
127 DEF_HELPER_2(vfp_uitos, f32, i32, ptr)
128 DEF_HELPER_2(vfp_uitod, f64, i32, ptr)
129 DEF_HELPER_2(vfp_sitoh, f16, i32, ptr)
130 DEF_HELPER_2(vfp_sitos, f32, i32, ptr)
131 DEF_HELPER_2(vfp_sitod, f64, i32, ptr)
132 
133 DEF_HELPER_2(vfp_touih, i32, f16, ptr)
134 DEF_HELPER_2(vfp_touis, i32, f32, ptr)
135 DEF_HELPER_2(vfp_touid, i32, f64, ptr)
136 DEF_HELPER_2(vfp_touizh, i32, f16, ptr)
137 DEF_HELPER_2(vfp_touizs, i32, f32, ptr)
138 DEF_HELPER_2(vfp_touizd, i32, f64, ptr)
139 DEF_HELPER_2(vfp_tosih, s32, f16, ptr)
140 DEF_HELPER_2(vfp_tosis, s32, f32, ptr)
141 DEF_HELPER_2(vfp_tosid, s32, f64, ptr)
142 DEF_HELPER_2(vfp_tosizh, s32, f16, ptr)
143 DEF_HELPER_2(vfp_tosizs, s32, f32, ptr)
144 DEF_HELPER_2(vfp_tosizd, s32, f64, ptr)
145 
146 DEF_HELPER_3(vfp_toshs_round_to_zero, i32, f32, i32, ptr)
147 DEF_HELPER_3(vfp_tosls_round_to_zero, i32, f32, i32, ptr)
148 DEF_HELPER_3(vfp_touhs_round_to_zero, i32, f32, i32, ptr)
149 DEF_HELPER_3(vfp_touls_round_to_zero, i32, f32, i32, ptr)
150 DEF_HELPER_3(vfp_toshd_round_to_zero, i64, f64, i32, ptr)
151 DEF_HELPER_3(vfp_tosld_round_to_zero, i64, f64, i32, ptr)
152 DEF_HELPER_3(vfp_touhd_round_to_zero, i64, f64, i32, ptr)
153 DEF_HELPER_3(vfp_tould_round_to_zero, i64, f64, i32, ptr)
154 DEF_HELPER_3(vfp_touhh, i32, f16, i32, ptr)
155 DEF_HELPER_3(vfp_toshh, i32, f16, i32, ptr)
156 DEF_HELPER_3(vfp_toulh, i32, f16, i32, ptr)
157 DEF_HELPER_3(vfp_toslh, i32, f16, i32, ptr)
158 DEF_HELPER_3(vfp_touqh, i64, f16, i32, ptr)
159 DEF_HELPER_3(vfp_tosqh, i64, f16, i32, ptr)
160 DEF_HELPER_3(vfp_toshs, i32, f32, i32, ptr)
161 DEF_HELPER_3(vfp_tosls, i32, f32, i32, ptr)
162 DEF_HELPER_3(vfp_tosqs, i64, f32, i32, ptr)
163 DEF_HELPER_3(vfp_touhs, i32, f32, i32, ptr)
164 DEF_HELPER_3(vfp_touls, i32, f32, i32, ptr)
165 DEF_HELPER_3(vfp_touqs, i64, f32, i32, ptr)
166 DEF_HELPER_3(vfp_toshd, i64, f64, i32, ptr)
167 DEF_HELPER_3(vfp_tosld, i64, f64, i32, ptr)
168 DEF_HELPER_3(vfp_tosqd, i64, f64, i32, ptr)
169 DEF_HELPER_3(vfp_touhd, i64, f64, i32, ptr)
170 DEF_HELPER_3(vfp_tould, i64, f64, i32, ptr)
171 DEF_HELPER_3(vfp_touqd, i64, f64, i32, ptr)
172 DEF_HELPER_3(vfp_shtos, f32, i32, i32, ptr)
173 DEF_HELPER_3(vfp_sltos, f32, i32, i32, ptr)
174 DEF_HELPER_3(vfp_sqtos, f32, i64, i32, ptr)
175 DEF_HELPER_3(vfp_uhtos, f32, i32, i32, ptr)
176 DEF_HELPER_3(vfp_ultos, f32, i32, i32, ptr)
177 DEF_HELPER_3(vfp_uqtos, f32, i64, i32, ptr)
178 DEF_HELPER_3(vfp_shtod, f64, i64, i32, ptr)
179 DEF_HELPER_3(vfp_sltod, f64, i64, i32, ptr)
180 DEF_HELPER_3(vfp_sqtod, f64, i64, i32, ptr)
181 DEF_HELPER_3(vfp_uhtod, f64, i64, i32, ptr)
182 DEF_HELPER_3(vfp_ultod, f64, i64, i32, ptr)
183 DEF_HELPER_3(vfp_uqtod, f64, i64, i32, ptr)
184 DEF_HELPER_3(vfp_sltoh, f16, i32, i32, ptr)
185 DEF_HELPER_3(vfp_ultoh, f16, i32, i32, ptr)
186 DEF_HELPER_3(vfp_sqtoh, f16, i64, i32, ptr)
187 DEF_HELPER_3(vfp_uqtoh, f16, i64, i32, ptr)
188 
189 DEF_HELPER_FLAGS_2(set_rmode, TCG_CALL_NO_RWG, i32, i32, ptr)
190 DEF_HELPER_FLAGS_2(set_neon_rmode, TCG_CALL_NO_RWG, i32, i32, env)
191 
192 DEF_HELPER_FLAGS_3(vfp_fcvt_f16_to_f32, TCG_CALL_NO_RWG, f32, f16, ptr, i32)
193 DEF_HELPER_FLAGS_3(vfp_fcvt_f32_to_f16, TCG_CALL_NO_RWG, f16, f32, ptr, i32)
194 DEF_HELPER_FLAGS_3(vfp_fcvt_f16_to_f64, TCG_CALL_NO_RWG, f64, f16, ptr, i32)
195 DEF_HELPER_FLAGS_3(vfp_fcvt_f64_to_f16, TCG_CALL_NO_RWG, f16, f64, ptr, i32)
196 
197 DEF_HELPER_4(vfp_muladdd, f64, f64, f64, f64, ptr)
198 DEF_HELPER_4(vfp_muladds, f32, f32, f32, f32, ptr)
199 
200 DEF_HELPER_3(recps_f32, f32, f32, f32, env)
201 DEF_HELPER_3(rsqrts_f32, f32, f32, f32, env)
202 DEF_HELPER_FLAGS_2(recpe_f16, TCG_CALL_NO_RWG, f16, f16, ptr)
203 DEF_HELPER_FLAGS_2(recpe_f32, TCG_CALL_NO_RWG, f32, f32, ptr)
204 DEF_HELPER_FLAGS_2(recpe_f64, TCG_CALL_NO_RWG, f64, f64, ptr)
205 DEF_HELPER_FLAGS_2(rsqrte_f16, TCG_CALL_NO_RWG, f16, f16, ptr)
206 DEF_HELPER_FLAGS_2(rsqrte_f32, TCG_CALL_NO_RWG, f32, f32, ptr)
207 DEF_HELPER_FLAGS_2(rsqrte_f64, TCG_CALL_NO_RWG, f64, f64, ptr)
208 DEF_HELPER_2(recpe_u32, i32, i32, ptr)
209 DEF_HELPER_FLAGS_2(rsqrte_u32, TCG_CALL_NO_RWG, i32, i32, ptr)
210 DEF_HELPER_FLAGS_4(neon_tbl, TCG_CALL_NO_RWG, i32, i32, i32, ptr, i32)
211 
212 DEF_HELPER_3(shl_cc, i32, env, i32, i32)
213 DEF_HELPER_3(shr_cc, i32, env, i32, i32)
214 DEF_HELPER_3(sar_cc, i32, env, i32, i32)
215 DEF_HELPER_3(ror_cc, i32, env, i32, i32)
216 
217 DEF_HELPER_FLAGS_2(rints_exact, TCG_CALL_NO_RWG, f32, f32, ptr)
218 DEF_HELPER_FLAGS_2(rintd_exact, TCG_CALL_NO_RWG, f64, f64, ptr)
219 DEF_HELPER_FLAGS_2(rints, TCG_CALL_NO_RWG, f32, f32, ptr)
220 DEF_HELPER_FLAGS_2(rintd, TCG_CALL_NO_RWG, f64, f64, ptr)
221 
222 DEF_HELPER_FLAGS_2(vjcvt, TCG_CALL_NO_RWG, i32, f64, env)
223 DEF_HELPER_FLAGS_2(fjcvtzs, TCG_CALL_NO_RWG, i64, f64, ptr)
224 
225 /* neon_helper.c */
226 DEF_HELPER_FLAGS_3(neon_qadd_u8, TCG_CALL_NO_RWG, i32, env, i32, i32)
227 DEF_HELPER_FLAGS_3(neon_qadd_s8, TCG_CALL_NO_RWG, i32, env, i32, i32)
228 DEF_HELPER_FLAGS_3(neon_qadd_u16, TCG_CALL_NO_RWG, i32, env, i32, i32)
229 DEF_HELPER_FLAGS_3(neon_qadd_s16, TCG_CALL_NO_RWG, i32, env, i32, i32)
230 DEF_HELPER_FLAGS_3(neon_qadd_u32, TCG_CALL_NO_RWG, i32, env, i32, i32)
231 DEF_HELPER_FLAGS_3(neon_qadd_s32, TCG_CALL_NO_RWG, i32, env, i32, i32)
232 DEF_HELPER_FLAGS_3(neon_uqadd_s8, TCG_CALL_NO_RWG, i32, env, i32, i32)
233 DEF_HELPER_FLAGS_3(neon_uqadd_s16, TCG_CALL_NO_RWG, i32, env, i32, i32)
234 DEF_HELPER_FLAGS_3(neon_uqadd_s32, TCG_CALL_NO_RWG, i32, env, i32, i32)
235 DEF_HELPER_FLAGS_3(neon_uqadd_s64, TCG_CALL_NO_RWG, i64, env, i64, i64)
236 DEF_HELPER_FLAGS_3(neon_sqadd_u8, TCG_CALL_NO_RWG, i32, env, i32, i32)
237 DEF_HELPER_FLAGS_3(neon_sqadd_u16, TCG_CALL_NO_RWG, i32, env, i32, i32)
238 DEF_HELPER_FLAGS_3(neon_sqadd_u32, TCG_CALL_NO_RWG, i32, env, i32, i32)
239 DEF_HELPER_FLAGS_3(neon_sqadd_u64, TCG_CALL_NO_RWG, i64, env, i64, i64)
240 DEF_HELPER_3(neon_qsub_u8, i32, env, i32, i32)
241 DEF_HELPER_3(neon_qsub_s8, i32, env, i32, i32)
242 DEF_HELPER_3(neon_qsub_u16, i32, env, i32, i32)
243 DEF_HELPER_3(neon_qsub_s16, i32, env, i32, i32)
244 DEF_HELPER_3(neon_qsub_u32, i32, env, i32, i32)
245 DEF_HELPER_3(neon_qsub_s32, i32, env, i32, i32)
246 DEF_HELPER_3(neon_qadd_u64, i64, env, i64, i64)
247 DEF_HELPER_3(neon_qadd_s64, i64, env, i64, i64)
248 DEF_HELPER_3(neon_qsub_u64, i64, env, i64, i64)
249 DEF_HELPER_3(neon_qsub_s64, i64, env, i64, i64)
250 
251 DEF_HELPER_2(neon_hadd_s8, i32, i32, i32)
252 DEF_HELPER_2(neon_hadd_u8, i32, i32, i32)
253 DEF_HELPER_2(neon_hadd_s16, i32, i32, i32)
254 DEF_HELPER_2(neon_hadd_u16, i32, i32, i32)
255 DEF_HELPER_2(neon_hadd_s32, s32, s32, s32)
256 DEF_HELPER_2(neon_hadd_u32, i32, i32, i32)
257 DEF_HELPER_2(neon_rhadd_s8, i32, i32, i32)
258 DEF_HELPER_2(neon_rhadd_u8, i32, i32, i32)
259 DEF_HELPER_2(neon_rhadd_s16, i32, i32, i32)
260 DEF_HELPER_2(neon_rhadd_u16, i32, i32, i32)
261 DEF_HELPER_2(neon_rhadd_s32, s32, s32, s32)
262 DEF_HELPER_2(neon_rhadd_u32, i32, i32, i32)
263 DEF_HELPER_2(neon_hsub_s8, i32, i32, i32)
264 DEF_HELPER_2(neon_hsub_u8, i32, i32, i32)
265 DEF_HELPER_2(neon_hsub_s16, i32, i32, i32)
266 DEF_HELPER_2(neon_hsub_u16, i32, i32, i32)
267 DEF_HELPER_2(neon_hsub_s32, s32, s32, s32)
268 DEF_HELPER_2(neon_hsub_u32, i32, i32, i32)
269 
270 DEF_HELPER_2(neon_cgt_u8, i32, i32, i32)
271 DEF_HELPER_2(neon_cgt_s8, i32, i32, i32)
272 DEF_HELPER_2(neon_cgt_u16, i32, i32, i32)
273 DEF_HELPER_2(neon_cgt_s16, i32, i32, i32)
274 DEF_HELPER_2(neon_cgt_u32, i32, i32, i32)
275 DEF_HELPER_2(neon_cgt_s32, i32, i32, i32)
276 DEF_HELPER_2(neon_cge_u8, i32, i32, i32)
277 DEF_HELPER_2(neon_cge_s8, i32, i32, i32)
278 DEF_HELPER_2(neon_cge_u16, i32, i32, i32)
279 DEF_HELPER_2(neon_cge_s16, i32, i32, i32)
280 DEF_HELPER_2(neon_cge_u32, i32, i32, i32)
281 DEF_HELPER_2(neon_cge_s32, i32, i32, i32)
282 
283 DEF_HELPER_2(neon_pmin_u8, i32, i32, i32)
284 DEF_HELPER_2(neon_pmin_s8, i32, i32, i32)
285 DEF_HELPER_2(neon_pmin_u16, i32, i32, i32)
286 DEF_HELPER_2(neon_pmin_s16, i32, i32, i32)
287 DEF_HELPER_2(neon_pmax_u8, i32, i32, i32)
288 DEF_HELPER_2(neon_pmax_s8, i32, i32, i32)
289 DEF_HELPER_2(neon_pmax_u16, i32, i32, i32)
290 DEF_HELPER_2(neon_pmax_s16, i32, i32, i32)
291 
292 DEF_HELPER_2(neon_abd_u8, i32, i32, i32)
293 DEF_HELPER_2(neon_abd_s8, i32, i32, i32)
294 DEF_HELPER_2(neon_abd_u16, i32, i32, i32)
295 DEF_HELPER_2(neon_abd_s16, i32, i32, i32)
296 DEF_HELPER_2(neon_abd_u32, i32, i32, i32)
297 DEF_HELPER_2(neon_abd_s32, i32, i32, i32)
298 
299 DEF_HELPER_2(neon_shl_u8, i32, i32, i32)
300 DEF_HELPER_2(neon_shl_s8, i32, i32, i32)
301 DEF_HELPER_2(neon_shl_u16, i32, i32, i32)
302 DEF_HELPER_2(neon_shl_s16, i32, i32, i32)
303 DEF_HELPER_2(neon_shl_u32, i32, i32, i32)
304 DEF_HELPER_2(neon_shl_s32, i32, i32, i32)
305 DEF_HELPER_2(neon_shl_u64, i64, i64, i64)
306 DEF_HELPER_2(neon_shl_s64, i64, i64, i64)
307 DEF_HELPER_2(neon_rshl_u8, i32, i32, i32)
308 DEF_HELPER_2(neon_rshl_s8, i32, i32, i32)
309 DEF_HELPER_2(neon_rshl_u16, i32, i32, i32)
310 DEF_HELPER_2(neon_rshl_s16, i32, i32, i32)
311 DEF_HELPER_2(neon_rshl_u32, i32, i32, i32)
312 DEF_HELPER_2(neon_rshl_s32, i32, i32, i32)
313 DEF_HELPER_2(neon_rshl_u64, i64, i64, i64)
314 DEF_HELPER_2(neon_rshl_s64, i64, i64, i64)
315 DEF_HELPER_3(neon_qshl_u8, i32, env, i32, i32)
316 DEF_HELPER_3(neon_qshl_s8, i32, env, i32, i32)
317 DEF_HELPER_3(neon_qshl_u16, i32, env, i32, i32)
318 DEF_HELPER_3(neon_qshl_s16, i32, env, i32, i32)
319 DEF_HELPER_3(neon_qshl_u32, i32, env, i32, i32)
320 DEF_HELPER_3(neon_qshl_s32, i32, env, i32, i32)
321 DEF_HELPER_3(neon_qshl_u64, i64, env, i64, i64)
322 DEF_HELPER_3(neon_qshl_s64, i64, env, i64, i64)
323 DEF_HELPER_3(neon_qshlu_s8, i32, env, i32, i32)
324 DEF_HELPER_3(neon_qshlu_s16, i32, env, i32, i32)
325 DEF_HELPER_3(neon_qshlu_s32, i32, env, i32, i32)
326 DEF_HELPER_3(neon_qshlu_s64, i64, env, i64, i64)
327 DEF_HELPER_3(neon_qrshl_u8, i32, env, i32, i32)
328 DEF_HELPER_3(neon_qrshl_s8, i32, env, i32, i32)
329 DEF_HELPER_3(neon_qrshl_u16, i32, env, i32, i32)
330 DEF_HELPER_3(neon_qrshl_s16, i32, env, i32, i32)
331 DEF_HELPER_3(neon_qrshl_u32, i32, env, i32, i32)
332 DEF_HELPER_3(neon_qrshl_s32, i32, env, i32, i32)
333 DEF_HELPER_3(neon_qrshl_u64, i64, env, i64, i64)
334 DEF_HELPER_3(neon_qrshl_s64, i64, env, i64, i64)
335 
336 DEF_HELPER_2(neon_add_u8, i32, i32, i32)
337 DEF_HELPER_2(neon_add_u16, i32, i32, i32)
338 DEF_HELPER_2(neon_padd_u8, i32, i32, i32)
339 DEF_HELPER_2(neon_padd_u16, i32, i32, i32)
340 DEF_HELPER_2(neon_sub_u8, i32, i32, i32)
341 DEF_HELPER_2(neon_sub_u16, i32, i32, i32)
342 DEF_HELPER_2(neon_mul_u8, i32, i32, i32)
343 DEF_HELPER_2(neon_mul_u16, i32, i32, i32)
344 DEF_HELPER_2(neon_mul_p8, i32, i32, i32)
345 DEF_HELPER_2(neon_mull_p8, i64, i32, i32)
346 
347 DEF_HELPER_2(neon_tst_u8, i32, i32, i32)
348 DEF_HELPER_2(neon_tst_u16, i32, i32, i32)
349 DEF_HELPER_2(neon_tst_u32, i32, i32, i32)
350 DEF_HELPER_2(neon_ceq_u8, i32, i32, i32)
351 DEF_HELPER_2(neon_ceq_u16, i32, i32, i32)
352 DEF_HELPER_2(neon_ceq_u32, i32, i32, i32)
353 
354 DEF_HELPER_1(neon_clz_u8, i32, i32)
355 DEF_HELPER_1(neon_clz_u16, i32, i32)
356 DEF_HELPER_1(neon_cls_s8, i32, i32)
357 DEF_HELPER_1(neon_cls_s16, i32, i32)
358 DEF_HELPER_1(neon_cls_s32, i32, i32)
359 DEF_HELPER_1(neon_cnt_u8, i32, i32)
360 DEF_HELPER_FLAGS_1(neon_rbit_u8, TCG_CALL_NO_RWG_SE, i32, i32)
361 
362 DEF_HELPER_3(neon_qdmulh_s16, i32, env, i32, i32)
363 DEF_HELPER_3(neon_qrdmulh_s16, i32, env, i32, i32)
364 DEF_HELPER_4(neon_qrdmlah_s16, i32, env, i32, i32, i32)
365 DEF_HELPER_4(neon_qrdmlsh_s16, i32, env, i32, i32, i32)
366 DEF_HELPER_3(neon_qdmulh_s32, i32, env, i32, i32)
367 DEF_HELPER_3(neon_qrdmulh_s32, i32, env, i32, i32)
368 DEF_HELPER_4(neon_qrdmlah_s32, i32, env, s32, s32, s32)
369 DEF_HELPER_4(neon_qrdmlsh_s32, i32, env, s32, s32, s32)
370 
371 DEF_HELPER_1(neon_narrow_u8, i32, i64)
372 DEF_HELPER_1(neon_narrow_u16, i32, i64)
373 DEF_HELPER_2(neon_unarrow_sat8, i32, env, i64)
374 DEF_HELPER_2(neon_narrow_sat_u8, i32, env, i64)
375 DEF_HELPER_2(neon_narrow_sat_s8, i32, env, i64)
376 DEF_HELPER_2(neon_unarrow_sat16, i32, env, i64)
377 DEF_HELPER_2(neon_narrow_sat_u16, i32, env, i64)
378 DEF_HELPER_2(neon_narrow_sat_s16, i32, env, i64)
379 DEF_HELPER_2(neon_unarrow_sat32, i32, env, i64)
380 DEF_HELPER_2(neon_narrow_sat_u32, i32, env, i64)
381 DEF_HELPER_2(neon_narrow_sat_s32, i32, env, i64)
382 DEF_HELPER_1(neon_narrow_high_u8, i32, i64)
383 DEF_HELPER_1(neon_narrow_high_u16, i32, i64)
384 DEF_HELPER_1(neon_narrow_round_high_u8, i32, i64)
385 DEF_HELPER_1(neon_narrow_round_high_u16, i32, i64)
386 DEF_HELPER_1(neon_widen_u8, i64, i32)
387 DEF_HELPER_1(neon_widen_s8, i64, i32)
388 DEF_HELPER_1(neon_widen_u16, i64, i32)
389 DEF_HELPER_1(neon_widen_s16, i64, i32)
390 
391 DEF_HELPER_2(neon_addl_u16, i64, i64, i64)
392 DEF_HELPER_2(neon_addl_u32, i64, i64, i64)
393 DEF_HELPER_2(neon_paddl_u16, i64, i64, i64)
394 DEF_HELPER_2(neon_paddl_u32, i64, i64, i64)
395 DEF_HELPER_2(neon_subl_u16, i64, i64, i64)
396 DEF_HELPER_2(neon_subl_u32, i64, i64, i64)
397 DEF_HELPER_3(neon_addl_saturate_s32, i64, env, i64, i64)
398 DEF_HELPER_3(neon_addl_saturate_s64, i64, env, i64, i64)
399 DEF_HELPER_2(neon_abdl_u16, i64, i32, i32)
400 DEF_HELPER_2(neon_abdl_s16, i64, i32, i32)
401 DEF_HELPER_2(neon_abdl_u32, i64, i32, i32)
402 DEF_HELPER_2(neon_abdl_s32, i64, i32, i32)
403 DEF_HELPER_2(neon_abdl_u64, i64, i32, i32)
404 DEF_HELPER_2(neon_abdl_s64, i64, i32, i32)
405 DEF_HELPER_2(neon_mull_u8, i64, i32, i32)
406 DEF_HELPER_2(neon_mull_s8, i64, i32, i32)
407 DEF_HELPER_2(neon_mull_u16, i64, i32, i32)
408 DEF_HELPER_2(neon_mull_s16, i64, i32, i32)
409 
410 DEF_HELPER_1(neon_negl_u16, i64, i64)
411 DEF_HELPER_1(neon_negl_u32, i64, i64)
412 
413 DEF_HELPER_FLAGS_2(neon_qabs_s8, TCG_CALL_NO_RWG, i32, env, i32)
414 DEF_HELPER_FLAGS_2(neon_qabs_s16, TCG_CALL_NO_RWG, i32, env, i32)
415 DEF_HELPER_FLAGS_2(neon_qabs_s32, TCG_CALL_NO_RWG, i32, env, i32)
416 DEF_HELPER_FLAGS_2(neon_qabs_s64, TCG_CALL_NO_RWG, i64, env, i64)
417 DEF_HELPER_FLAGS_2(neon_qneg_s8, TCG_CALL_NO_RWG, i32, env, i32)
418 DEF_HELPER_FLAGS_2(neon_qneg_s16, TCG_CALL_NO_RWG, i32, env, i32)
419 DEF_HELPER_FLAGS_2(neon_qneg_s32, TCG_CALL_NO_RWG, i32, env, i32)
420 DEF_HELPER_FLAGS_2(neon_qneg_s64, TCG_CALL_NO_RWG, i64, env, i64)
421 
422 DEF_HELPER_3(neon_abd_f32, i32, i32, i32, ptr)
423 DEF_HELPER_3(neon_ceq_f32, i32, i32, i32, ptr)
424 DEF_HELPER_3(neon_cge_f32, i32, i32, i32, ptr)
425 DEF_HELPER_3(neon_cgt_f32, i32, i32, i32, ptr)
426 DEF_HELPER_3(neon_acge_f32, i32, i32, i32, ptr)
427 DEF_HELPER_3(neon_acgt_f32, i32, i32, i32, ptr)
428 DEF_HELPER_3(neon_acge_f64, i64, i64, i64, ptr)
429 DEF_HELPER_3(neon_acgt_f64, i64, i64, i64, ptr)
430 
431 /* iwmmxt_helper.c */
432 DEF_HELPER_2(iwmmxt_maddsq, i64, i64, i64)
433 DEF_HELPER_2(iwmmxt_madduq, i64, i64, i64)
434 DEF_HELPER_2(iwmmxt_sadb, i64, i64, i64)
435 DEF_HELPER_2(iwmmxt_sadw, i64, i64, i64)
436 DEF_HELPER_2(iwmmxt_mulslw, i64, i64, i64)
437 DEF_HELPER_2(iwmmxt_mulshw, i64, i64, i64)
438 DEF_HELPER_2(iwmmxt_mululw, i64, i64, i64)
439 DEF_HELPER_2(iwmmxt_muluhw, i64, i64, i64)
440 DEF_HELPER_2(iwmmxt_macsw, i64, i64, i64)
441 DEF_HELPER_2(iwmmxt_macuw, i64, i64, i64)
442 DEF_HELPER_1(iwmmxt_setpsr_nz, i32, i64)
443 
444 #define DEF_IWMMXT_HELPER_SIZE_ENV(name) \
445 DEF_HELPER_3(iwmmxt_##name##b, i64, env, i64, i64) \
446 DEF_HELPER_3(iwmmxt_##name##w, i64, env, i64, i64) \
447 DEF_HELPER_3(iwmmxt_##name##l, i64, env, i64, i64) \
448 
449 DEF_IWMMXT_HELPER_SIZE_ENV(unpackl)
450 DEF_IWMMXT_HELPER_SIZE_ENV(unpackh)
451 
452 DEF_HELPER_2(iwmmxt_unpacklub, i64, env, i64)
453 DEF_HELPER_2(iwmmxt_unpackluw, i64, env, i64)
454 DEF_HELPER_2(iwmmxt_unpacklul, i64, env, i64)
455 DEF_HELPER_2(iwmmxt_unpackhub, i64, env, i64)
456 DEF_HELPER_2(iwmmxt_unpackhuw, i64, env, i64)
457 DEF_HELPER_2(iwmmxt_unpackhul, i64, env, i64)
458 DEF_HELPER_2(iwmmxt_unpacklsb, i64, env, i64)
459 DEF_HELPER_2(iwmmxt_unpacklsw, i64, env, i64)
460 DEF_HELPER_2(iwmmxt_unpacklsl, i64, env, i64)
461 DEF_HELPER_2(iwmmxt_unpackhsb, i64, env, i64)
462 DEF_HELPER_2(iwmmxt_unpackhsw, i64, env, i64)
463 DEF_HELPER_2(iwmmxt_unpackhsl, i64, env, i64)
464 
465 DEF_IWMMXT_HELPER_SIZE_ENV(cmpeq)
466 DEF_IWMMXT_HELPER_SIZE_ENV(cmpgtu)
467 DEF_IWMMXT_HELPER_SIZE_ENV(cmpgts)
468 
469 DEF_IWMMXT_HELPER_SIZE_ENV(mins)
470 DEF_IWMMXT_HELPER_SIZE_ENV(minu)
471 DEF_IWMMXT_HELPER_SIZE_ENV(maxs)
472 DEF_IWMMXT_HELPER_SIZE_ENV(maxu)
473 
474 DEF_IWMMXT_HELPER_SIZE_ENV(subn)
475 DEF_IWMMXT_HELPER_SIZE_ENV(addn)
476 DEF_IWMMXT_HELPER_SIZE_ENV(subu)
477 DEF_IWMMXT_HELPER_SIZE_ENV(addu)
478 DEF_IWMMXT_HELPER_SIZE_ENV(subs)
479 DEF_IWMMXT_HELPER_SIZE_ENV(adds)
480 
481 DEF_HELPER_3(iwmmxt_avgb0, i64, env, i64, i64)
482 DEF_HELPER_3(iwmmxt_avgb1, i64, env, i64, i64)
483 DEF_HELPER_3(iwmmxt_avgw0, i64, env, i64, i64)
484 DEF_HELPER_3(iwmmxt_avgw1, i64, env, i64, i64)
485 
486 DEF_HELPER_3(iwmmxt_align, i64, i64, i64, i32)
487 DEF_HELPER_4(iwmmxt_insr, i64, i64, i32, i32, i32)
488 
489 DEF_HELPER_1(iwmmxt_bcstb, i64, i32)
490 DEF_HELPER_1(iwmmxt_bcstw, i64, i32)
491 DEF_HELPER_1(iwmmxt_bcstl, i64, i32)
492 
493 DEF_HELPER_1(iwmmxt_addcb, i64, i64)
494 DEF_HELPER_1(iwmmxt_addcw, i64, i64)
495 DEF_HELPER_1(iwmmxt_addcl, i64, i64)
496 
497 DEF_HELPER_1(iwmmxt_msbb, i32, i64)
498 DEF_HELPER_1(iwmmxt_msbw, i32, i64)
499 DEF_HELPER_1(iwmmxt_msbl, i32, i64)
500 
501 DEF_HELPER_3(iwmmxt_srlw, i64, env, i64, i32)
502 DEF_HELPER_3(iwmmxt_srll, i64, env, i64, i32)
503 DEF_HELPER_3(iwmmxt_srlq, i64, env, i64, i32)
504 DEF_HELPER_3(iwmmxt_sllw, i64, env, i64, i32)
505 DEF_HELPER_3(iwmmxt_slll, i64, env, i64, i32)
506 DEF_HELPER_3(iwmmxt_sllq, i64, env, i64, i32)
507 DEF_HELPER_3(iwmmxt_sraw, i64, env, i64, i32)
508 DEF_HELPER_3(iwmmxt_sral, i64, env, i64, i32)
509 DEF_HELPER_3(iwmmxt_sraq, i64, env, i64, i32)
510 DEF_HELPER_3(iwmmxt_rorw, i64, env, i64, i32)
511 DEF_HELPER_3(iwmmxt_rorl, i64, env, i64, i32)
512 DEF_HELPER_3(iwmmxt_rorq, i64, env, i64, i32)
513 DEF_HELPER_3(iwmmxt_shufh, i64, env, i64, i32)
514 
515 DEF_HELPER_3(iwmmxt_packuw, i64, env, i64, i64)
516 DEF_HELPER_3(iwmmxt_packul, i64, env, i64, i64)
517 DEF_HELPER_3(iwmmxt_packuq, i64, env, i64, i64)
518 DEF_HELPER_3(iwmmxt_packsw, i64, env, i64, i64)
519 DEF_HELPER_3(iwmmxt_packsl, i64, env, i64, i64)
520 DEF_HELPER_3(iwmmxt_packsq, i64, env, i64, i64)
521 
522 DEF_HELPER_3(iwmmxt_muladdsl, i64, i64, i32, i32)
523 DEF_HELPER_3(iwmmxt_muladdsw, i64, i64, i32, i32)
524 DEF_HELPER_3(iwmmxt_muladdswl, i64, i64, i32, i32)
525 
526 DEF_HELPER_FLAGS_2(neon_unzip8, TCG_CALL_NO_RWG, void, ptr, ptr)
527 DEF_HELPER_FLAGS_2(neon_unzip16, TCG_CALL_NO_RWG, void, ptr, ptr)
528 DEF_HELPER_FLAGS_2(neon_qunzip8, TCG_CALL_NO_RWG, void, ptr, ptr)
529 DEF_HELPER_FLAGS_2(neon_qunzip16, TCG_CALL_NO_RWG, void, ptr, ptr)
530 DEF_HELPER_FLAGS_2(neon_qunzip32, TCG_CALL_NO_RWG, void, ptr, ptr)
531 DEF_HELPER_FLAGS_2(neon_zip8, TCG_CALL_NO_RWG, void, ptr, ptr)
532 DEF_HELPER_FLAGS_2(neon_zip16, TCG_CALL_NO_RWG, void, ptr, ptr)
533 DEF_HELPER_FLAGS_2(neon_qzip8, TCG_CALL_NO_RWG, void, ptr, ptr)
534 DEF_HELPER_FLAGS_2(neon_qzip16, TCG_CALL_NO_RWG, void, ptr, ptr)
535 DEF_HELPER_FLAGS_2(neon_qzip32, TCG_CALL_NO_RWG, void, ptr, ptr)
536 
537 DEF_HELPER_FLAGS_3(crypto_aese, TCG_CALL_NO_RWG, void, ptr, ptr, i32)
538 DEF_HELPER_FLAGS_3(crypto_aesmc, TCG_CALL_NO_RWG, void, ptr, ptr, i32)
539 
540 DEF_HELPER_FLAGS_4(crypto_sha1_3reg, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32)
541 DEF_HELPER_FLAGS_2(crypto_sha1h, TCG_CALL_NO_RWG, void, ptr, ptr)
542 DEF_HELPER_FLAGS_2(crypto_sha1su1, TCG_CALL_NO_RWG, void, ptr, ptr)
543 
544 DEF_HELPER_FLAGS_3(crypto_sha256h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr)
545 DEF_HELPER_FLAGS_3(crypto_sha256h2, TCG_CALL_NO_RWG, void, ptr, ptr, ptr)
546 DEF_HELPER_FLAGS_2(crypto_sha256su0, TCG_CALL_NO_RWG, void, ptr, ptr)
547 DEF_HELPER_FLAGS_3(crypto_sha256su1, TCG_CALL_NO_RWG, void, ptr, ptr, ptr)
548 
549 DEF_HELPER_FLAGS_3(crypto_sha512h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr)
550 DEF_HELPER_FLAGS_3(crypto_sha512h2, TCG_CALL_NO_RWG, void, ptr, ptr, ptr)
551 DEF_HELPER_FLAGS_2(crypto_sha512su0, TCG_CALL_NO_RWG, void, ptr, ptr)
552 DEF_HELPER_FLAGS_3(crypto_sha512su1, TCG_CALL_NO_RWG, void, ptr, ptr, ptr)
553 
554 DEF_HELPER_FLAGS_5(crypto_sm3tt, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32, i32)
555 DEF_HELPER_FLAGS_3(crypto_sm3partw1, TCG_CALL_NO_RWG, void, ptr, ptr, ptr)
556 DEF_HELPER_FLAGS_3(crypto_sm3partw2, TCG_CALL_NO_RWG, void, ptr, ptr, ptr)
557 
558 DEF_HELPER_FLAGS_2(crypto_sm4e, TCG_CALL_NO_RWG, void, ptr, ptr)
559 DEF_HELPER_FLAGS_3(crypto_sm4ekey, TCG_CALL_NO_RWG, void, ptr, ptr, ptr)
560 
561 DEF_HELPER_FLAGS_3(crc32, TCG_CALL_NO_RWG_SE, i32, i32, i32, i32)
562 DEF_HELPER_FLAGS_3(crc32c, TCG_CALL_NO_RWG_SE, i32, i32, i32, i32)
563 DEF_HELPER_2(dc_zva, void, env, i64)
564 
565 DEF_HELPER_FLAGS_2(neon_pmull_64_lo, TCG_CALL_NO_RWG_SE, i64, i64, i64)
566 DEF_HELPER_FLAGS_2(neon_pmull_64_hi, TCG_CALL_NO_RWG_SE, i64, i64, i64)
567 
568 DEF_HELPER_FLAGS_5(gvec_qrdmlah_s16, TCG_CALL_NO_RWG,
569                    void, ptr, ptr, ptr, ptr, i32)
570 DEF_HELPER_FLAGS_5(gvec_qrdmlsh_s16, TCG_CALL_NO_RWG,
571                    void, ptr, ptr, ptr, ptr, i32)
572 DEF_HELPER_FLAGS_5(gvec_qrdmlah_s32, TCG_CALL_NO_RWG,
573                    void, ptr, ptr, ptr, ptr, i32)
574 DEF_HELPER_FLAGS_5(gvec_qrdmlsh_s32, TCG_CALL_NO_RWG,
575                    void, ptr, ptr, ptr, ptr, i32)
576 
577 DEF_HELPER_FLAGS_4(gvec_sdot_b, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32)
578 DEF_HELPER_FLAGS_4(gvec_udot_b, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32)
579 DEF_HELPER_FLAGS_4(gvec_sdot_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32)
580 DEF_HELPER_FLAGS_4(gvec_udot_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32)
581 
582 DEF_HELPER_FLAGS_4(gvec_sdot_idx_b, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32)
583 DEF_HELPER_FLAGS_4(gvec_udot_idx_b, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32)
584 DEF_HELPER_FLAGS_4(gvec_sdot_idx_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32)
585 DEF_HELPER_FLAGS_4(gvec_udot_idx_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32)
586 
587 DEF_HELPER_FLAGS_5(gvec_fcaddh, TCG_CALL_NO_RWG,
588                    void, ptr, ptr, ptr, ptr, i32)
589 DEF_HELPER_FLAGS_5(gvec_fcadds, TCG_CALL_NO_RWG,
590                    void, ptr, ptr, ptr, ptr, i32)
591 DEF_HELPER_FLAGS_5(gvec_fcaddd, TCG_CALL_NO_RWG,
592                    void, ptr, ptr, ptr, ptr, i32)
593 
594 DEF_HELPER_FLAGS_5(gvec_fcmlah, TCG_CALL_NO_RWG,
595                    void, ptr, ptr, ptr, ptr, i32)
596 DEF_HELPER_FLAGS_5(gvec_fcmlah_idx, TCG_CALL_NO_RWG,
597                    void, ptr, ptr, ptr, ptr, i32)
598 DEF_HELPER_FLAGS_5(gvec_fcmlas, TCG_CALL_NO_RWG,
599                    void, ptr, ptr, ptr, ptr, i32)
600 DEF_HELPER_FLAGS_5(gvec_fcmlas_idx, TCG_CALL_NO_RWG,
601                    void, ptr, ptr, ptr, ptr, i32)
602 DEF_HELPER_FLAGS_5(gvec_fcmlad, TCG_CALL_NO_RWG,
603                    void, ptr, ptr, ptr, ptr, i32)
604 
605 DEF_HELPER_FLAGS_4(gvec_frecpe_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32)
606 DEF_HELPER_FLAGS_4(gvec_frecpe_s, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32)
607 DEF_HELPER_FLAGS_4(gvec_frecpe_d, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32)
608 
609 DEF_HELPER_FLAGS_4(gvec_frsqrte_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32)
610 DEF_HELPER_FLAGS_4(gvec_frsqrte_s, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32)
611 DEF_HELPER_FLAGS_4(gvec_frsqrte_d, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32)
612 
613 DEF_HELPER_FLAGS_5(gvec_fadd_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, ptr, i32)
614 DEF_HELPER_FLAGS_5(gvec_fadd_s, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, ptr, i32)
615 DEF_HELPER_FLAGS_5(gvec_fadd_d, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, ptr, i32)
616 
617 DEF_HELPER_FLAGS_5(gvec_fsub_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, ptr, i32)
618 DEF_HELPER_FLAGS_5(gvec_fsub_s, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, ptr, i32)
619 DEF_HELPER_FLAGS_5(gvec_fsub_d, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, ptr, i32)
620 
621 DEF_HELPER_FLAGS_5(gvec_fmul_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, ptr, i32)
622 DEF_HELPER_FLAGS_5(gvec_fmul_s, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, ptr, i32)
623 DEF_HELPER_FLAGS_5(gvec_fmul_d, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, ptr, i32)
624 
625 DEF_HELPER_FLAGS_5(gvec_ftsmul_h, TCG_CALL_NO_RWG,
626                    void, ptr, ptr, ptr, ptr, i32)
627 DEF_HELPER_FLAGS_5(gvec_ftsmul_s, TCG_CALL_NO_RWG,
628                    void, ptr, ptr, ptr, ptr, i32)
629 DEF_HELPER_FLAGS_5(gvec_ftsmul_d, TCG_CALL_NO_RWG,
630                    void, ptr, ptr, ptr, ptr, i32)
631 
632 DEF_HELPER_FLAGS_5(gvec_fmul_idx_h, TCG_CALL_NO_RWG,
633                    void, ptr, ptr, ptr, ptr, i32)
634 DEF_HELPER_FLAGS_5(gvec_fmul_idx_s, TCG_CALL_NO_RWG,
635                    void, ptr, ptr, ptr, ptr, i32)
636 DEF_HELPER_FLAGS_5(gvec_fmul_idx_d, TCG_CALL_NO_RWG,
637                    void, ptr, ptr, ptr, ptr, i32)
638 
639 DEF_HELPER_FLAGS_6(gvec_fmla_idx_h, TCG_CALL_NO_RWG,
640                    void, ptr, ptr, ptr, ptr, ptr, i32)
641 DEF_HELPER_FLAGS_6(gvec_fmla_idx_s, TCG_CALL_NO_RWG,
642                    void, ptr, ptr, ptr, ptr, ptr, i32)
643 DEF_HELPER_FLAGS_6(gvec_fmla_idx_d, TCG_CALL_NO_RWG,
644                    void, ptr, ptr, ptr, ptr, ptr, i32)
645 
646 DEF_HELPER_FLAGS_5(gvec_uqadd_b, TCG_CALL_NO_RWG,
647                    void, ptr, ptr, ptr, ptr, i32)
648 DEF_HELPER_FLAGS_5(gvec_uqadd_h, TCG_CALL_NO_RWG,
649                    void, ptr, ptr, ptr, ptr, i32)
650 DEF_HELPER_FLAGS_5(gvec_uqadd_s, TCG_CALL_NO_RWG,
651                    void, ptr, ptr, ptr, ptr, i32)
652 DEF_HELPER_FLAGS_5(gvec_uqadd_d, TCG_CALL_NO_RWG,
653                    void, ptr, ptr, ptr, ptr, i32)
654 DEF_HELPER_FLAGS_5(gvec_sqadd_b, TCG_CALL_NO_RWG,
655                    void, ptr, ptr, ptr, ptr, i32)
656 DEF_HELPER_FLAGS_5(gvec_sqadd_h, TCG_CALL_NO_RWG,
657                    void, ptr, ptr, ptr, ptr, i32)
658 DEF_HELPER_FLAGS_5(gvec_sqadd_s, TCG_CALL_NO_RWG,
659                    void, ptr, ptr, ptr, ptr, i32)
660 DEF_HELPER_FLAGS_5(gvec_sqadd_d, TCG_CALL_NO_RWG,
661                    void, ptr, ptr, ptr, ptr, i32)
662 DEF_HELPER_FLAGS_5(gvec_uqsub_b, TCG_CALL_NO_RWG,
663                    void, ptr, ptr, ptr, ptr, i32)
664 DEF_HELPER_FLAGS_5(gvec_uqsub_h, TCG_CALL_NO_RWG,
665                    void, ptr, ptr, ptr, ptr, i32)
666 DEF_HELPER_FLAGS_5(gvec_uqsub_s, TCG_CALL_NO_RWG,
667                    void, ptr, ptr, ptr, ptr, i32)
668 DEF_HELPER_FLAGS_5(gvec_uqsub_d, TCG_CALL_NO_RWG,
669                    void, ptr, ptr, ptr, ptr, i32)
670 DEF_HELPER_FLAGS_5(gvec_sqsub_b, TCG_CALL_NO_RWG,
671                    void, ptr, ptr, ptr, ptr, i32)
672 DEF_HELPER_FLAGS_5(gvec_sqsub_h, TCG_CALL_NO_RWG,
673                    void, ptr, ptr, ptr, ptr, i32)
674 DEF_HELPER_FLAGS_5(gvec_sqsub_s, TCG_CALL_NO_RWG,
675                    void, ptr, ptr, ptr, ptr, i32)
676 DEF_HELPER_FLAGS_5(gvec_sqsub_d, TCG_CALL_NO_RWG,
677                    void, ptr, ptr, ptr, ptr, i32)
678 
679 DEF_HELPER_FLAGS_5(gvec_fmlal_a32, TCG_CALL_NO_RWG,
680                    void, ptr, ptr, ptr, ptr, i32)
681 DEF_HELPER_FLAGS_5(gvec_fmlal_a64, TCG_CALL_NO_RWG,
682                    void, ptr, ptr, ptr, ptr, i32)
683 DEF_HELPER_FLAGS_5(gvec_fmlal_idx_a32, TCG_CALL_NO_RWG,
684                    void, ptr, ptr, ptr, ptr, i32)
685 DEF_HELPER_FLAGS_5(gvec_fmlal_idx_a64, TCG_CALL_NO_RWG,
686                    void, ptr, ptr, ptr, ptr, i32)
687 
688 DEF_HELPER_FLAGS_2(frint32_s, TCG_CALL_NO_RWG, f32, f32, ptr)
689 DEF_HELPER_FLAGS_2(frint64_s, TCG_CALL_NO_RWG, f32, f32, ptr)
690 DEF_HELPER_FLAGS_2(frint32_d, TCG_CALL_NO_RWG, f64, f64, ptr)
691 DEF_HELPER_FLAGS_2(frint64_d, TCG_CALL_NO_RWG, f64, f64, ptr)
692 
693 #ifdef TARGET_AARCH64
694 #include "helper-a64.h"
695 #include "helper-sve.h"
696 #endif
697