inst.h revision 8cb52b056cfc302e05304d847c4228dff15715cf
1/****************************************************************************
2 ****************************************************************************
3 ***
4 ***   This header was automatically generated from a Linux kernel header
5 ***   of the same name, to make information necessary for userspace to
6 ***   call into the kernel available to libc.  It contains only constants,
7 ***   structures, and macros generated from the original header, and thus,
8 ***   contains no copyrightable information.
9 ***
10 ***   To edit the content of this header, modify the corresponding
11 ***   source file (e.g. under external/kernel-headers/original/) then
12 ***   run bionic/libc/kernel/tools/update_all.py
13 ***
14 ***   Any manual change here will be lost the next time this script will
15 ***   be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _UAPI_ASM_INST_H
20#define _UAPI_ASM_INST_H
21enum major_op {
22 spec_op, bcond_op, j_op, jal_op,
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 beq_op, bne_op, blez_op, bgtz_op,
25 addi_op, addiu_op, slti_op, sltiu_op,
26 andi_op, ori_op, xori_op, lui_op,
27 cop0_op, cop1_op, cop2_op, cop1x_op,
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 beql_op, bnel_op, blezl_op, bgtzl_op,
30 daddi_op, daddiu_op, ldl_op, ldr_op,
31 spec2_op, jalx_op, mdmx_op, spec3_op,
32 lb_op, lh_op, lwl_op, lw_op,
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 lbu_op, lhu_op, lwr_op, lwu_op,
35 sb_op, sh_op, swl_op, sw_op,
36 sdl_op, sdr_op, swr_op, cache_op,
37 ll_op, lwc1_op, lwc2_op, pref_op,
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 lld_op, ldc1_op, ldc2_op, ld_op,
40 sc_op, swc1_op, swc2_op, major_3b_op,
41 scd_op, sdc1_op, sdc2_op, sd_op
42};
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44enum spec_op {
45 sll_op, movc_op, srl_op, sra_op,
46 sllv_op, pmon_op, srlv_op, srav_op,
47 jr_op, jalr_op, movz_op, movn_op,
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 syscall_op, break_op, spim_op, sync_op,
50 mfhi_op, mthi_op, mflo_op, mtlo_op,
51 dsllv_op, spec2_unused_op, dsrlv_op, dsrav_op,
52 mult_op, multu_op, div_op, divu_op,
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 dmult_op, dmultu_op, ddiv_op, ddivu_op,
55 add_op, addu_op, sub_op, subu_op,
56 and_op, or_op, xor_op, nor_op,
57 spec3_unused_op, spec4_unused_op, slt_op, sltu_op,
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 dadd_op, daddu_op, dsub_op, dsubu_op,
60 tge_op, tgeu_op, tlt_op, tltu_op,
61 teq_op, spec5_unused_op, tne_op, spec6_unused_op,
62 dsll_op, spec7_unused_op, dsrl_op, dsra_op,
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 dsll32_op, spec8_unused_op, dsrl32_op, dsra32_op
65};
66enum spec2_op {
67 madd_op, maddu_op, mul_op, spec2_3_unused_op,
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 msub_op, msubu_op,
70 clz_op = 0x20, clo_op,
71 dclz_op = 0x24, dclo_op,
72 sdbpp_op = 0x3f
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74};
75enum spec3_op {
76 ext_op, dextm_op, dextu_op, dext_op,
77 ins_op, dinsm_op, dinsu_op, dins_op,
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79 lx_op = 0x0a,
80 bshfl_op = 0x20,
81 dbshfl_op = 0x24,
82 rdhwr_op = 0x3b
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84};
85enum rt_op {
86 bltz_op, bgez_op, bltzl_op, bgezl_op,
87 spimi_op, unused_rt_op_0x05, unused_rt_op_0x06, unused_rt_op_0x07,
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89 tgei_op, tgeiu_op, tlti_op, tltiu_op,
90 teqi_op, unused_0x0d_rt_op, tnei_op, unused_0x0f_rt_op,
91 bltzal_op, bgezal_op, bltzall_op, bgezall_op,
92 rt_op_0x14, rt_op_0x15, rt_op_0x16, rt_op_0x17,
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94 rt_op_0x18, rt_op_0x19, rt_op_0x1a, rt_op_0x1b,
95 bposge32_op, rt_op_0x1d, rt_op_0x1e, rt_op_0x1f
96};
97enum cop_op {
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99 mfc_op = 0x00, dmfc_op = 0x01,
100 cfc_op = 0x02, mtc_op = 0x04,
101 dmtc_op = 0x05, ctc_op = 0x06,
102 bc_op = 0x08, cop_op = 0x10,
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104 copm_op = 0x18
105};
106enum bcop_op {
107 bcf_op, bct_op, bcfl_op, bctl_op
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109};
110enum cop0_coi_func {
111 tlbr_op = 0x01, tlbwi_op = 0x02,
112 tlbwr_op = 0x06, tlbp_op = 0x08,
113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114 rfe_op = 0x10, eret_op = 0x18
115};
116enum cop0_com_func {
117 tlbr1_op = 0x01, tlbw_op = 0x02,
118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119 tlbp1_op = 0x08, dctr_op = 0x09,
120 dctw_op = 0x0a
121};
122enum cop1_fmt {
123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124 s_fmt, d_fmt, e_fmt, q_fmt,
125 w_fmt, l_fmt
126};
127enum cop1_sdw_func {
128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129 fadd_op = 0x00, fsub_op = 0x01,
130 fmul_op = 0x02, fdiv_op = 0x03,
131 fsqrt_op = 0x04, fabs_op = 0x05,
132 fmov_op = 0x06, fneg_op = 0x07,
133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134 froundl_op = 0x08, ftruncl_op = 0x09,
135 fceill_op = 0x0a, ffloorl_op = 0x0b,
136 fround_op = 0x0c, ftrunc_op = 0x0d,
137 fceil_op = 0x0e, ffloor_op = 0x0f,
138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
139 fmovc_op = 0x11, fmovz_op = 0x12,
140 fmovn_op = 0x13, frecip_op = 0x15,
141 frsqrt_op = 0x16, fcvts_op = 0x20,
142 fcvtd_op = 0x21, fcvte_op = 0x22,
143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
144 fcvtw_op = 0x24, fcvtl_op = 0x25,
145 fcmp_op = 0x30
146};
147enum cop1x_func {
148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
149 lwxc1_op = 0x00, ldxc1_op = 0x01,
150 pfetch_op = 0x07, swxc1_op = 0x08,
151 sdxc1_op = 0x09, madd_s_op = 0x20,
152 madd_d_op = 0x21, madd_e_op = 0x22,
153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
154 msub_s_op = 0x28, msub_d_op = 0x29,
155 msub_e_op = 0x2a, nmadd_s_op = 0x30,
156 nmadd_d_op = 0x31, nmadd_e_op = 0x32,
157 nmsub_s_op = 0x38, nmsub_d_op = 0x39,
158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
159 nmsub_e_op = 0x3a
160};
161enum mad_func {
162 madd_fp_op = 0x08, msub_fp_op = 0x0a,
163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
164 nmadd_fp_op = 0x0c, nmsub_fp_op = 0x0e
165};
166enum lx_func {
167 lwx_op = 0x00,
168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
169 lhx_op = 0x04,
170 lbux_op = 0x06,
171 ldx_op = 0x08,
172 lwux_op = 0x10,
173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
174 lhux_op = 0x14,
175 lbx_op = 0x16,
176};
177enum mm_major_op {
178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
179 mm_pool32a_op, mm_pool16a_op, mm_lbu16_op, mm_move16_op,
180 mm_addi32_op, mm_lbu32_op, mm_sb32_op, mm_lb32_op,
181 mm_pool32b_op, mm_pool16b_op, mm_lhu16_op, mm_andi16_op,
182 mm_addiu32_op, mm_lhu32_op, mm_sh32_op, mm_lh32_op,
183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
184 mm_pool32i_op, mm_pool16c_op, mm_lwsp16_op, mm_pool16d_op,
185 mm_ori32_op, mm_pool32f_op, mm_reserved1_op, mm_reserved2_op,
186 mm_pool32c_op, mm_lwgp16_op, mm_lw16_op, mm_pool16e_op,
187 mm_xori32_op, mm_jals32_op, mm_addiupc_op, mm_reserved3_op,
188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
189 mm_reserved4_op, mm_pool16f_op, mm_sb16_op, mm_beqz16_op,
190 mm_slti32_op, mm_beq32_op, mm_swc132_op, mm_lwc132_op,
191 mm_reserved5_op, mm_reserved6_op, mm_sh16_op, mm_bnez16_op,
192 mm_sltiu32_op, mm_bne32_op, mm_sdc132_op, mm_ldc132_op,
193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
194 mm_reserved7_op, mm_reserved8_op, mm_swsp16_op, mm_b16_op,
195 mm_andi32_op, mm_j32_op, mm_sd32_op, mm_ld32_op,
196 mm_reserved11_op, mm_reserved12_op, mm_sw16_op, mm_li16_op,
197 mm_jalx32_op, mm_jal32_op, mm_sw32_op, mm_lw32_op,
198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
199};
200enum mm_32i_minor_op {
201 mm_bltz_op, mm_bltzal_op, mm_bgez_op, mm_bgezal_op,
202 mm_blez_op, mm_bnezc_op, mm_bgtz_op, mm_beqzc_op,
203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
204 mm_tlti_op, mm_tgei_op, mm_tltiu_op, mm_tgeiu_op,
205 mm_tnei_op, mm_lui_op, mm_teqi_op, mm_reserved13_op,
206 mm_synci_op, mm_bltzals_op, mm_reserved14_op, mm_bgezals_op,
207 mm_bc2f_op, mm_bc2t_op, mm_reserved15_op, mm_reserved16_op,
208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
209 mm_reserved17_op, mm_reserved18_op, mm_bposge64_op, mm_bposge32_op,
210 mm_bc1f_op, mm_bc1t_op, mm_reserved19_op, mm_reserved20_op,
211 mm_bc1any2f_op, mm_bc1any2t_op, mm_bc1any4f_op, mm_bc1any4t_op,
212};
213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
214enum mm_32a_minor_op {
215 mm_sll32_op = 0x000,
216 mm_ins_op = 0x00c,
217 mm_ext_op = 0x02c,
218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
219 mm_pool32axf_op = 0x03c,
220 mm_srl32_op = 0x040,
221 mm_sra_op = 0x080,
222 mm_rotr_op = 0x0c0,
223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
224 mm_lwxs_op = 0x118,
225 mm_addu32_op = 0x150,
226 mm_subu32_op = 0x1d0,
227 mm_and_op = 0x250,
228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
229 mm_or32_op = 0x290,
230 mm_xor32_op = 0x310,
231};
232enum mm_32b_func {
233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
234 mm_lwc2_func = 0x0,
235 mm_lwp_func = 0x1,
236 mm_ldc2_func = 0x2,
237 mm_ldp_func = 0x4,
238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
239 mm_lwm32_func = 0x5,
240 mm_cache_func = 0x6,
241 mm_ldm_func = 0x7,
242 mm_swc2_func = 0x8,
243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
244 mm_swp_func = 0x9,
245 mm_sdc2_func = 0xa,
246 mm_sdp_func = 0xc,
247 mm_swm32_func = 0xd,
248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
249 mm_sdm_func = 0xf,
250};
251enum mm_32c_func {
252 mm_pref_func = 0x2,
253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
254 mm_ll_func = 0x3,
255 mm_swr_func = 0x9,
256 mm_sc_func = 0xb,
257 mm_lwu_func = 0xe,
258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
259};
260enum mm_32axf_minor_op {
261 mm_mfc0_op = 0x003,
262 mm_mtc0_op = 0x00b,
263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
264 mm_tlbp_op = 0x00d,
265 mm_jalr_op = 0x03c,
266 mm_tlbr_op = 0x04d,
267 mm_jalrhb_op = 0x07c,
268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
269 mm_tlbwi_op = 0x08d,
270 mm_tlbwr_op = 0x0cd,
271 mm_jalrs_op = 0x13c,
272 mm_jalrshb_op = 0x17c,
273/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
274 mm_syscall_op = 0x22d,
275 mm_eret_op = 0x3cd,
276};
277enum mm_32f_minor_op {
278/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
279 mm_32f_00_op = 0x00,
280 mm_32f_01_op = 0x01,
281 mm_32f_02_op = 0x02,
282 mm_32f_10_op = 0x08,
283/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
284 mm_32f_11_op = 0x09,
285 mm_32f_12_op = 0x0a,
286 mm_32f_20_op = 0x10,
287 mm_32f_30_op = 0x18,
288/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
289 mm_32f_40_op = 0x20,
290 mm_32f_41_op = 0x21,
291 mm_32f_42_op = 0x22,
292 mm_32f_50_op = 0x28,
293/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
294 mm_32f_51_op = 0x29,
295 mm_32f_52_op = 0x2a,
296 mm_32f_60_op = 0x30,
297 mm_32f_70_op = 0x38,
298/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
299 mm_32f_73_op = 0x3b,
300 mm_32f_74_op = 0x3c,
301};
302enum mm_32f_10_minor_op {
303/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
304 mm_lwxc1_op = 0x1,
305 mm_swxc1_op,
306 mm_ldxc1_op,
307 mm_sdxc1_op,
308/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
309 mm_luxc1_op,
310 mm_suxc1_op,
311};
312enum mm_32f_func {
313/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
314 mm_lwxc1_func = 0x048,
315 mm_swxc1_func = 0x088,
316 mm_ldxc1_func = 0x0c8,
317 mm_sdxc1_func = 0x108,
318/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
319};
320enum mm_32f_40_minor_op {
321 mm_fmovf_op,
322 mm_fmovt_op,
323/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
324};
325enum mm_32f_60_minor_op {
326 mm_fadd_op,
327 mm_fsub_op,
328/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
329 mm_fmul_op,
330 mm_fdiv_op,
331};
332enum mm_32f_70_minor_op {
333/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
334 mm_fmovn_op,
335 mm_fmovz_op,
336};
337enum mm_32f_73_minor_op {
338/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
339 mm_fmov0_op = 0x01,
340 mm_fcvtl_op = 0x04,
341 mm_movf0_op = 0x05,
342 mm_frsqrt_op = 0x08,
343/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
344 mm_ffloorl_op = 0x0c,
345 mm_fabs0_op = 0x0d,
346 mm_fcvtw_op = 0x24,
347 mm_movt0_op = 0x25,
348/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
349 mm_fsqrt_op = 0x28,
350 mm_ffloorw_op = 0x2c,
351 mm_fneg0_op = 0x2d,
352 mm_cfc1_op = 0x40,
353/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
354 mm_frecip_op = 0x48,
355 mm_fceill_op = 0x4c,
356 mm_fcvtd0_op = 0x4d,
357 mm_ctc1_op = 0x60,
358/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
359 mm_fceilw_op = 0x6c,
360 mm_fcvts0_op = 0x6d,
361 mm_mfc1_op = 0x80,
362 mm_fmov1_op = 0x81,
363/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
364 mm_movf1_op = 0x85,
365 mm_ftruncl_op = 0x8c,
366 mm_fabs1_op = 0x8d,
367 mm_mtc1_op = 0xa0,
368/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
369 mm_movt1_op = 0xa5,
370 mm_ftruncw_op = 0xac,
371 mm_fneg1_op = 0xad,
372 mm_froundl_op = 0xcc,
373/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
374 mm_fcvtd1_op = 0xcd,
375 mm_froundw_op = 0xec,
376 mm_fcvts1_op = 0xed,
377};
378/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
379enum mm_16c_minor_op {
380 mm_lwm16_op = 0x04,
381 mm_swm16_op = 0x05,
382 mm_jr16_op = 0x18,
383/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
384 mm_jrc_op = 0x1a,
385 mm_jalr16_op = 0x1c,
386 mm_jalrs16_op = 0x1e,
387};
388/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
389enum mm_16d_minor_op {
390 mm_addius5_func,
391 mm_addiusp_func,
392};
393/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
394enum MIPS16e_ops {
395 MIPS16e_jal_op = 003,
396 MIPS16e_ld_op = 007,
397 MIPS16e_i8_op = 014,
398/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
399 MIPS16e_sd_op = 017,
400 MIPS16e_lb_op = 020,
401 MIPS16e_lh_op = 021,
402 MIPS16e_lwsp_op = 022,
403/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
404 MIPS16e_lw_op = 023,
405 MIPS16e_lbu_op = 024,
406 MIPS16e_lhu_op = 025,
407 MIPS16e_lwpc_op = 026,
408/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
409 MIPS16e_lwu_op = 027,
410 MIPS16e_sb_op = 030,
411 MIPS16e_sh_op = 031,
412 MIPS16e_swsp_op = 032,
413/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
414 MIPS16e_sw_op = 033,
415 MIPS16e_rr_op = 035,
416 MIPS16e_extend_op = 036,
417 MIPS16e_i64_op = 037,
418/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
419};
420enum MIPS16e_i64_func {
421 MIPS16e_ldsp_func,
422 MIPS16e_sdsp_func,
423/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
424 MIPS16e_sdrasp_func,
425 MIPS16e_dadjsp_func,
426 MIPS16e_ldpc_func,
427};
428/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
429enum MIPS16e_rr_func {
430 MIPS16e_jr_func,
431};
432enum MIPS6e_i8_func {
433/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
434 MIPS16e_swrasp_func = 02,
435};
436#define MM_NOP16 0x0c00
437#ifdef __MIPSEB__
438/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
439#define BITFIELD_FIELD(field, more)   field;   more
440#elif defined(__MIPSEL__)
441#define BITFIELD_FIELD(field, more)   more   field;
442#else
443/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
444#error "MIPS but neither __MIPSEL__ nor __MIPSEB__?"
445#endif
446struct j_format {
447 BITFIELD_FIELD(unsigned int opcode : 6,
448/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
449 BITFIELD_FIELD(unsigned int target : 26,
450 ;))
451};
452struct i_format {
453/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
454 BITFIELD_FIELD(unsigned int opcode : 6,
455 BITFIELD_FIELD(unsigned int rs : 5,
456 BITFIELD_FIELD(unsigned int rt : 5,
457 BITFIELD_FIELD(signed int simmediate : 16,
458/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
459 ;))))
460};
461struct u_format {
462 BITFIELD_FIELD(unsigned int opcode : 6,
463/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
464 BITFIELD_FIELD(unsigned int rs : 5,
465 BITFIELD_FIELD(unsigned int rt : 5,
466 BITFIELD_FIELD(unsigned int uimmediate : 16,
467 ;))))
468/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
469};
470struct c_format {
471 BITFIELD_FIELD(unsigned int opcode : 6,
472 BITFIELD_FIELD(unsigned int rs : 5,
473/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
474 BITFIELD_FIELD(unsigned int c_op : 3,
475 BITFIELD_FIELD(unsigned int cache : 2,
476 BITFIELD_FIELD(unsigned int simmediate : 16,
477 ;)))))
478/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
479};
480struct r_format {
481 BITFIELD_FIELD(unsigned int opcode : 6,
482 BITFIELD_FIELD(unsigned int rs : 5,
483/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
484 BITFIELD_FIELD(unsigned int rt : 5,
485 BITFIELD_FIELD(unsigned int rd : 5,
486 BITFIELD_FIELD(unsigned int re : 5,
487 BITFIELD_FIELD(unsigned int func : 6,
488/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
489 ;))))))
490};
491struct p_format {
492 BITFIELD_FIELD(unsigned int opcode : 6,
493/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
494 BITFIELD_FIELD(unsigned int rs : 5,
495 BITFIELD_FIELD(unsigned int rt : 5,
496 BITFIELD_FIELD(unsigned int rd : 5,
497 BITFIELD_FIELD(unsigned int re : 5,
498/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
499 BITFIELD_FIELD(unsigned int func : 6,
500 ;))))))
501};
502struct f_format {
503/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
504 BITFIELD_FIELD(unsigned int opcode : 6,
505 BITFIELD_FIELD(unsigned int : 1,
506 BITFIELD_FIELD(unsigned int fmt : 4,
507 BITFIELD_FIELD(unsigned int rt : 5,
508/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
509 BITFIELD_FIELD(unsigned int rd : 5,
510 BITFIELD_FIELD(unsigned int re : 5,
511 BITFIELD_FIELD(unsigned int func : 6,
512 ;)))))))
513/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
514};
515struct ma_format {
516 BITFIELD_FIELD(unsigned int opcode : 6,
517 BITFIELD_FIELD(unsigned int fr : 5,
518/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
519 BITFIELD_FIELD(unsigned int ft : 5,
520 BITFIELD_FIELD(unsigned int fs : 5,
521 BITFIELD_FIELD(unsigned int fd : 5,
522 BITFIELD_FIELD(unsigned int func : 4,
523/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
524 BITFIELD_FIELD(unsigned int fmt : 2,
525 ;)))))))
526};
527struct b_format {
528/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
529 BITFIELD_FIELD(unsigned int opcode : 6,
530 BITFIELD_FIELD(unsigned int code : 20,
531 BITFIELD_FIELD(unsigned int func : 6,
532 ;)))
533/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
534};
535struct ps_format {
536 BITFIELD_FIELD(unsigned int opcode : 6,
537 BITFIELD_FIELD(unsigned int rs : 5,
538/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
539 BITFIELD_FIELD(unsigned int ft : 5,
540 BITFIELD_FIELD(unsigned int fs : 5,
541 BITFIELD_FIELD(unsigned int fd : 5,
542 BITFIELD_FIELD(unsigned int func : 6,
543/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
544 ;))))))
545};
546struct v_format {
547 BITFIELD_FIELD(unsigned int opcode : 6,
548/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
549 BITFIELD_FIELD(unsigned int sel : 4,
550 BITFIELD_FIELD(unsigned int fmt : 1,
551 BITFIELD_FIELD(unsigned int vt : 5,
552 BITFIELD_FIELD(unsigned int vs : 5,
553/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
554 BITFIELD_FIELD(unsigned int vd : 5,
555 BITFIELD_FIELD(unsigned int func : 6,
556 ;)))))))
557};
558/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
559struct fb_format {
560 BITFIELD_FIELD(unsigned int opcode : 6,
561 BITFIELD_FIELD(unsigned int bc : 5,
562 BITFIELD_FIELD(unsigned int cc : 3,
563/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
564 BITFIELD_FIELD(unsigned int flag : 2,
565 BITFIELD_FIELD(signed int simmediate : 16,
566 ;)))))
567};
568/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
569struct fp0_format {
570 BITFIELD_FIELD(unsigned int opcode : 6,
571 BITFIELD_FIELD(unsigned int fmt : 5,
572 BITFIELD_FIELD(unsigned int ft : 5,
573/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
574 BITFIELD_FIELD(unsigned int fs : 5,
575 BITFIELD_FIELD(unsigned int fd : 5,
576 BITFIELD_FIELD(unsigned int func : 6,
577 ;))))))
578/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
579};
580struct mm_fp0_format {
581 BITFIELD_FIELD(unsigned int opcode : 6,
582 BITFIELD_FIELD(unsigned int ft : 5,
583/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
584 BITFIELD_FIELD(unsigned int fs : 5,
585 BITFIELD_FIELD(unsigned int fd : 5,
586 BITFIELD_FIELD(unsigned int fmt : 3,
587 BITFIELD_FIELD(unsigned int op : 2,
588/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
589 BITFIELD_FIELD(unsigned int func : 6,
590 ;)))))))
591};
592struct fp1_format {
593/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
594 BITFIELD_FIELD(unsigned int opcode : 6,
595 BITFIELD_FIELD(unsigned int op : 5,
596 BITFIELD_FIELD(unsigned int rt : 5,
597 BITFIELD_FIELD(unsigned int fs : 5,
598/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
599 BITFIELD_FIELD(unsigned int fd : 5,
600 BITFIELD_FIELD(unsigned int func : 6,
601 ;))))))
602};
603/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
604struct mm_fp1_format {
605 BITFIELD_FIELD(unsigned int opcode : 6,
606 BITFIELD_FIELD(unsigned int rt : 5,
607 BITFIELD_FIELD(unsigned int fs : 5,
608/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
609 BITFIELD_FIELD(unsigned int fmt : 2,
610 BITFIELD_FIELD(unsigned int op : 8,
611 BITFIELD_FIELD(unsigned int func : 6,
612 ;))))))
613/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
614};
615struct mm_fp2_format {
616 BITFIELD_FIELD(unsigned int opcode : 6,
617 BITFIELD_FIELD(unsigned int fd : 5,
618/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
619 BITFIELD_FIELD(unsigned int fs : 5,
620 BITFIELD_FIELD(unsigned int cc : 3,
621 BITFIELD_FIELD(unsigned int zero : 2,
622 BITFIELD_FIELD(unsigned int fmt : 2,
623/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
624 BITFIELD_FIELD(unsigned int op : 3,
625 BITFIELD_FIELD(unsigned int func : 6,
626 ;))))))))
627};
628/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
629struct mm_fp3_format {
630 BITFIELD_FIELD(unsigned int opcode : 6,
631 BITFIELD_FIELD(unsigned int rt : 5,
632 BITFIELD_FIELD(unsigned int fs : 5,
633/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
634 BITFIELD_FIELD(unsigned int fmt : 3,
635 BITFIELD_FIELD(unsigned int op : 7,
636 BITFIELD_FIELD(unsigned int func : 6,
637 ;))))))
638/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
639};
640struct mm_fp4_format {
641 BITFIELD_FIELD(unsigned int opcode : 6,
642 BITFIELD_FIELD(unsigned int rt : 5,
643/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
644 BITFIELD_FIELD(unsigned int fs : 5,
645 BITFIELD_FIELD(unsigned int cc : 3,
646 BITFIELD_FIELD(unsigned int fmt : 3,
647 BITFIELD_FIELD(unsigned int cond : 4,
648/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
649 BITFIELD_FIELD(unsigned int func : 6,
650 ;)))))))
651};
652struct mm_fp5_format {
653/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
654 BITFIELD_FIELD(unsigned int opcode : 6,
655 BITFIELD_FIELD(unsigned int index : 5,
656 BITFIELD_FIELD(unsigned int base : 5,
657 BITFIELD_FIELD(unsigned int fd : 5,
658/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
659 BITFIELD_FIELD(unsigned int op : 5,
660 BITFIELD_FIELD(unsigned int func : 6,
661 ;))))))
662};
663/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
664struct fp6_format {
665 BITFIELD_FIELD(unsigned int opcode : 6,
666 BITFIELD_FIELD(unsigned int fr : 5,
667 BITFIELD_FIELD(unsigned int ft : 5,
668/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
669 BITFIELD_FIELD(unsigned int fs : 5,
670 BITFIELD_FIELD(unsigned int fd : 5,
671 BITFIELD_FIELD(unsigned int func : 6,
672 ;))))))
673/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
674};
675struct mm_fp6_format {
676 BITFIELD_FIELD(unsigned int opcode : 6,
677 BITFIELD_FIELD(unsigned int ft : 5,
678/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
679 BITFIELD_FIELD(unsigned int fs : 5,
680 BITFIELD_FIELD(unsigned int fd : 5,
681 BITFIELD_FIELD(unsigned int fr : 5,
682 BITFIELD_FIELD(unsigned int func : 6,
683/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
684 ;))))))
685};
686struct mm_i_format {
687 BITFIELD_FIELD(unsigned int opcode : 6,
688/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
689 BITFIELD_FIELD(unsigned int rt : 5,
690 BITFIELD_FIELD(unsigned int rs : 5,
691 BITFIELD_FIELD(signed int simmediate : 16,
692 ;))))
693/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
694};
695struct mm_m_format {
696 BITFIELD_FIELD(unsigned int opcode : 6,
697 BITFIELD_FIELD(unsigned int rd : 5,
698/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
699 BITFIELD_FIELD(unsigned int base : 5,
700 BITFIELD_FIELD(unsigned int func : 4,
701 BITFIELD_FIELD(signed int simmediate : 12,
702 ;)))))
703/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
704};
705struct mm_x_format {
706 BITFIELD_FIELD(unsigned int opcode : 6,
707 BITFIELD_FIELD(unsigned int index : 5,
708/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
709 BITFIELD_FIELD(unsigned int base : 5,
710 BITFIELD_FIELD(unsigned int rd : 5,
711 BITFIELD_FIELD(unsigned int func : 11,
712 ;)))))
713/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
714};
715struct mm_b0_format {
716 BITFIELD_FIELD(unsigned int opcode : 6,
717 BITFIELD_FIELD(signed int simmediate : 10,
718/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
719 BITFIELD_FIELD(unsigned int : 16,
720 ;)))
721};
722struct mm_b1_format {
723/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
724 BITFIELD_FIELD(unsigned int opcode : 6,
725 BITFIELD_FIELD(unsigned int rs : 3,
726 BITFIELD_FIELD(signed int simmediate : 7,
727 BITFIELD_FIELD(unsigned int : 16,
728/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
729 ;))))
730};
731struct mm16_m_format {
732 BITFIELD_FIELD(unsigned int opcode : 6,
733/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
734 BITFIELD_FIELD(unsigned int func : 4,
735 BITFIELD_FIELD(unsigned int rlist : 2,
736 BITFIELD_FIELD(unsigned int imm : 4,
737 BITFIELD_FIELD(unsigned int : 16,
738/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
739 ;)))))
740};
741struct mm16_rb_format {
742 BITFIELD_FIELD(unsigned int opcode : 6,
743/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
744 BITFIELD_FIELD(unsigned int rt : 3,
745 BITFIELD_FIELD(unsigned int base : 3,
746 BITFIELD_FIELD(signed int simmediate : 4,
747 BITFIELD_FIELD(unsigned int : 16,
748/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
749 ;)))))
750};
751struct mm16_r3_format {
752 BITFIELD_FIELD(unsigned int opcode : 6,
753/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
754 BITFIELD_FIELD(unsigned int rt : 3,
755 BITFIELD_FIELD(signed int simmediate : 7,
756 BITFIELD_FIELD(unsigned int : 16,
757 ;))))
758/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
759};
760struct mm16_r5_format {
761 BITFIELD_FIELD(unsigned int opcode : 6,
762 BITFIELD_FIELD(unsigned int rt : 5,
763/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
764 BITFIELD_FIELD(signed int simmediate : 5,
765 BITFIELD_FIELD(unsigned int : 16,
766 ;))))
767};
768/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
769struct m16e_rr {
770 BITFIELD_FIELD(unsigned int opcode : 5,
771 BITFIELD_FIELD(unsigned int rx : 3,
772 BITFIELD_FIELD(unsigned int nd : 1,
773/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
774 BITFIELD_FIELD(unsigned int l : 1,
775 BITFIELD_FIELD(unsigned int ra : 1,
776 BITFIELD_FIELD(unsigned int func : 5,
777 ;))))))
778/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
779};
780struct m16e_jal {
781 BITFIELD_FIELD(unsigned int opcode : 5,
782 BITFIELD_FIELD(unsigned int x : 1,
783/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
784 BITFIELD_FIELD(unsigned int imm20_16 : 5,
785 BITFIELD_FIELD(signed int imm25_21 : 5,
786 ;))))
787};
788/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
789struct m16e_i64 {
790 BITFIELD_FIELD(unsigned int opcode : 5,
791 BITFIELD_FIELD(unsigned int func : 3,
792 BITFIELD_FIELD(unsigned int imm : 8,
793/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
794 ;)))
795};
796struct m16e_ri64 {
797 BITFIELD_FIELD(unsigned int opcode : 5,
798/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
799 BITFIELD_FIELD(unsigned int func : 3,
800 BITFIELD_FIELD(unsigned int ry : 3,
801 BITFIELD_FIELD(unsigned int imm : 5,
802 ;))))
803/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
804};
805struct m16e_ri {
806 BITFIELD_FIELD(unsigned int opcode : 5,
807 BITFIELD_FIELD(unsigned int rx : 3,
808/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
809 BITFIELD_FIELD(unsigned int imm : 8,
810 ;)))
811};
812struct m16e_rri {
813/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
814 BITFIELD_FIELD(unsigned int opcode : 5,
815 BITFIELD_FIELD(unsigned int rx : 3,
816 BITFIELD_FIELD(unsigned int ry : 3,
817 BITFIELD_FIELD(unsigned int imm : 5,
818/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
819 ;))))
820};
821struct m16e_i8 {
822 BITFIELD_FIELD(unsigned int opcode : 5,
823/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
824 BITFIELD_FIELD(unsigned int func : 3,
825 BITFIELD_FIELD(unsigned int imm : 8,
826 ;)))
827};
828/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
829union mips_instruction {
830 unsigned int word;
831 unsigned short halfword[2];
832 unsigned char byte[4];
833/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
834 struct j_format j_format;
835 struct i_format i_format;
836 struct u_format u_format;
837 struct c_format c_format;
838/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
839 struct r_format r_format;
840 struct p_format p_format;
841 struct f_format f_format;
842 struct ma_format ma_format;
843/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
844 struct b_format b_format;
845 struct ps_format ps_format;
846 struct v_format v_format;
847 struct fb_format fb_format;
848/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
849 struct fp0_format fp0_format;
850 struct mm_fp0_format mm_fp0_format;
851 struct fp1_format fp1_format;
852 struct mm_fp1_format mm_fp1_format;
853/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
854 struct mm_fp2_format mm_fp2_format;
855 struct mm_fp3_format mm_fp3_format;
856 struct mm_fp4_format mm_fp4_format;
857 struct mm_fp5_format mm_fp5_format;
858/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
859 struct fp6_format fp6_format;
860 struct mm_fp6_format mm_fp6_format;
861 struct mm_i_format mm_i_format;
862 struct mm_m_format mm_m_format;
863/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
864 struct mm_x_format mm_x_format;
865 struct mm_b0_format mm_b0_format;
866 struct mm_b1_format mm_b1_format;
867 struct mm16_m_format mm16_m_format ;
868/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
869 struct mm16_rb_format mm16_rb_format;
870 struct mm16_r3_format mm16_r3_format;
871 struct mm16_r5_format mm16_r5_format;
872};
873/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
874union mips16e_instruction {
875 unsigned int full : 16;
876 struct m16e_rr rr;
877 struct m16e_jal jal;
878/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
879 struct m16e_i64 i64;
880 struct m16e_ri64 ri64;
881 struct m16e_ri ri;
882 struct m16e_rri rri;
883/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
884 struct m16e_i8 i8;
885};
886#endif
887