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