1 /* CPU family header for m32rx.
3 This file is machine generated with CGEN.
5 Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
7 This file is part of the GNU Simulators.
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2, or (at your option)
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License along
20 with this program; if not, write to the Free Software Foundation, Inc.,
21 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
28 /* Maximum number of instructions that are fetched at a time.
29 This is for LIW type instructions sets (e.g. m32r). */
30 #define MAX_LIW_INSNS 2
32 /* Maximum number of instructions that can be executed in parallel. */
33 #define MAX_PARALLEL_INSNS 2
35 /* CPU state information. */
37 /* Hardware elements. */
41 #define GET_H_PC() CPU (h_pc)
42 #define SET_H_PC(x) (CPU (h_pc) = (x))
43 /* general registers */
45 #define GET_H_GR(a1) CPU (h_gr)[a1]
46 #define SET_H_GR(a1, x) (CPU (h_gr)[a1] = (x))
47 /* control registers */
49 #define GET_H_CR(a1) CPU (h_cr)[a1]
50 #define SET_H_CR(a1, x) (CPU (h_cr)[a1] = (x))
53 #define GET_H_ACCUM() CPU (h_accum)
54 #define SET_H_ACCUM(x) (CPU (h_accum) = (x))
55 /* start-sanitize-m32rx */
58 /* end-sanitize-m32rx */
59 #define GET_H_ACCUMS(a1) CPU (h_accums)[a1]
60 #define SET_H_ACCUMS(a1, x) (CPU (h_accums)[a1] = (x))
61 /* start-sanitize-m32rx */
64 /* end-sanitize-m32rx */
65 #define GET_H_ABORT() CPU (h_abort)
66 #define SET_H_ABORT(x) (CPU (h_abort) = (x))
69 #define GET_H_COND() CPU (h_cond)
70 #define SET_H_COND(x) (CPU (h_cond) = (x))
73 #define GET_H_SM() CPU (h_sm)
74 #define SET_H_SM(x) (CPU (h_sm) = (x))
77 #define GET_H_BSM() CPU (h_bsm)
78 #define SET_H_BSM(x) (CPU (h_bsm) = (x))
81 #define GET_H_IE() CPU (h_ie)
82 #define SET_H_IE(x) (CPU (h_ie) = (x))
85 #define GET_H_BIE() CPU (h_bie)
86 #define SET_H_BIE(x) (CPU (h_bie) = (x))
89 #define GET_H_BCOND() CPU (h_bcond)
90 #define SET_H_BCOND(x) (CPU (h_bcond) = (x))
93 #define GET_H_BPC() CPU (h_bpc)
94 #define SET_H_BPC(x) (CPU (h_bpc) = (x))
97 #define GET_H_LOCK() CPU (h_lock)
98 #define SET_H_LOCK(x) (CPU (h_lock) = (x))
100 #define CPU_CGEN_HW(cpu) (& (cpu)->cpu_data.hardware)
101 /* CPU profiling state information. */
103 /* general registers */
106 #define CPU_CGEN_PROFILE(cpu) (& (cpu)->cpu_data.profile)
109 USI m32rx_h_pc_get (SIM_CPU *);
110 void m32rx_h_pc_set (SIM_CPU *, USI);
111 SI m32rx_h_gr_get (SIM_CPU *, UINT);
112 void m32rx_h_gr_set (SIM_CPU *, UINT, SI);
113 USI m32rx_h_cr_get (SIM_CPU *, UINT);
114 void m32rx_h_cr_set (SIM_CPU *, UINT, USI);
115 DI m32rx_h_accum_get (SIM_CPU *);
116 void m32rx_h_accum_set (SIM_CPU *, DI);
117 DI m32rx_h_accums_get (SIM_CPU *, UINT);
118 void m32rx_h_accums_set (SIM_CPU *, UINT, DI);
119 UBI m32rx_h_abort_get (SIM_CPU *);
120 void m32rx_h_abort_set (SIM_CPU *, UBI);
121 UBI m32rx_h_cond_get (SIM_CPU *);
122 void m32rx_h_cond_set (SIM_CPU *, UBI);
123 UBI m32rx_h_sm_get (SIM_CPU *);
124 void m32rx_h_sm_set (SIM_CPU *, UBI);
125 UBI m32rx_h_bsm_get (SIM_CPU *);
126 void m32rx_h_bsm_set (SIM_CPU *, UBI);
127 UBI m32rx_h_ie_get (SIM_CPU *);
128 void m32rx_h_ie_set (SIM_CPU *, UBI);
129 UBI m32rx_h_bie_get (SIM_CPU *);
130 void m32rx_h_bie_set (SIM_CPU *, UBI);
131 UBI m32rx_h_bcond_get (SIM_CPU *);
132 void m32rx_h_bcond_set (SIM_CPU *, UBI);
133 SI m32rx_h_bpc_get (SIM_CPU *);
134 void m32rx_h_bpc_set (SIM_CPU *, SI);
135 UBI m32rx_h_lock_get (SIM_CPU *);
136 void m32rx_h_lock_set (SIM_CPU *, UBI);
137 extern DECODE *m32rx_decode (SIM_CPU *, PCADDR, insn_t);
139 /* The ARGBUF struct. */
141 /* These are the baseclass definitions. */
144 const struct cgen_insn *opcode;
145 #if ! defined (SCACHE_P)
148 /* cpu specific data follows */
150 struct { /* e.g. add $dr,$sr */
154 struct { /* e.g. add3 $dr,$sr,#$slo16 */
159 struct { /* e.g. and3 $dr,$sr,#$uimm16 */
164 struct { /* e.g. or3 $dr,$sr,#$ulo16 */
169 struct { /* e.g. addi $dr,#$simm8 */
173 struct { /* e.g. addv $dr,$sr */
177 struct { /* e.g. addv3 $dr,$sr,#$simm16 */
182 struct { /* e.g. addx $dr,$sr */
186 struct { /* e.g. bc $disp8 */
189 struct { /* e.g. bc $disp24 */
192 struct { /* e.g. beq $src1,$src2,$disp16 */
197 struct { /* e.g. beqz $src2,$disp16 */
201 struct { /* e.g. bl $disp8 */
204 struct { /* e.g. bl $disp24 */
207 struct { /* e.g. bcl $disp8 */
210 struct { /* e.g. bcl $disp24 */
213 struct { /* e.g. bra $disp8 */
216 struct { /* e.g. bra $disp24 */
219 struct { /* e.g. cmp $src1,$src2 */
223 struct { /* e.g. cmpi $src2,#$simm16 */
227 struct { /* e.g. cmpui $src2,#$uimm16 */
231 struct { /* e.g. cmpz $src2 */
234 struct { /* e.g. div $dr,$sr */
238 struct { /* e.g. jc $sr */
241 struct { /* e.g. jl $sr */
244 struct { /* e.g. jmp $sr */
247 struct { /* e.g. ld $dr,@$sr */
251 struct { /* e.g. ld $dr,@($slo16,$sr) */
256 struct { /* e.g. ldb $dr,@$sr */
260 struct { /* e.g. ldb $dr,@($slo16,$sr) */
265 struct { /* e.g. ldh $dr,@$sr */
269 struct { /* e.g. ldh $dr,@($slo16,$sr) */
274 struct { /* e.g. ld $dr,@$sr+ */
278 struct { /* e.g. ld24 $dr,#$uimm24 */
282 struct { /* e.g. ldi $dr,#$simm8 */
286 struct { /* e.g. ldi $dr,$slo16 */
290 struct { /* e.g. lock $dr,@$sr */
294 struct { /* e.g. machi $src1,$src2,$acc */
299 struct { /* e.g. mulhi $src1,$src2,$acc */
304 struct { /* e.g. mv $dr,$sr */
308 struct { /* e.g. mvfachi $dr,$accs */
312 struct { /* e.g. mvfc $dr,$scr */
316 struct { /* e.g. mvtachi $src1,$accs */
320 struct { /* e.g. mvtc $sr,$dcr */
324 struct { /* e.g. nop */
327 struct { /* e.g. rac $accd,$accs,#$imm1 */
332 struct { /* e.g. rte */
335 struct { /* e.g. seth $dr,#$hi16 */
339 struct { /* e.g. sll3 $dr,$sr,#$simm16 */
344 struct { /* e.g. slli $dr,#$uimm5 */
348 struct { /* e.g. st $src1,@$src2 */
352 struct { /* e.g. st $src1,@($slo16,$src2) */
357 struct { /* e.g. stb $src1,@$src2 */
361 struct { /* e.g. stb $src1,@($slo16,$src2) */
366 struct { /* e.g. sth $src1,@$src2 */
370 struct { /* e.g. sth $src1,@($slo16,$src2) */
375 struct { /* e.g. st $src1,@+$src2 */
379 struct { /* e.g. trap #$uimm4 */
382 struct { /* e.g. unlock $src1,@$src2 */
386 struct { /* e.g. satb $dr,$sr */
390 struct { /* e.g. sat $dr,$sr */
394 struct { /* e.g. sadd */
397 struct { /* e.g. macwu1 $src1,$src2 */
401 struct { /* e.g. msblo $src1,$src2 */
405 struct { /* e.g. mulwu1 $src1,$src2 */
409 struct { /* e.g. sc */
413 #if 1 || WITH_PROFILE_MODEL_P /*FIXME:wip*/
414 unsigned long h_gr_get;
415 unsigned long h_gr_set;
420 This is currently also used in the non-scache case. In this situation we
421 assume the cache size is 1, and do a few things a little differently. */
422 /* FIXME: non-scache version to be redone. */
427 #if ! WITH_SEM_SWITCH_FULL
430 #if ! WITH_SEM_SWITCH_FAST
431 SEMANTIC_FN *sem_fast_fn;
433 #if WITH_SEM_SWITCH_FULL || WITH_SEM_SWITCH_FAST
441 struct argbuf argbuf;
444 /* Macros to simplify extraction, reading and semantic code.
445 These define and assign the local vars that contain the insn's fields. */
447 #define EXTRACT_FMT_0_ADD_VARS \
448 /* Instruction fields. */ \
454 #define EXTRACT_FMT_0_ADD_CODE \
456 f_op1 = EXTRACT_UNSIGNED (insn, 16, 0, 4); \
457 f_r1 = EXTRACT_UNSIGNED (insn, 16, 4, 4); \
458 f_op2 = EXTRACT_UNSIGNED (insn, 16, 8, 4); \
459 f_r2 = EXTRACT_UNSIGNED (insn, 16, 12, 4); \
461 #define EXTRACT_FMT_1_ADD3_VARS \
462 /* Instruction fields. */ \
469 #define EXTRACT_FMT_1_ADD3_CODE \
471 f_op1 = EXTRACT_UNSIGNED (insn, 32, 0, 4); \
472 f_r1 = EXTRACT_UNSIGNED (insn, 32, 4, 4); \
473 f_op2 = EXTRACT_UNSIGNED (insn, 32, 8, 4); \
474 f_r2 = EXTRACT_UNSIGNED (insn, 32, 12, 4); \
475 f_simm16 = EXTRACT_SIGNED (insn, 32, 16, 16); \
477 #define EXTRACT_FMT_2_AND3_VARS \
478 /* Instruction fields. */ \
485 #define EXTRACT_FMT_2_AND3_CODE \
487 f_op1 = EXTRACT_UNSIGNED (insn, 32, 0, 4); \
488 f_r1 = EXTRACT_UNSIGNED (insn, 32, 4, 4); \
489 f_op2 = EXTRACT_UNSIGNED (insn, 32, 8, 4); \
490 f_r2 = EXTRACT_UNSIGNED (insn, 32, 12, 4); \
491 f_uimm16 = EXTRACT_UNSIGNED (insn, 32, 16, 16); \
493 #define EXTRACT_FMT_3_OR3_VARS \
494 /* Instruction fields. */ \
501 #define EXTRACT_FMT_3_OR3_CODE \
503 f_op1 = EXTRACT_UNSIGNED (insn, 32, 0, 4); \
504 f_r1 = EXTRACT_UNSIGNED (insn, 32, 4, 4); \
505 f_op2 = EXTRACT_UNSIGNED (insn, 32, 8, 4); \
506 f_r2 = EXTRACT_UNSIGNED (insn, 32, 12, 4); \
507 f_uimm16 = EXTRACT_UNSIGNED (insn, 32, 16, 16); \
509 #define EXTRACT_FMT_4_ADDI_VARS \
510 /* Instruction fields. */ \
515 #define EXTRACT_FMT_4_ADDI_CODE \
517 f_op1 = EXTRACT_UNSIGNED (insn, 16, 0, 4); \
518 f_r1 = EXTRACT_UNSIGNED (insn, 16, 4, 4); \
519 f_simm8 = EXTRACT_SIGNED (insn, 16, 8, 8); \
521 #define EXTRACT_FMT_5_ADDV_VARS \
522 /* Instruction fields. */ \
528 #define EXTRACT_FMT_5_ADDV_CODE \
530 f_op1 = EXTRACT_UNSIGNED (insn, 16, 0, 4); \
531 f_r1 = EXTRACT_UNSIGNED (insn, 16, 4, 4); \
532 f_op2 = EXTRACT_UNSIGNED (insn, 16, 8, 4); \
533 f_r2 = EXTRACT_UNSIGNED (insn, 16, 12, 4); \
535 #define EXTRACT_FMT_6_ADDV3_VARS \
536 /* Instruction fields. */ \
543 #define EXTRACT_FMT_6_ADDV3_CODE \
545 f_op1 = EXTRACT_UNSIGNED (insn, 32, 0, 4); \
546 f_r1 = EXTRACT_UNSIGNED (insn, 32, 4, 4); \
547 f_op2 = EXTRACT_UNSIGNED (insn, 32, 8, 4); \
548 f_r2 = EXTRACT_UNSIGNED (insn, 32, 12, 4); \
549 f_simm16 = EXTRACT_SIGNED (insn, 32, 16, 16); \
551 #define EXTRACT_FMT_7_ADDX_VARS \
552 /* Instruction fields. */ \
558 #define EXTRACT_FMT_7_ADDX_CODE \
560 f_op1 = EXTRACT_UNSIGNED (insn, 16, 0, 4); \
561 f_r1 = EXTRACT_UNSIGNED (insn, 16, 4, 4); \
562 f_op2 = EXTRACT_UNSIGNED (insn, 16, 8, 4); \
563 f_r2 = EXTRACT_UNSIGNED (insn, 16, 12, 4); \
565 #define EXTRACT_FMT_8_BC8_VARS \
566 /* Instruction fields. */ \
571 #define EXTRACT_FMT_8_BC8_CODE \
573 f_op1 = EXTRACT_UNSIGNED (insn, 16, 0, 4); \
574 f_r1 = EXTRACT_UNSIGNED (insn, 16, 4, 4); \
575 f_disp8 = ((EXTRACT_SIGNED (insn, 16, 8, 8)) << (2)); \
577 #define EXTRACT_FMT_9_BC24_VARS \
578 /* Instruction fields. */ \
583 #define EXTRACT_FMT_9_BC24_CODE \
585 f_op1 = EXTRACT_UNSIGNED (insn, 32, 0, 4); \
586 f_r1 = EXTRACT_UNSIGNED (insn, 32, 4, 4); \
587 f_disp24 = ((EXTRACT_SIGNED (insn, 32, 8, 24)) << (2)); \
589 #define EXTRACT_FMT_10_BEQ_VARS \
590 /* Instruction fields. */ \
597 #define EXTRACT_FMT_10_BEQ_CODE \
599 f_op1 = EXTRACT_UNSIGNED (insn, 32, 0, 4); \
600 f_r1 = EXTRACT_UNSIGNED (insn, 32, 4, 4); \
601 f_op2 = EXTRACT_UNSIGNED (insn, 32, 8, 4); \
602 f_r2 = EXTRACT_UNSIGNED (insn, 32, 12, 4); \
603 f_disp16 = ((EXTRACT_SIGNED (insn, 32, 16, 16)) << (2)); \
605 #define EXTRACT_FMT_11_BEQZ_VARS \
606 /* Instruction fields. */ \
613 #define EXTRACT_FMT_11_BEQZ_CODE \
615 f_op1 = EXTRACT_UNSIGNED (insn, 32, 0, 4); \
616 f_r1 = EXTRACT_UNSIGNED (insn, 32, 4, 4); \
617 f_op2 = EXTRACT_UNSIGNED (insn, 32, 8, 4); \
618 f_r2 = EXTRACT_UNSIGNED (insn, 32, 12, 4); \
619 f_disp16 = ((EXTRACT_SIGNED (insn, 32, 16, 16)) << (2)); \
621 #define EXTRACT_FMT_12_BL8_VARS \
622 /* Instruction fields. */ \
627 #define EXTRACT_FMT_12_BL8_CODE \
629 f_op1 = EXTRACT_UNSIGNED (insn, 16, 0, 4); \
630 f_r1 = EXTRACT_UNSIGNED (insn, 16, 4, 4); \
631 f_disp8 = ((EXTRACT_SIGNED (insn, 16, 8, 8)) << (2)); \
633 #define EXTRACT_FMT_13_BL24_VARS \
634 /* Instruction fields. */ \
639 #define EXTRACT_FMT_13_BL24_CODE \
641 f_op1 = EXTRACT_UNSIGNED (insn, 32, 0, 4); \
642 f_r1 = EXTRACT_UNSIGNED (insn, 32, 4, 4); \
643 f_disp24 = ((EXTRACT_SIGNED (insn, 32, 8, 24)) << (2)); \
645 #define EXTRACT_FMT_14_BCL8_VARS \
646 /* Instruction fields. */ \
651 #define EXTRACT_FMT_14_BCL8_CODE \
653 f_op1 = EXTRACT_UNSIGNED (insn, 16, 0, 4); \
654 f_r1 = EXTRACT_UNSIGNED (insn, 16, 4, 4); \
655 f_disp8 = ((EXTRACT_SIGNED (insn, 16, 8, 8)) << (2)); \
657 #define EXTRACT_FMT_15_BCL24_VARS \
658 /* Instruction fields. */ \
663 #define EXTRACT_FMT_15_BCL24_CODE \
665 f_op1 = EXTRACT_UNSIGNED (insn, 32, 0, 4); \
666 f_r1 = EXTRACT_UNSIGNED (insn, 32, 4, 4); \
667 f_disp24 = ((EXTRACT_SIGNED (insn, 32, 8, 24)) << (2)); \
669 #define EXTRACT_FMT_16_BRA8_VARS \
670 /* Instruction fields. */ \
675 #define EXTRACT_FMT_16_BRA8_CODE \
677 f_op1 = EXTRACT_UNSIGNED (insn, 16, 0, 4); \
678 f_r1 = EXTRACT_UNSIGNED (insn, 16, 4, 4); \
679 f_disp8 = ((EXTRACT_SIGNED (insn, 16, 8, 8)) << (2)); \
681 #define EXTRACT_FMT_17_BRA24_VARS \
682 /* Instruction fields. */ \
687 #define EXTRACT_FMT_17_BRA24_CODE \
689 f_op1 = EXTRACT_UNSIGNED (insn, 32, 0, 4); \
690 f_r1 = EXTRACT_UNSIGNED (insn, 32, 4, 4); \
691 f_disp24 = ((EXTRACT_SIGNED (insn, 32, 8, 24)) << (2)); \
693 #define EXTRACT_FMT_18_CMP_VARS \
694 /* Instruction fields. */ \
700 #define EXTRACT_FMT_18_CMP_CODE \
702 f_op1 = EXTRACT_UNSIGNED (insn, 16, 0, 4); \
703 f_r1 = EXTRACT_UNSIGNED (insn, 16, 4, 4); \
704 f_op2 = EXTRACT_UNSIGNED (insn, 16, 8, 4); \
705 f_r2 = EXTRACT_UNSIGNED (insn, 16, 12, 4); \
707 #define EXTRACT_FMT_19_CMPI_VARS \
708 /* Instruction fields. */ \
715 #define EXTRACT_FMT_19_CMPI_CODE \
717 f_op1 = EXTRACT_UNSIGNED (insn, 32, 0, 4); \
718 f_r1 = EXTRACT_UNSIGNED (insn, 32, 4, 4); \
719 f_op2 = EXTRACT_UNSIGNED (insn, 32, 8, 4); \
720 f_r2 = EXTRACT_UNSIGNED (insn, 32, 12, 4); \
721 f_simm16 = EXTRACT_SIGNED (insn, 32, 16, 16); \
723 #define EXTRACT_FMT_20_CMPUI_VARS \
724 /* Instruction fields. */ \
731 #define EXTRACT_FMT_20_CMPUI_CODE \
733 f_op1 = EXTRACT_UNSIGNED (insn, 32, 0, 4); \
734 f_r1 = EXTRACT_UNSIGNED (insn, 32, 4, 4); \
735 f_op2 = EXTRACT_UNSIGNED (insn, 32, 8, 4); \
736 f_r2 = EXTRACT_UNSIGNED (insn, 32, 12, 4); \
737 f_uimm16 = EXTRACT_UNSIGNED (insn, 32, 16, 16); \
739 #define EXTRACT_FMT_21_CMPZ_VARS \
740 /* Instruction fields. */ \
746 #define EXTRACT_FMT_21_CMPZ_CODE \
748 f_op1 = EXTRACT_UNSIGNED (insn, 16, 0, 4); \
749 f_r1 = EXTRACT_UNSIGNED (insn, 16, 4, 4); \
750 f_op2 = EXTRACT_UNSIGNED (insn, 16, 8, 4); \
751 f_r2 = EXTRACT_UNSIGNED (insn, 16, 12, 4); \
753 #define EXTRACT_FMT_22_DIV_VARS \
754 /* Instruction fields. */ \
761 #define EXTRACT_FMT_22_DIV_CODE \
763 f_op1 = EXTRACT_UNSIGNED (insn, 32, 0, 4); \
764 f_r1 = EXTRACT_UNSIGNED (insn, 32, 4, 4); \
765 f_op2 = EXTRACT_UNSIGNED (insn, 32, 8, 4); \
766 f_r2 = EXTRACT_UNSIGNED (insn, 32, 12, 4); \
767 f_simm16 = EXTRACT_SIGNED (insn, 32, 16, 16); \
769 #define EXTRACT_FMT_23_JC_VARS \
770 /* Instruction fields. */ \
776 #define EXTRACT_FMT_23_JC_CODE \
778 f_op1 = EXTRACT_UNSIGNED (insn, 16, 0, 4); \
779 f_r1 = EXTRACT_UNSIGNED (insn, 16, 4, 4); \
780 f_op2 = EXTRACT_UNSIGNED (insn, 16, 8, 4); \
781 f_r2 = EXTRACT_UNSIGNED (insn, 16, 12, 4); \
783 #define EXTRACT_FMT_24_JL_VARS \
784 /* Instruction fields. */ \
790 #define EXTRACT_FMT_24_JL_CODE \
792 f_op1 = EXTRACT_UNSIGNED (insn, 16, 0, 4); \
793 f_r1 = EXTRACT_UNSIGNED (insn, 16, 4, 4); \
794 f_op2 = EXTRACT_UNSIGNED (insn, 16, 8, 4); \
795 f_r2 = EXTRACT_UNSIGNED (insn, 16, 12, 4); \
797 #define EXTRACT_FMT_25_JMP_VARS \
798 /* Instruction fields. */ \
804 #define EXTRACT_FMT_25_JMP_CODE \
806 f_op1 = EXTRACT_UNSIGNED (insn, 16, 0, 4); \
807 f_r1 = EXTRACT_UNSIGNED (insn, 16, 4, 4); \
808 f_op2 = EXTRACT_UNSIGNED (insn, 16, 8, 4); \
809 f_r2 = EXTRACT_UNSIGNED (insn, 16, 12, 4); \
811 #define EXTRACT_FMT_26_LD_VARS \
812 /* Instruction fields. */ \
818 #define EXTRACT_FMT_26_LD_CODE \
820 f_op1 = EXTRACT_UNSIGNED (insn, 16, 0, 4); \
821 f_r1 = EXTRACT_UNSIGNED (insn, 16, 4, 4); \
822 f_op2 = EXTRACT_UNSIGNED (insn, 16, 8, 4); \
823 f_r2 = EXTRACT_UNSIGNED (insn, 16, 12, 4); \
825 #define EXTRACT_FMT_27_LD_D_VARS \
826 /* Instruction fields. */ \
833 #define EXTRACT_FMT_27_LD_D_CODE \
835 f_op1 = EXTRACT_UNSIGNED (insn, 32, 0, 4); \
836 f_r1 = EXTRACT_UNSIGNED (insn, 32, 4, 4); \
837 f_op2 = EXTRACT_UNSIGNED (insn, 32, 8, 4); \
838 f_r2 = EXTRACT_UNSIGNED (insn, 32, 12, 4); \
839 f_simm16 = EXTRACT_SIGNED (insn, 32, 16, 16); \
841 #define EXTRACT_FMT_28_LDB_VARS \
842 /* Instruction fields. */ \
848 #define EXTRACT_FMT_28_LDB_CODE \
850 f_op1 = EXTRACT_UNSIGNED (insn, 16, 0, 4); \
851 f_r1 = EXTRACT_UNSIGNED (insn, 16, 4, 4); \
852 f_op2 = EXTRACT_UNSIGNED (insn, 16, 8, 4); \
853 f_r2 = EXTRACT_UNSIGNED (insn, 16, 12, 4); \
855 #define EXTRACT_FMT_29_LDB_D_VARS \
856 /* Instruction fields. */ \
863 #define EXTRACT_FMT_29_LDB_D_CODE \
865 f_op1 = EXTRACT_UNSIGNED (insn, 32, 0, 4); \
866 f_r1 = EXTRACT_UNSIGNED (insn, 32, 4, 4); \
867 f_op2 = EXTRACT_UNSIGNED (insn, 32, 8, 4); \
868 f_r2 = EXTRACT_UNSIGNED (insn, 32, 12, 4); \
869 f_simm16 = EXTRACT_SIGNED (insn, 32, 16, 16); \
871 #define EXTRACT_FMT_30_LDH_VARS \
872 /* Instruction fields. */ \
878 #define EXTRACT_FMT_30_LDH_CODE \
880 f_op1 = EXTRACT_UNSIGNED (insn, 16, 0, 4); \
881 f_r1 = EXTRACT_UNSIGNED (insn, 16, 4, 4); \
882 f_op2 = EXTRACT_UNSIGNED (insn, 16, 8, 4); \
883 f_r2 = EXTRACT_UNSIGNED (insn, 16, 12, 4); \
885 #define EXTRACT_FMT_31_LDH_D_VARS \
886 /* Instruction fields. */ \
893 #define EXTRACT_FMT_31_LDH_D_CODE \
895 f_op1 = EXTRACT_UNSIGNED (insn, 32, 0, 4); \
896 f_r1 = EXTRACT_UNSIGNED (insn, 32, 4, 4); \
897 f_op2 = EXTRACT_UNSIGNED (insn, 32, 8, 4); \
898 f_r2 = EXTRACT_UNSIGNED (insn, 32, 12, 4); \
899 f_simm16 = EXTRACT_SIGNED (insn, 32, 16, 16); \
901 #define EXTRACT_FMT_32_LD_PLUS_VARS \
902 /* Instruction fields. */ \
908 #define EXTRACT_FMT_32_LD_PLUS_CODE \
910 f_op1 = EXTRACT_UNSIGNED (insn, 16, 0, 4); \
911 f_r1 = EXTRACT_UNSIGNED (insn, 16, 4, 4); \
912 f_op2 = EXTRACT_UNSIGNED (insn, 16, 8, 4); \
913 f_r2 = EXTRACT_UNSIGNED (insn, 16, 12, 4); \
915 #define EXTRACT_FMT_33_LD24_VARS \
916 /* Instruction fields. */ \
921 #define EXTRACT_FMT_33_LD24_CODE \
923 f_op1 = EXTRACT_UNSIGNED (insn, 32, 0, 4); \
924 f_r1 = EXTRACT_UNSIGNED (insn, 32, 4, 4); \
925 f_uimm24 = EXTRACT_UNSIGNED (insn, 32, 8, 24); \
927 #define EXTRACT_FMT_34_LDI8_VARS \
928 /* Instruction fields. */ \
933 #define EXTRACT_FMT_34_LDI8_CODE \
935 f_op1 = EXTRACT_UNSIGNED (insn, 16, 0, 4); \
936 f_r1 = EXTRACT_UNSIGNED (insn, 16, 4, 4); \
937 f_simm8 = EXTRACT_SIGNED (insn, 16, 8, 8); \
939 #define EXTRACT_FMT_35_LDI16_VARS \
940 /* Instruction fields. */ \
947 #define EXTRACT_FMT_35_LDI16_CODE \
949 f_op1 = EXTRACT_UNSIGNED (insn, 32, 0, 4); \
950 f_r1 = EXTRACT_UNSIGNED (insn, 32, 4, 4); \
951 f_op2 = EXTRACT_UNSIGNED (insn, 32, 8, 4); \
952 f_r2 = EXTRACT_UNSIGNED (insn, 32, 12, 4); \
953 f_simm16 = EXTRACT_SIGNED (insn, 32, 16, 16); \
955 #define EXTRACT_FMT_36_LOCK_VARS \
956 /* Instruction fields. */ \
962 #define EXTRACT_FMT_36_LOCK_CODE \
964 f_op1 = EXTRACT_UNSIGNED (insn, 16, 0, 4); \
965 f_r1 = EXTRACT_UNSIGNED (insn, 16, 4, 4); \
966 f_op2 = EXTRACT_UNSIGNED (insn, 16, 8, 4); \
967 f_r2 = EXTRACT_UNSIGNED (insn, 16, 12, 4); \
969 #define EXTRACT_FMT_37_MACHI_A_VARS \
970 /* Instruction fields. */ \
977 #define EXTRACT_FMT_37_MACHI_A_CODE \
979 f_op1 = EXTRACT_UNSIGNED (insn, 16, 0, 4); \
980 f_r1 = EXTRACT_UNSIGNED (insn, 16, 4, 4); \
981 f_acc = EXTRACT_UNSIGNED (insn, 16, 8, 1); \
982 f_op23 = EXTRACT_UNSIGNED (insn, 16, 9, 3); \
983 f_r2 = EXTRACT_UNSIGNED (insn, 16, 12, 4); \
985 #define EXTRACT_FMT_38_MULHI_A_VARS \
986 /* Instruction fields. */ \
993 #define EXTRACT_FMT_38_MULHI_A_CODE \
995 f_op1 = EXTRACT_UNSIGNED (insn, 16, 0, 4); \
996 f_r1 = EXTRACT_UNSIGNED (insn, 16, 4, 4); \
997 f_acc = EXTRACT_UNSIGNED (insn, 16, 8, 1); \
998 f_op23 = EXTRACT_UNSIGNED (insn, 16, 9, 3); \
999 f_r2 = EXTRACT_UNSIGNED (insn, 16, 12, 4); \
1001 #define EXTRACT_FMT_39_MV_VARS \
1002 /* Instruction fields. */ \
1007 unsigned int length;
1008 #define EXTRACT_FMT_39_MV_CODE \
1010 f_op1 = EXTRACT_UNSIGNED (insn, 16, 0, 4); \
1011 f_r1 = EXTRACT_UNSIGNED (insn, 16, 4, 4); \
1012 f_op2 = EXTRACT_UNSIGNED (insn, 16, 8, 4); \
1013 f_r2 = EXTRACT_UNSIGNED (insn, 16, 12, 4); \
1015 #define EXTRACT_FMT_40_MVFACHI_A_VARS \
1016 /* Instruction fields. */ \
1022 unsigned int length;
1023 #define EXTRACT_FMT_40_MVFACHI_A_CODE \
1025 f_op1 = EXTRACT_UNSIGNED (insn, 16, 0, 4); \
1026 f_r1 = EXTRACT_UNSIGNED (insn, 16, 4, 4); \
1027 f_op2 = EXTRACT_UNSIGNED (insn, 16, 8, 4); \
1028 f_accs = EXTRACT_UNSIGNED (insn, 16, 12, 2); \
1029 f_op3 = EXTRACT_UNSIGNED (insn, 16, 14, 2); \
1031 #define EXTRACT_FMT_41_MVFC_VARS \
1032 /* Instruction fields. */ \
1037 unsigned int length;
1038 #define EXTRACT_FMT_41_MVFC_CODE \
1040 f_op1 = EXTRACT_UNSIGNED (insn, 16, 0, 4); \
1041 f_r1 = EXTRACT_UNSIGNED (insn, 16, 4, 4); \
1042 f_op2 = EXTRACT_UNSIGNED (insn, 16, 8, 4); \
1043 f_r2 = EXTRACT_UNSIGNED (insn, 16, 12, 4); \
1045 #define EXTRACT_FMT_42_MVTACHI_A_VARS \
1046 /* Instruction fields. */ \
1052 unsigned int length;
1053 #define EXTRACT_FMT_42_MVTACHI_A_CODE \
1055 f_op1 = EXTRACT_UNSIGNED (insn, 16, 0, 4); \
1056 f_r1 = EXTRACT_UNSIGNED (insn, 16, 4, 4); \
1057 f_op2 = EXTRACT_UNSIGNED (insn, 16, 8, 4); \
1058 f_accs = EXTRACT_UNSIGNED (insn, 16, 12, 2); \
1059 f_op3 = EXTRACT_UNSIGNED (insn, 16, 14, 2); \
1061 #define EXTRACT_FMT_43_MVTC_VARS \
1062 /* Instruction fields. */ \
1067 unsigned int length;
1068 #define EXTRACT_FMT_43_MVTC_CODE \
1070 f_op1 = EXTRACT_UNSIGNED (insn, 16, 0, 4); \
1071 f_r1 = EXTRACT_UNSIGNED (insn, 16, 4, 4); \
1072 f_op2 = EXTRACT_UNSIGNED (insn, 16, 8, 4); \
1073 f_r2 = EXTRACT_UNSIGNED (insn, 16, 12, 4); \
1075 #define EXTRACT_FMT_44_NOP_VARS \
1076 /* Instruction fields. */ \
1081 unsigned int length;
1082 #define EXTRACT_FMT_44_NOP_CODE \
1084 f_op1 = EXTRACT_UNSIGNED (insn, 16, 0, 4); \
1085 f_r1 = EXTRACT_UNSIGNED (insn, 16, 4, 4); \
1086 f_op2 = EXTRACT_UNSIGNED (insn, 16, 8, 4); \
1087 f_r2 = EXTRACT_UNSIGNED (insn, 16, 12, 4); \
1089 #define EXTRACT_FMT_45_RAC_DSI_VARS \
1090 /* Instruction fields. */ \
1098 unsigned int length;
1099 #define EXTRACT_FMT_45_RAC_DSI_CODE \
1101 f_op1 = EXTRACT_UNSIGNED (insn, 16, 0, 4); \
1102 f_accd = EXTRACT_UNSIGNED (insn, 16, 4, 2); \
1103 f_bits67 = EXTRACT_UNSIGNED (insn, 16, 6, 2); \
1104 f_op2 = EXTRACT_UNSIGNED (insn, 16, 8, 4); \
1105 f_accs = EXTRACT_UNSIGNED (insn, 16, 12, 2); \
1106 f_bit14 = EXTRACT_UNSIGNED (insn, 16, 14, 1); \
1107 f_imm1 = ((EXTRACT_UNSIGNED (insn, 16, 15, 1)) + (1)); \
1109 #define EXTRACT_FMT_46_RTE_VARS \
1110 /* Instruction fields. */ \
1115 unsigned int length;
1116 #define EXTRACT_FMT_46_RTE_CODE \
1118 f_op1 = EXTRACT_UNSIGNED (insn, 16, 0, 4); \
1119 f_r1 = EXTRACT_UNSIGNED (insn, 16, 4, 4); \
1120 f_op2 = EXTRACT_UNSIGNED (insn, 16, 8, 4); \
1121 f_r2 = EXTRACT_UNSIGNED (insn, 16, 12, 4); \
1123 #define EXTRACT_FMT_47_SETH_VARS \
1124 /* Instruction fields. */ \
1130 unsigned int length;
1131 #define EXTRACT_FMT_47_SETH_CODE \
1133 f_op1 = EXTRACT_UNSIGNED (insn, 32, 0, 4); \
1134 f_r1 = EXTRACT_UNSIGNED (insn, 32, 4, 4); \
1135 f_op2 = EXTRACT_UNSIGNED (insn, 32, 8, 4); \
1136 f_r2 = EXTRACT_UNSIGNED (insn, 32, 12, 4); \
1137 f_hi16 = EXTRACT_UNSIGNED (insn, 32, 16, 16); \
1139 #define EXTRACT_FMT_48_SLL3_VARS \
1140 /* Instruction fields. */ \
1146 unsigned int length;
1147 #define EXTRACT_FMT_48_SLL3_CODE \
1149 f_op1 = EXTRACT_UNSIGNED (insn, 32, 0, 4); \
1150 f_r1 = EXTRACT_UNSIGNED (insn, 32, 4, 4); \
1151 f_op2 = EXTRACT_UNSIGNED (insn, 32, 8, 4); \
1152 f_r2 = EXTRACT_UNSIGNED (insn, 32, 12, 4); \
1153 f_simm16 = EXTRACT_SIGNED (insn, 32, 16, 16); \
1155 #define EXTRACT_FMT_49_SLLI_VARS \
1156 /* Instruction fields. */ \
1161 unsigned int length;
1162 #define EXTRACT_FMT_49_SLLI_CODE \
1164 f_op1 = EXTRACT_UNSIGNED (insn, 16, 0, 4); \
1165 f_r1 = EXTRACT_UNSIGNED (insn, 16, 4, 4); \
1166 f_shift_op2 = EXTRACT_UNSIGNED (insn, 16, 8, 3); \
1167 f_uimm5 = EXTRACT_UNSIGNED (insn, 16, 11, 5); \
1169 #define EXTRACT_FMT_50_ST_VARS \
1170 /* Instruction fields. */ \
1175 unsigned int length;
1176 #define EXTRACT_FMT_50_ST_CODE \
1178 f_op1 = EXTRACT_UNSIGNED (insn, 16, 0, 4); \
1179 f_r1 = EXTRACT_UNSIGNED (insn, 16, 4, 4); \
1180 f_op2 = EXTRACT_UNSIGNED (insn, 16, 8, 4); \
1181 f_r2 = EXTRACT_UNSIGNED (insn, 16, 12, 4); \
1183 #define EXTRACT_FMT_51_ST_D_VARS \
1184 /* Instruction fields. */ \
1190 unsigned int length;
1191 #define EXTRACT_FMT_51_ST_D_CODE \
1193 f_op1 = EXTRACT_UNSIGNED (insn, 32, 0, 4); \
1194 f_r1 = EXTRACT_UNSIGNED (insn, 32, 4, 4); \
1195 f_op2 = EXTRACT_UNSIGNED (insn, 32, 8, 4); \
1196 f_r2 = EXTRACT_UNSIGNED (insn, 32, 12, 4); \
1197 f_simm16 = EXTRACT_SIGNED (insn, 32, 16, 16); \
1199 #define EXTRACT_FMT_52_STB_VARS \
1200 /* Instruction fields. */ \
1205 unsigned int length;
1206 #define EXTRACT_FMT_52_STB_CODE \
1208 f_op1 = EXTRACT_UNSIGNED (insn, 16, 0, 4); \
1209 f_r1 = EXTRACT_UNSIGNED (insn, 16, 4, 4); \
1210 f_op2 = EXTRACT_UNSIGNED (insn, 16, 8, 4); \
1211 f_r2 = EXTRACT_UNSIGNED (insn, 16, 12, 4); \
1213 #define EXTRACT_FMT_53_STB_D_VARS \
1214 /* Instruction fields. */ \
1220 unsigned int length;
1221 #define EXTRACT_FMT_53_STB_D_CODE \
1223 f_op1 = EXTRACT_UNSIGNED (insn, 32, 0, 4); \
1224 f_r1 = EXTRACT_UNSIGNED (insn, 32, 4, 4); \
1225 f_op2 = EXTRACT_UNSIGNED (insn, 32, 8, 4); \
1226 f_r2 = EXTRACT_UNSIGNED (insn, 32, 12, 4); \
1227 f_simm16 = EXTRACT_SIGNED (insn, 32, 16, 16); \
1229 #define EXTRACT_FMT_54_STH_VARS \
1230 /* Instruction fields. */ \
1235 unsigned int length;
1236 #define EXTRACT_FMT_54_STH_CODE \
1238 f_op1 = EXTRACT_UNSIGNED (insn, 16, 0, 4); \
1239 f_r1 = EXTRACT_UNSIGNED (insn, 16, 4, 4); \
1240 f_op2 = EXTRACT_UNSIGNED (insn, 16, 8, 4); \
1241 f_r2 = EXTRACT_UNSIGNED (insn, 16, 12, 4); \
1243 #define EXTRACT_FMT_55_STH_D_VARS \
1244 /* Instruction fields. */ \
1250 unsigned int length;
1251 #define EXTRACT_FMT_55_STH_D_CODE \
1253 f_op1 = EXTRACT_UNSIGNED (insn, 32, 0, 4); \
1254 f_r1 = EXTRACT_UNSIGNED (insn, 32, 4, 4); \
1255 f_op2 = EXTRACT_UNSIGNED (insn, 32, 8, 4); \
1256 f_r2 = EXTRACT_UNSIGNED (insn, 32, 12, 4); \
1257 f_simm16 = EXTRACT_SIGNED (insn, 32, 16, 16); \
1259 #define EXTRACT_FMT_56_ST_PLUS_VARS \
1260 /* Instruction fields. */ \
1265 unsigned int length;
1266 #define EXTRACT_FMT_56_ST_PLUS_CODE \
1268 f_op1 = EXTRACT_UNSIGNED (insn, 16, 0, 4); \
1269 f_r1 = EXTRACT_UNSIGNED (insn, 16, 4, 4); \
1270 f_op2 = EXTRACT_UNSIGNED (insn, 16, 8, 4); \
1271 f_r2 = EXTRACT_UNSIGNED (insn, 16, 12, 4); \
1273 #define EXTRACT_FMT_57_TRAP_VARS \
1274 /* Instruction fields. */ \
1279 unsigned int length;
1280 #define EXTRACT_FMT_57_TRAP_CODE \
1282 f_op1 = EXTRACT_UNSIGNED (insn, 16, 0, 4); \
1283 f_r1 = EXTRACT_UNSIGNED (insn, 16, 4, 4); \
1284 f_op2 = EXTRACT_UNSIGNED (insn, 16, 8, 4); \
1285 f_uimm4 = EXTRACT_UNSIGNED (insn, 16, 12, 4); \
1287 #define EXTRACT_FMT_58_UNLOCK_VARS \
1288 /* Instruction fields. */ \
1293 unsigned int length;
1294 #define EXTRACT_FMT_58_UNLOCK_CODE \
1296 f_op1 = EXTRACT_UNSIGNED (insn, 16, 0, 4); \
1297 f_r1 = EXTRACT_UNSIGNED (insn, 16, 4, 4); \
1298 f_op2 = EXTRACT_UNSIGNED (insn, 16, 8, 4); \
1299 f_r2 = EXTRACT_UNSIGNED (insn, 16, 12, 4); \
1301 #define EXTRACT_FMT_59_SATB_VARS \
1302 /* Instruction fields. */ \
1308 unsigned int length;
1309 #define EXTRACT_FMT_59_SATB_CODE \
1311 f_op1 = EXTRACT_UNSIGNED (insn, 32, 0, 4); \
1312 f_r1 = EXTRACT_UNSIGNED (insn, 32, 4, 4); \
1313 f_op2 = EXTRACT_UNSIGNED (insn, 32, 8, 4); \
1314 f_r2 = EXTRACT_UNSIGNED (insn, 32, 12, 4); \
1315 f_uimm16 = EXTRACT_UNSIGNED (insn, 32, 16, 16); \
1317 #define EXTRACT_FMT_60_SAT_VARS \
1318 /* Instruction fields. */ \
1324 unsigned int length;
1325 #define EXTRACT_FMT_60_SAT_CODE \
1327 f_op1 = EXTRACT_UNSIGNED (insn, 32, 0, 4); \
1328 f_r1 = EXTRACT_UNSIGNED (insn, 32, 4, 4); \
1329 f_op2 = EXTRACT_UNSIGNED (insn, 32, 8, 4); \
1330 f_r2 = EXTRACT_UNSIGNED (insn, 32, 12, 4); \
1331 f_uimm16 = EXTRACT_UNSIGNED (insn, 32, 16, 16); \
1333 #define EXTRACT_FMT_61_SADD_VARS \
1334 /* Instruction fields. */ \
1339 unsigned int length;
1340 #define EXTRACT_FMT_61_SADD_CODE \
1342 f_op1 = EXTRACT_UNSIGNED (insn, 16, 0, 4); \
1343 f_r1 = EXTRACT_UNSIGNED (insn, 16, 4, 4); \
1344 f_op2 = EXTRACT_UNSIGNED (insn, 16, 8, 4); \
1345 f_r2 = EXTRACT_UNSIGNED (insn, 16, 12, 4); \
1347 #define EXTRACT_FMT_62_MACWU1_VARS \
1348 /* Instruction fields. */ \
1353 unsigned int length;
1354 #define EXTRACT_FMT_62_MACWU1_CODE \
1356 f_op1 = EXTRACT_UNSIGNED (insn, 16, 0, 4); \
1357 f_r1 = EXTRACT_UNSIGNED (insn, 16, 4, 4); \
1358 f_op2 = EXTRACT_UNSIGNED (insn, 16, 8, 4); \
1359 f_r2 = EXTRACT_UNSIGNED (insn, 16, 12, 4); \
1361 #define EXTRACT_FMT_63_MSBLO_VARS \
1362 /* Instruction fields. */ \
1367 unsigned int length;
1368 #define EXTRACT_FMT_63_MSBLO_CODE \
1370 f_op1 = EXTRACT_UNSIGNED (insn, 16, 0, 4); \
1371 f_r1 = EXTRACT_UNSIGNED (insn, 16, 4, 4); \
1372 f_op2 = EXTRACT_UNSIGNED (insn, 16, 8, 4); \
1373 f_r2 = EXTRACT_UNSIGNED (insn, 16, 12, 4); \
1375 #define EXTRACT_FMT_64_MULWU1_VARS \
1376 /* Instruction fields. */ \
1381 unsigned int length;
1382 #define EXTRACT_FMT_64_MULWU1_CODE \
1384 f_op1 = EXTRACT_UNSIGNED (insn, 16, 0, 4); \
1385 f_r1 = EXTRACT_UNSIGNED (insn, 16, 4, 4); \
1386 f_op2 = EXTRACT_UNSIGNED (insn, 16, 8, 4); \
1387 f_r2 = EXTRACT_UNSIGNED (insn, 16, 12, 4); \
1389 #define EXTRACT_FMT_65_SC_VARS \
1390 /* Instruction fields. */ \
1395 unsigned int length;
1396 #define EXTRACT_FMT_65_SC_CODE \
1398 f_op1 = EXTRACT_UNSIGNED (insn, 16, 0, 4); \
1399 f_r1 = EXTRACT_UNSIGNED (insn, 16, 4, 4); \
1400 f_op2 = EXTRACT_UNSIGNED (insn, 16, 8, 4); \
1401 f_r2 = EXTRACT_UNSIGNED (insn, 16, 12, 4); \
1403 /* Fetched input values of an instruction. */
1407 struct { /* e.g. add $dr,$sr */
1411 struct { /* e.g. add3 $dr,$sr,#$slo16 */
1415 struct { /* e.g. and3 $dr,$sr,#$uimm16 */
1419 struct { /* e.g. or3 $dr,$sr,#$ulo16 */
1423 struct { /* e.g. addi $dr,#$simm8 */
1427 struct { /* e.g. addv $dr,$sr */
1431 struct { /* e.g. addv3 $dr,$sr,#$simm16 */
1435 struct { /* e.g. addx $dr,$sr */
1440 struct { /* e.g. bc $disp8 */
1444 struct { /* e.g. bc $disp24 */
1448 struct { /* e.g. beq $src1,$src2,$disp16 */
1453 struct { /* e.g. beqz $src2,$disp16 */
1457 struct { /* e.g. bl $disp8 */
1461 struct { /* e.g. bl $disp24 */
1465 struct { /* e.g. bcl $disp8 */
1470 struct { /* e.g. bcl $disp24 */
1475 struct { /* e.g. bra $disp8 */
1478 struct { /* e.g. bra $disp24 */
1481 struct { /* e.g. cmp $src1,$src2 */
1485 struct { /* e.g. cmpi $src2,#$simm16 */
1489 struct { /* e.g. cmpui $src2,#$uimm16 */
1493 struct { /* e.g. cmpz $src2 */
1496 struct { /* e.g. div $dr,$sr */
1500 struct { /* e.g. jc $sr */
1504 struct { /* e.g. jl $sr */
1508 struct { /* e.g. jmp $sr */
1511 struct { /* e.g. ld $dr,@$sr */
1515 struct { /* e.g. ld $dr,@($slo16,$sr) */
1516 UQI h_memory_add_WI_sr_slo16;
1520 struct { /* e.g. ldb $dr,@$sr */
1524 struct { /* e.g. ldb $dr,@($slo16,$sr) */
1525 UQI h_memory_add_WI_sr_slo16;
1529 struct { /* e.g. ldh $dr,@$sr */
1533 struct { /* e.g. ldh $dr,@($slo16,$sr) */
1534 UQI h_memory_add_WI_sr_slo16;
1538 struct { /* e.g. ld $dr,@$sr+ */
1542 struct { /* e.g. ld24 $dr,#$uimm24 */
1545 struct { /* e.g. ldi $dr,#$simm8 */
1548 struct { /* e.g. ldi $dr,$slo16 */
1551 struct { /* e.g. lock $dr,@$sr */
1555 struct { /* e.g. machi $src1,$src2,$acc */
1560 struct { /* e.g. mulhi $src1,$src2,$acc */
1564 struct { /* e.g. mv $dr,$sr */
1567 struct { /* e.g. mvfachi $dr,$accs */
1570 struct { /* e.g. mvfc $dr,$scr */
1573 struct { /* e.g. mvtachi $src1,$accs */
1577 struct { /* e.g. mvtc $sr,$dcr */
1580 struct { /* e.g. nop */
1583 struct { /* e.g. rac $accd,$accs,#$imm1 */
1587 struct { /* e.g. rte */
1593 struct { /* e.g. seth $dr,#$hi16 */
1596 struct { /* e.g. sll3 $dr,$sr,#$simm16 */
1600 struct { /* e.g. slli $dr,#$uimm5 */
1604 struct { /* e.g. st $src1,@$src2 */
1608 struct { /* e.g. st $src1,@($slo16,$src2) */
1613 struct { /* e.g. stb $src1,@$src2 */
1617 struct { /* e.g. stb $src1,@($slo16,$src2) */
1622 struct { /* e.g. sth $src1,@$src2 */
1626 struct { /* e.g. sth $src1,@($slo16,$src2) */
1631 struct { /* e.g. st $src1,@+$src2 */
1635 struct { /* e.g. trap #$uimm4 */
1640 struct { /* e.g. unlock $src1,@$src2 */
1645 struct { /* e.g. satb $dr,$sr */
1648 struct { /* e.g. sat $dr,$sr */
1652 struct { /* e.g. sadd */
1656 struct { /* e.g. macwu1 $src1,$src2 */
1661 struct { /* e.g. msblo $src1,$src2 */
1666 struct { /* e.g. mulwu1 $src1,$src2 */
1670 struct { /* e.g. sc */
1676 #endif /* CPU_M32RX_H */