inst.h revision 8ed7a23309cd6f1a73c19a23ade2e11ab31fcb2f
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#define BITFIELD_FIELD(field, more)   more   field;
438/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
439struct j_format {
440 BITFIELD_FIELD(unsigned int opcode : 6,
441 BITFIELD_FIELD(unsigned int target : 26,
442 ;))
443/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
444};
445struct i_format {
446 BITFIELD_FIELD(unsigned int opcode : 6,
447 BITFIELD_FIELD(unsigned int rs : 5,
448/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
449 BITFIELD_FIELD(unsigned int rt : 5,
450 BITFIELD_FIELD(signed int simmediate : 16,
451 ;))))
452};
453/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
454struct u_format {
455 BITFIELD_FIELD(unsigned int opcode : 6,
456 BITFIELD_FIELD(unsigned int rs : 5,
457 BITFIELD_FIELD(unsigned int rt : 5,
458/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
459 BITFIELD_FIELD(unsigned int uimmediate : 16,
460 ;))))
461};
462struct c_format {
463/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
464 BITFIELD_FIELD(unsigned int opcode : 6,
465 BITFIELD_FIELD(unsigned int rs : 5,
466 BITFIELD_FIELD(unsigned int c_op : 3,
467 BITFIELD_FIELD(unsigned int cache : 2,
468/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
469 BITFIELD_FIELD(unsigned int simmediate : 16,
470 ;)))))
471};
472struct r_format {
473/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
474 BITFIELD_FIELD(unsigned int opcode : 6,
475 BITFIELD_FIELD(unsigned int rs : 5,
476 BITFIELD_FIELD(unsigned int rt : 5,
477 BITFIELD_FIELD(unsigned int rd : 5,
478/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
479 BITFIELD_FIELD(unsigned int re : 5,
480 BITFIELD_FIELD(unsigned int func : 6,
481 ;))))))
482};
483/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
484struct p_format {
485 BITFIELD_FIELD(unsigned int opcode : 6,
486 BITFIELD_FIELD(unsigned int rs : 5,
487 BITFIELD_FIELD(unsigned int rt : 5,
488/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
489 BITFIELD_FIELD(unsigned int rd : 5,
490 BITFIELD_FIELD(unsigned int re : 5,
491 BITFIELD_FIELD(unsigned int func : 6,
492 ;))))))
493/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
494};
495struct f_format {
496 BITFIELD_FIELD(unsigned int opcode : 6,
497 BITFIELD_FIELD(unsigned int : 1,
498/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
499 BITFIELD_FIELD(unsigned int fmt : 4,
500 BITFIELD_FIELD(unsigned int rt : 5,
501 BITFIELD_FIELD(unsigned int rd : 5,
502 BITFIELD_FIELD(unsigned int re : 5,
503/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
504 BITFIELD_FIELD(unsigned int func : 6,
505 ;)))))))
506};
507struct ma_format {
508/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
509 BITFIELD_FIELD(unsigned int opcode : 6,
510 BITFIELD_FIELD(unsigned int fr : 5,
511 BITFIELD_FIELD(unsigned int ft : 5,
512 BITFIELD_FIELD(unsigned int fs : 5,
513/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
514 BITFIELD_FIELD(unsigned int fd : 5,
515 BITFIELD_FIELD(unsigned int func : 4,
516 BITFIELD_FIELD(unsigned int fmt : 2,
517 ;)))))))
518/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
519};
520struct b_format {
521 BITFIELD_FIELD(unsigned int opcode : 6,
522 BITFIELD_FIELD(unsigned int code : 20,
523/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
524 BITFIELD_FIELD(unsigned int func : 6,
525 ;)))
526};
527struct ps_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 rs : 5,
531 BITFIELD_FIELD(unsigned int ft : 5,
532 BITFIELD_FIELD(unsigned int fs : 5,
533/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
534 BITFIELD_FIELD(unsigned int fd : 5,
535 BITFIELD_FIELD(unsigned int func : 6,
536 ;))))))
537};
538/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
539struct v_format {
540 BITFIELD_FIELD(unsigned int opcode : 6,
541 BITFIELD_FIELD(unsigned int sel : 4,
542 BITFIELD_FIELD(unsigned int fmt : 1,
543/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
544 BITFIELD_FIELD(unsigned int vt : 5,
545 BITFIELD_FIELD(unsigned int vs : 5,
546 BITFIELD_FIELD(unsigned int vd : 5,
547 BITFIELD_FIELD(unsigned int func : 6,
548/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
549 ;)))))))
550};
551struct fb_format {
552 BITFIELD_FIELD(unsigned int opcode : 6,
553/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
554 BITFIELD_FIELD(unsigned int bc : 5,
555 BITFIELD_FIELD(unsigned int cc : 3,
556 BITFIELD_FIELD(unsigned int flag : 2,
557 BITFIELD_FIELD(signed int simmediate : 16,
558/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
559 ;)))))
560};
561struct fp0_format {
562 BITFIELD_FIELD(unsigned int opcode : 6,
563/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
564 BITFIELD_FIELD(unsigned int fmt : 5,
565 BITFIELD_FIELD(unsigned int ft : 5,
566 BITFIELD_FIELD(unsigned int fs : 5,
567 BITFIELD_FIELD(unsigned int fd : 5,
568/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
569 BITFIELD_FIELD(unsigned int func : 6,
570 ;))))))
571};
572struct mm_fp0_format {
573/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
574 BITFIELD_FIELD(unsigned int opcode : 6,
575 BITFIELD_FIELD(unsigned int ft : 5,
576 BITFIELD_FIELD(unsigned int fs : 5,
577 BITFIELD_FIELD(unsigned int fd : 5,
578/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
579 BITFIELD_FIELD(unsigned int fmt : 3,
580 BITFIELD_FIELD(unsigned int op : 2,
581 BITFIELD_FIELD(unsigned int func : 6,
582 ;)))))))
583/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
584};
585struct fp1_format {
586 BITFIELD_FIELD(unsigned int opcode : 6,
587 BITFIELD_FIELD(unsigned int op : 5,
588/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
589 BITFIELD_FIELD(unsigned int rt : 5,
590 BITFIELD_FIELD(unsigned int fs : 5,
591 BITFIELD_FIELD(unsigned int fd : 5,
592 BITFIELD_FIELD(unsigned int func : 6,
593/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
594 ;))))))
595};
596struct mm_fp1_format {
597 BITFIELD_FIELD(unsigned int opcode : 6,
598/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
599 BITFIELD_FIELD(unsigned int rt : 5,
600 BITFIELD_FIELD(unsigned int fs : 5,
601 BITFIELD_FIELD(unsigned int fmt : 2,
602 BITFIELD_FIELD(unsigned int op : 8,
603/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
604 BITFIELD_FIELD(unsigned int func : 6,
605 ;))))))
606};
607struct mm_fp2_format {
608/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
609 BITFIELD_FIELD(unsigned int opcode : 6,
610 BITFIELD_FIELD(unsigned int fd : 5,
611 BITFIELD_FIELD(unsigned int fs : 5,
612 BITFIELD_FIELD(unsigned int cc : 3,
613/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
614 BITFIELD_FIELD(unsigned int zero : 2,
615 BITFIELD_FIELD(unsigned int fmt : 2,
616 BITFIELD_FIELD(unsigned int op : 3,
617 BITFIELD_FIELD(unsigned int func : 6,
618/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
619 ;))))))))
620};
621struct mm_fp3_format {
622 BITFIELD_FIELD(unsigned int opcode : 6,
623/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
624 BITFIELD_FIELD(unsigned int rt : 5,
625 BITFIELD_FIELD(unsigned int fs : 5,
626 BITFIELD_FIELD(unsigned int fmt : 3,
627 BITFIELD_FIELD(unsigned int op : 7,
628/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
629 BITFIELD_FIELD(unsigned int func : 6,
630 ;))))))
631};
632struct mm_fp4_format {
633/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
634 BITFIELD_FIELD(unsigned int opcode : 6,
635 BITFIELD_FIELD(unsigned int rt : 5,
636 BITFIELD_FIELD(unsigned int fs : 5,
637 BITFIELD_FIELD(unsigned int cc : 3,
638/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
639 BITFIELD_FIELD(unsigned int fmt : 3,
640 BITFIELD_FIELD(unsigned int cond : 4,
641 BITFIELD_FIELD(unsigned int func : 6,
642 ;)))))))
643/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
644};
645struct mm_fp5_format {
646 BITFIELD_FIELD(unsigned int opcode : 6,
647 BITFIELD_FIELD(unsigned int index : 5,
648/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
649 BITFIELD_FIELD(unsigned int base : 5,
650 BITFIELD_FIELD(unsigned int fd : 5,
651 BITFIELD_FIELD(unsigned int op : 5,
652 BITFIELD_FIELD(unsigned int func : 6,
653/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
654 ;))))))
655};
656struct fp6_format {
657 BITFIELD_FIELD(unsigned int opcode : 6,
658/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
659 BITFIELD_FIELD(unsigned int fr : 5,
660 BITFIELD_FIELD(unsigned int ft : 5,
661 BITFIELD_FIELD(unsigned int fs : 5,
662 BITFIELD_FIELD(unsigned int fd : 5,
663/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
664 BITFIELD_FIELD(unsigned int func : 6,
665 ;))))))
666};
667struct mm_fp6_format {
668/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
669 BITFIELD_FIELD(unsigned int opcode : 6,
670 BITFIELD_FIELD(unsigned int ft : 5,
671 BITFIELD_FIELD(unsigned int fs : 5,
672 BITFIELD_FIELD(unsigned int fd : 5,
673/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
674 BITFIELD_FIELD(unsigned int fr : 5,
675 BITFIELD_FIELD(unsigned int func : 6,
676 ;))))))
677};
678/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
679struct mm_i_format {
680 BITFIELD_FIELD(unsigned int opcode : 6,
681 BITFIELD_FIELD(unsigned int rt : 5,
682 BITFIELD_FIELD(unsigned int rs : 5,
683/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
684 BITFIELD_FIELD(signed int simmediate : 16,
685 ;))))
686};
687struct mm_m_format {
688/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
689 BITFIELD_FIELD(unsigned int opcode : 6,
690 BITFIELD_FIELD(unsigned int rd : 5,
691 BITFIELD_FIELD(unsigned int base : 5,
692 BITFIELD_FIELD(unsigned int func : 4,
693/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
694 BITFIELD_FIELD(signed int simmediate : 12,
695 ;)))))
696};
697struct mm_x_format {
698/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
699 BITFIELD_FIELD(unsigned int opcode : 6,
700 BITFIELD_FIELD(unsigned int index : 5,
701 BITFIELD_FIELD(unsigned int base : 5,
702 BITFIELD_FIELD(unsigned int rd : 5,
703/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
704 BITFIELD_FIELD(unsigned int func : 11,
705 ;)))))
706};
707struct mm_b0_format {
708/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
709 BITFIELD_FIELD(unsigned int opcode : 6,
710 BITFIELD_FIELD(signed int simmediate : 10,
711 BITFIELD_FIELD(unsigned int : 16,
712 ;)))
713/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
714};
715struct mm_b1_format {
716 BITFIELD_FIELD(unsigned int opcode : 6,
717 BITFIELD_FIELD(unsigned int rs : 3,
718/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
719 BITFIELD_FIELD(signed int simmediate : 7,
720 BITFIELD_FIELD(unsigned int : 16,
721 ;))))
722};
723/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
724struct mm16_m_format {
725 BITFIELD_FIELD(unsigned int opcode : 6,
726 BITFIELD_FIELD(unsigned int func : 4,
727 BITFIELD_FIELD(unsigned int rlist : 2,
728/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
729 BITFIELD_FIELD(unsigned int imm : 4,
730 BITFIELD_FIELD(unsigned int : 16,
731 ;)))))
732};
733/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
734struct mm16_rb_format {
735 BITFIELD_FIELD(unsigned int opcode : 6,
736 BITFIELD_FIELD(unsigned int rt : 3,
737 BITFIELD_FIELD(unsigned int base : 3,
738/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
739 BITFIELD_FIELD(signed int simmediate : 4,
740 BITFIELD_FIELD(unsigned int : 16,
741 ;)))))
742};
743/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
744struct mm16_r3_format {
745 BITFIELD_FIELD(unsigned int opcode : 6,
746 BITFIELD_FIELD(unsigned int rt : 3,
747 BITFIELD_FIELD(signed int simmediate : 7,
748/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
749 BITFIELD_FIELD(unsigned int : 16,
750 ;))))
751};
752struct mm16_r5_format {
753/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
754 BITFIELD_FIELD(unsigned int opcode : 6,
755 BITFIELD_FIELD(unsigned int rt : 5,
756 BITFIELD_FIELD(signed int simmediate : 5,
757 BITFIELD_FIELD(unsigned int : 16,
758/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
759 ;))))
760};
761struct m16e_rr {
762 BITFIELD_FIELD(unsigned int opcode : 5,
763/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
764 BITFIELD_FIELD(unsigned int rx : 3,
765 BITFIELD_FIELD(unsigned int nd : 1,
766 BITFIELD_FIELD(unsigned int l : 1,
767 BITFIELD_FIELD(unsigned int ra : 1,
768/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
769 BITFIELD_FIELD(unsigned int func : 5,
770 ;))))))
771};
772struct m16e_jal {
773/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
774 BITFIELD_FIELD(unsigned int opcode : 5,
775 BITFIELD_FIELD(unsigned int x : 1,
776 BITFIELD_FIELD(unsigned int imm20_16 : 5,
777 BITFIELD_FIELD(signed int imm25_21 : 5,
778/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
779 ;))))
780};
781struct m16e_i64 {
782 BITFIELD_FIELD(unsigned int opcode : 5,
783/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
784 BITFIELD_FIELD(unsigned int func : 3,
785 BITFIELD_FIELD(unsigned int imm : 8,
786 ;)))
787};
788/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
789struct m16e_ri64 {
790 BITFIELD_FIELD(unsigned int opcode : 5,
791 BITFIELD_FIELD(unsigned int func : 3,
792 BITFIELD_FIELD(unsigned int ry : 3,
793/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
794 BITFIELD_FIELD(unsigned int imm : 5,
795 ;))))
796};
797struct m16e_ri {
798/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
799 BITFIELD_FIELD(unsigned int opcode : 5,
800 BITFIELD_FIELD(unsigned int rx : 3,
801 BITFIELD_FIELD(unsigned int imm : 8,
802 ;)))
803/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
804};
805struct m16e_rri {
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 ry : 3,
810 BITFIELD_FIELD(unsigned int imm : 5,
811 ;))))
812};
813/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
814struct m16e_i8 {
815 BITFIELD_FIELD(unsigned int opcode : 5,
816 BITFIELD_FIELD(unsigned int func : 3,
817 BITFIELD_FIELD(unsigned int imm : 8,
818/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
819 ;)))
820};
821union mips_instruction {
822 unsigned int word;
823/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
824 unsigned short halfword[2];
825 unsigned char byte[4];
826 struct j_format j_format;
827 struct i_format i_format;
828/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
829 struct u_format u_format;
830 struct c_format c_format;
831 struct r_format r_format;
832 struct p_format p_format;
833/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
834 struct f_format f_format;
835 struct ma_format ma_format;
836 struct b_format b_format;
837 struct ps_format ps_format;
838/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
839 struct v_format v_format;
840 struct fb_format fb_format;
841 struct fp0_format fp0_format;
842 struct mm_fp0_format mm_fp0_format;
843/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
844 struct fp1_format fp1_format;
845 struct mm_fp1_format mm_fp1_format;
846 struct mm_fp2_format mm_fp2_format;
847 struct mm_fp3_format mm_fp3_format;
848/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
849 struct mm_fp4_format mm_fp4_format;
850 struct mm_fp5_format mm_fp5_format;
851 struct fp6_format fp6_format;
852 struct mm_fp6_format mm_fp6_format;
853/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
854 struct mm_i_format mm_i_format;
855 struct mm_m_format mm_m_format;
856 struct mm_x_format mm_x_format;
857 struct mm_b0_format mm_b0_format;
858/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
859 struct mm_b1_format mm_b1_format;
860 struct mm16_m_format mm16_m_format ;
861 struct mm16_rb_format mm16_rb_format;
862 struct mm16_r3_format mm16_r3_format;
863/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
864 struct mm16_r5_format mm16_r5_format;
865};
866union mips16e_instruction {
867 unsigned int full : 16;
868/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
869 struct m16e_rr rr;
870 struct m16e_jal jal;
871 struct m16e_i64 i64;
872 struct m16e_ri64 ri64;
873/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
874 struct m16e_ri ri;
875 struct m16e_rri rri;
876 struct m16e_i8 i8;
877};
878/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
879#endif
880