1 /* CPU family header for m32r2f.
3 THIS FILE IS MACHINE GENERATED WITH CGEN.
5 Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 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 3 of the License, or
12 (at your option) any later version.
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
20 along with this program. If not, see <http://www.gnu.org/licenses/>.
27 /* Maximum number of instructions that are fetched at a time.
28 This is for LIW type instructions sets (e.g. m32r). */
29 #define MAX_LIW_INSNS 2
31 /* Maximum number of instructions that can be executed in parallel. */
32 #define MAX_PARALLEL_INSNS 2
34 /* CPU state information. */
36 /* Hardware elements. */
40 #define GET_H_PC() CPU (h_pc)
41 #define SET_H_PC(x) (CPU (h_pc) = (x))
42 /* general registers */
44 #define GET_H_GR(a1) CPU (h_gr)[a1]
45 #define SET_H_GR(a1, x) (CPU (h_gr)[a1] = (x))
46 /* control registers */
48 #define GET_H_CR(index) m32r2f_h_cr_get_handler (current_cpu, index)
49 #define SET_H_CR(index, x) \
51 m32r2f_h_cr_set_handler (current_cpu, (index), (x));\
55 #define GET_H_ACCUM() m32r2f_h_accum_get_handler (current_cpu)
56 #define SET_H_ACCUM(x) \
58 m32r2f_h_accum_set_handler (current_cpu, (x));\
62 #define GET_H_ACCUMS(index) m32r2f_h_accums_get_handler (current_cpu, index)
63 #define SET_H_ACCUMS(index, x) \
65 m32r2f_h_accums_set_handler (current_cpu, (index), (x));\
69 #define GET_H_COND() CPU (h_cond)
70 #define SET_H_COND(x) (CPU (h_cond) = (x))
73 #define GET_H_PSW() m32r2f_h_psw_get_handler (current_cpu)
74 #define SET_H_PSW(x) \
76 m32r2f_h_psw_set_handler (current_cpu, (x));\
80 #define GET_H_BPSW() CPU (h_bpsw)
81 #define SET_H_BPSW(x) (CPU (h_bpsw) = (x))
84 #define GET_H_BBPSW() CPU (h_bbpsw)
85 #define SET_H_BBPSW(x) (CPU (h_bbpsw) = (x))
88 #define GET_H_LOCK() CPU (h_lock)
89 #define SET_H_LOCK(x) (CPU (h_lock) = (x))
91 #define CPU_CGEN_HW(cpu) (& (cpu)->cpu_data.hardware)
94 /* Cover fns for register access. */
95 USI
m32r2f_h_pc_get (SIM_CPU
*);
96 void m32r2f_h_pc_set (SIM_CPU
*, USI
);
97 SI
m32r2f_h_gr_get (SIM_CPU
*, UINT
);
98 void m32r2f_h_gr_set (SIM_CPU
*, UINT
, SI
);
99 USI
m32r2f_h_cr_get (SIM_CPU
*, UINT
);
100 void m32r2f_h_cr_set (SIM_CPU
*, UINT
, USI
);
101 DI
m32r2f_h_accum_get (SIM_CPU
*);
102 void m32r2f_h_accum_set (SIM_CPU
*, DI
);
103 DI
m32r2f_h_accums_get (SIM_CPU
*, UINT
);
104 void m32r2f_h_accums_set (SIM_CPU
*, UINT
, DI
);
105 BI
m32r2f_h_cond_get (SIM_CPU
*);
106 void m32r2f_h_cond_set (SIM_CPU
*, BI
);
107 UQI
m32r2f_h_psw_get (SIM_CPU
*);
108 void m32r2f_h_psw_set (SIM_CPU
*, UQI
);
109 UQI
m32r2f_h_bpsw_get (SIM_CPU
*);
110 void m32r2f_h_bpsw_set (SIM_CPU
*, UQI
);
111 UQI
m32r2f_h_bbpsw_get (SIM_CPU
*);
112 void m32r2f_h_bbpsw_set (SIM_CPU
*, UQI
);
113 BI
m32r2f_h_lock_get (SIM_CPU
*);
114 void m32r2f_h_lock_set (SIM_CPU
*, BI
);
116 /* These must be hand-written. */
117 extern CPUREG_FETCH_FN m32r2f_fetch_register
;
118 extern CPUREG_STORE_FN m32r2f_store_register
;
124 /* Instruction argument buffer. */
127 struct { /* no operands */
138 unsigned char out_h_gr_SI_14
;
142 unsigned char out_h_gr_SI_14
;
153 unsigned char out_dr
;
159 unsigned char in_src1
;
165 unsigned char out_dr
;
171 unsigned char out_dr
;
177 unsigned char out_h_gr_SI_14
;
191 unsigned char out_dr
;
198 unsigned char out_dr
;
205 unsigned char in_src1
;
206 unsigned char in_src2
;
207 unsigned char out_src2
;
215 unsigned char in_src1
;
216 unsigned char in_src2
;
224 unsigned char in_src1
;
225 unsigned char in_src2
;
233 unsigned char out_dr
;
234 unsigned char out_sr
;
242 unsigned char in_src1
;
243 unsigned char in_src2
;
252 unsigned char out_dr
;
261 unsigned char out_dr
;
270 unsigned char out_dr
;
273 /* Writeback handler. */
275 /* Pointer to argbuf entry for insn whose results need writing back. */
276 const struct argbuf
*abuf
;
278 /* x-before handler */
280 /*const SCACHE *insns[MAX_PARALLEL_INSNS];*/
283 /* x-after handler */
287 /* This entry is used to terminate each pbb. */
289 /* Number of insns in pbb. */
291 /* Next pbb to execute. */
293 SCACHE
*branch_target
;
298 /* The ARGBUF struct. */
300 /* These are the baseclass definitions. */
305 /* ??? Temporary hack for skip insns. */
308 /* cpu specific data follows */
311 union sem_fields fields
;
316 ??? SCACHE used to contain more than just argbuf. We could delete the
317 type entirely and always just use ARGBUF, but for future concerns and as
318 a level of abstraction it is left in. */
321 struct argbuf argbuf
;
324 /* Macros to simplify extraction, reading and semantic code.
325 These define and assign the local vars that contain the insn's fields. */
327 #define EXTRACT_IFMT_EMPTY_VARS \
329 #define EXTRACT_IFMT_EMPTY_CODE \
332 #define EXTRACT_IFMT_ADD_VARS \
338 #define EXTRACT_IFMT_ADD_CODE \
340 f_op1 = EXTRACT_MSB0_UINT (insn, 16, 0, 4); \
341 f_r1 = EXTRACT_MSB0_UINT (insn, 16, 4, 4); \
342 f_op2 = EXTRACT_MSB0_UINT (insn, 16, 8, 4); \
343 f_r2 = EXTRACT_MSB0_UINT (insn, 16, 12, 4); \
345 #define EXTRACT_IFMT_ADD3_VARS \
352 #define EXTRACT_IFMT_ADD3_CODE \
354 f_op1 = EXTRACT_MSB0_UINT (insn, 32, 0, 4); \
355 f_r1 = EXTRACT_MSB0_UINT (insn, 32, 4, 4); \
356 f_op2 = EXTRACT_MSB0_UINT (insn, 32, 8, 4); \
357 f_r2 = EXTRACT_MSB0_UINT (insn, 32, 12, 4); \
358 f_simm16 = EXTRACT_MSB0_INT (insn, 32, 16, 16); \
360 #define EXTRACT_IFMT_AND3_VARS \
367 #define EXTRACT_IFMT_AND3_CODE \
369 f_op1 = EXTRACT_MSB0_UINT (insn, 32, 0, 4); \
370 f_r1 = EXTRACT_MSB0_UINT (insn, 32, 4, 4); \
371 f_op2 = EXTRACT_MSB0_UINT (insn, 32, 8, 4); \
372 f_r2 = EXTRACT_MSB0_UINT (insn, 32, 12, 4); \
373 f_uimm16 = EXTRACT_MSB0_UINT (insn, 32, 16, 16); \
375 #define EXTRACT_IFMT_OR3_VARS \
382 #define EXTRACT_IFMT_OR3_CODE \
384 f_op1 = EXTRACT_MSB0_UINT (insn, 32, 0, 4); \
385 f_r1 = EXTRACT_MSB0_UINT (insn, 32, 4, 4); \
386 f_op2 = EXTRACT_MSB0_UINT (insn, 32, 8, 4); \
387 f_r2 = EXTRACT_MSB0_UINT (insn, 32, 12, 4); \
388 f_uimm16 = EXTRACT_MSB0_UINT (insn, 32, 16, 16); \
390 #define EXTRACT_IFMT_ADDI_VARS \
395 #define EXTRACT_IFMT_ADDI_CODE \
397 f_op1 = EXTRACT_MSB0_UINT (insn, 16, 0, 4); \
398 f_r1 = EXTRACT_MSB0_UINT (insn, 16, 4, 4); \
399 f_simm8 = EXTRACT_MSB0_INT (insn, 16, 8, 8); \
401 #define EXTRACT_IFMT_ADDV3_VARS \
408 #define EXTRACT_IFMT_ADDV3_CODE \
410 f_op1 = EXTRACT_MSB0_UINT (insn, 32, 0, 4); \
411 f_r1 = EXTRACT_MSB0_UINT (insn, 32, 4, 4); \
412 f_op2 = EXTRACT_MSB0_UINT (insn, 32, 8, 4); \
413 f_r2 = EXTRACT_MSB0_UINT (insn, 32, 12, 4); \
414 f_simm16 = EXTRACT_MSB0_INT (insn, 32, 16, 16); \
416 #define EXTRACT_IFMT_BC8_VARS \
421 #define EXTRACT_IFMT_BC8_CODE \
423 f_op1 = EXTRACT_MSB0_UINT (insn, 16, 0, 4); \
424 f_r1 = EXTRACT_MSB0_UINT (insn, 16, 4, 4); \
425 f_disp8 = ((((EXTRACT_MSB0_INT (insn, 16, 8, 8)) << (2))) + (((pc) & (-4)))); \
427 #define EXTRACT_IFMT_BC24_VARS \
432 #define EXTRACT_IFMT_BC24_CODE \
434 f_op1 = EXTRACT_MSB0_UINT (insn, 32, 0, 4); \
435 f_r1 = EXTRACT_MSB0_UINT (insn, 32, 4, 4); \
436 f_disp24 = ((((EXTRACT_MSB0_INT (insn, 32, 8, 24)) << (2))) + (pc)); \
438 #define EXTRACT_IFMT_BEQ_VARS \
445 #define EXTRACT_IFMT_BEQ_CODE \
447 f_op1 = EXTRACT_MSB0_UINT (insn, 32, 0, 4); \
448 f_r1 = EXTRACT_MSB0_UINT (insn, 32, 4, 4); \
449 f_op2 = EXTRACT_MSB0_UINT (insn, 32, 8, 4); \
450 f_r2 = EXTRACT_MSB0_UINT (insn, 32, 12, 4); \
451 f_disp16 = ((((EXTRACT_MSB0_INT (insn, 32, 16, 16)) << (2))) + (pc)); \
453 #define EXTRACT_IFMT_BEQZ_VARS \
460 #define EXTRACT_IFMT_BEQZ_CODE \
462 f_op1 = EXTRACT_MSB0_UINT (insn, 32, 0, 4); \
463 f_r1 = EXTRACT_MSB0_UINT (insn, 32, 4, 4); \
464 f_op2 = EXTRACT_MSB0_UINT (insn, 32, 8, 4); \
465 f_r2 = EXTRACT_MSB0_UINT (insn, 32, 12, 4); \
466 f_disp16 = ((((EXTRACT_MSB0_INT (insn, 32, 16, 16)) << (2))) + (pc)); \
468 #define EXTRACT_IFMT_CMP_VARS \
474 #define EXTRACT_IFMT_CMP_CODE \
476 f_op1 = EXTRACT_MSB0_UINT (insn, 16, 0, 4); \
477 f_r1 = EXTRACT_MSB0_UINT (insn, 16, 4, 4); \
478 f_op2 = EXTRACT_MSB0_UINT (insn, 16, 8, 4); \
479 f_r2 = EXTRACT_MSB0_UINT (insn, 16, 12, 4); \
481 #define EXTRACT_IFMT_CMPI_VARS \
488 #define EXTRACT_IFMT_CMPI_CODE \
490 f_op1 = EXTRACT_MSB0_UINT (insn, 32, 0, 4); \
491 f_r1 = EXTRACT_MSB0_UINT (insn, 32, 4, 4); \
492 f_op2 = EXTRACT_MSB0_UINT (insn, 32, 8, 4); \
493 f_r2 = EXTRACT_MSB0_UINT (insn, 32, 12, 4); \
494 f_simm16 = EXTRACT_MSB0_INT (insn, 32, 16, 16); \
496 #define EXTRACT_IFMT_CMPZ_VARS \
502 #define EXTRACT_IFMT_CMPZ_CODE \
504 f_op1 = EXTRACT_MSB0_UINT (insn, 16, 0, 4); \
505 f_r1 = EXTRACT_MSB0_UINT (insn, 16, 4, 4); \
506 f_op2 = EXTRACT_MSB0_UINT (insn, 16, 8, 4); \
507 f_r2 = EXTRACT_MSB0_UINT (insn, 16, 12, 4); \
509 #define EXTRACT_IFMT_DIV_VARS \
516 #define EXTRACT_IFMT_DIV_CODE \
518 f_op1 = EXTRACT_MSB0_UINT (insn, 32, 0, 4); \
519 f_r1 = EXTRACT_MSB0_UINT (insn, 32, 4, 4); \
520 f_op2 = EXTRACT_MSB0_UINT (insn, 32, 8, 4); \
521 f_r2 = EXTRACT_MSB0_UINT (insn, 32, 12, 4); \
522 f_simm16 = EXTRACT_MSB0_INT (insn, 32, 16, 16); \
524 #define EXTRACT_IFMT_JC_VARS \
530 #define EXTRACT_IFMT_JC_CODE \
532 f_op1 = EXTRACT_MSB0_UINT (insn, 16, 0, 4); \
533 f_r1 = EXTRACT_MSB0_UINT (insn, 16, 4, 4); \
534 f_op2 = EXTRACT_MSB0_UINT (insn, 16, 8, 4); \
535 f_r2 = EXTRACT_MSB0_UINT (insn, 16, 12, 4); \
537 #define EXTRACT_IFMT_LD24_VARS \
542 #define EXTRACT_IFMT_LD24_CODE \
544 f_op1 = EXTRACT_MSB0_UINT (insn, 32, 0, 4); \
545 f_r1 = EXTRACT_MSB0_UINT (insn, 32, 4, 4); \
546 f_uimm24 = EXTRACT_MSB0_UINT (insn, 32, 8, 24); \
548 #define EXTRACT_IFMT_LDI16_VARS \
555 #define EXTRACT_IFMT_LDI16_CODE \
557 f_op1 = EXTRACT_MSB0_UINT (insn, 32, 0, 4); \
558 f_r1 = EXTRACT_MSB0_UINT (insn, 32, 4, 4); \
559 f_op2 = EXTRACT_MSB0_UINT (insn, 32, 8, 4); \
560 f_r2 = EXTRACT_MSB0_UINT (insn, 32, 12, 4); \
561 f_simm16 = EXTRACT_MSB0_INT (insn, 32, 16, 16); \
563 #define EXTRACT_IFMT_MACHI_A_VARS \
570 #define EXTRACT_IFMT_MACHI_A_CODE \
572 f_op1 = EXTRACT_MSB0_UINT (insn, 16, 0, 4); \
573 f_r1 = EXTRACT_MSB0_UINT (insn, 16, 4, 4); \
574 f_acc = EXTRACT_MSB0_UINT (insn, 16, 8, 1); \
575 f_op23 = EXTRACT_MSB0_UINT (insn, 16, 9, 3); \
576 f_r2 = EXTRACT_MSB0_UINT (insn, 16, 12, 4); \
578 #define EXTRACT_IFMT_MVFACHI_A_VARS \
585 #define EXTRACT_IFMT_MVFACHI_A_CODE \
587 f_op1 = EXTRACT_MSB0_UINT (insn, 16, 0, 4); \
588 f_r1 = EXTRACT_MSB0_UINT (insn, 16, 4, 4); \
589 f_op2 = EXTRACT_MSB0_UINT (insn, 16, 8, 4); \
590 f_accs = EXTRACT_MSB0_UINT (insn, 16, 12, 2); \
591 f_op3 = EXTRACT_MSB0_UINT (insn, 16, 14, 2); \
593 #define EXTRACT_IFMT_MVFC_VARS \
599 #define EXTRACT_IFMT_MVFC_CODE \
601 f_op1 = EXTRACT_MSB0_UINT (insn, 16, 0, 4); \
602 f_r1 = EXTRACT_MSB0_UINT (insn, 16, 4, 4); \
603 f_op2 = EXTRACT_MSB0_UINT (insn, 16, 8, 4); \
604 f_r2 = EXTRACT_MSB0_UINT (insn, 16, 12, 4); \
606 #define EXTRACT_IFMT_MVTACHI_A_VARS \
613 #define EXTRACT_IFMT_MVTACHI_A_CODE \
615 f_op1 = EXTRACT_MSB0_UINT (insn, 16, 0, 4); \
616 f_r1 = EXTRACT_MSB0_UINT (insn, 16, 4, 4); \
617 f_op2 = EXTRACT_MSB0_UINT (insn, 16, 8, 4); \
618 f_accs = EXTRACT_MSB0_UINT (insn, 16, 12, 2); \
619 f_op3 = EXTRACT_MSB0_UINT (insn, 16, 14, 2); \
621 #define EXTRACT_IFMT_MVTC_VARS \
627 #define EXTRACT_IFMT_MVTC_CODE \
629 f_op1 = EXTRACT_MSB0_UINT (insn, 16, 0, 4); \
630 f_r1 = EXTRACT_MSB0_UINT (insn, 16, 4, 4); \
631 f_op2 = EXTRACT_MSB0_UINT (insn, 16, 8, 4); \
632 f_r2 = EXTRACT_MSB0_UINT (insn, 16, 12, 4); \
634 #define EXTRACT_IFMT_NOP_VARS \
640 #define EXTRACT_IFMT_NOP_CODE \
642 f_op1 = EXTRACT_MSB0_UINT (insn, 16, 0, 4); \
643 f_r1 = EXTRACT_MSB0_UINT (insn, 16, 4, 4); \
644 f_op2 = EXTRACT_MSB0_UINT (insn, 16, 8, 4); \
645 f_r2 = EXTRACT_MSB0_UINT (insn, 16, 12, 4); \
647 #define EXTRACT_IFMT_RAC_DSI_VARS \
656 #define EXTRACT_IFMT_RAC_DSI_CODE \
658 f_op1 = EXTRACT_MSB0_UINT (insn, 16, 0, 4); \
659 f_accd = EXTRACT_MSB0_UINT (insn, 16, 4, 2); \
660 f_bits67 = EXTRACT_MSB0_UINT (insn, 16, 6, 2); \
661 f_op2 = EXTRACT_MSB0_UINT (insn, 16, 8, 4); \
662 f_accs = EXTRACT_MSB0_UINT (insn, 16, 12, 2); \
663 f_bit14 = EXTRACT_MSB0_UINT (insn, 16, 14, 1); \
664 f_imm1 = ((EXTRACT_MSB0_UINT (insn, 16, 15, 1)) + (1)); \
666 #define EXTRACT_IFMT_SETH_VARS \
673 #define EXTRACT_IFMT_SETH_CODE \
675 f_op1 = EXTRACT_MSB0_UINT (insn, 32, 0, 4); \
676 f_r1 = EXTRACT_MSB0_UINT (insn, 32, 4, 4); \
677 f_op2 = EXTRACT_MSB0_UINT (insn, 32, 8, 4); \
678 f_r2 = EXTRACT_MSB0_UINT (insn, 32, 12, 4); \
679 f_hi16 = EXTRACT_MSB0_UINT (insn, 32, 16, 16); \
681 #define EXTRACT_IFMT_SLLI_VARS \
687 #define EXTRACT_IFMT_SLLI_CODE \
689 f_op1 = EXTRACT_MSB0_UINT (insn, 16, 0, 4); \
690 f_r1 = EXTRACT_MSB0_UINT (insn, 16, 4, 4); \
691 f_shift_op2 = EXTRACT_MSB0_UINT (insn, 16, 8, 3); \
692 f_uimm5 = EXTRACT_MSB0_UINT (insn, 16, 11, 5); \
694 #define EXTRACT_IFMT_ST_D_VARS \
701 #define EXTRACT_IFMT_ST_D_CODE \
703 f_op1 = EXTRACT_MSB0_UINT (insn, 32, 0, 4); \
704 f_r1 = EXTRACT_MSB0_UINT (insn, 32, 4, 4); \
705 f_op2 = EXTRACT_MSB0_UINT (insn, 32, 8, 4); \
706 f_r2 = EXTRACT_MSB0_UINT (insn, 32, 12, 4); \
707 f_simm16 = EXTRACT_MSB0_INT (insn, 32, 16, 16); \
709 #define EXTRACT_IFMT_TRAP_VARS \
715 #define EXTRACT_IFMT_TRAP_CODE \
717 f_op1 = EXTRACT_MSB0_UINT (insn, 16, 0, 4); \
718 f_r1 = EXTRACT_MSB0_UINT (insn, 16, 4, 4); \
719 f_op2 = EXTRACT_MSB0_UINT (insn, 16, 8, 4); \
720 f_uimm4 = EXTRACT_MSB0_UINT (insn, 16, 12, 4); \
722 #define EXTRACT_IFMT_SATB_VARS \
729 #define EXTRACT_IFMT_SATB_CODE \
731 f_op1 = EXTRACT_MSB0_UINT (insn, 32, 0, 4); \
732 f_r1 = EXTRACT_MSB0_UINT (insn, 32, 4, 4); \
733 f_op2 = EXTRACT_MSB0_UINT (insn, 32, 8, 4); \
734 f_r2 = EXTRACT_MSB0_UINT (insn, 32, 12, 4); \
735 f_uimm16 = EXTRACT_MSB0_UINT (insn, 32, 16, 16); \
737 #define EXTRACT_IFMT_CLRPSW_VARS \
742 #define EXTRACT_IFMT_CLRPSW_CODE \
744 f_op1 = EXTRACT_MSB0_UINT (insn, 16, 0, 4); \
745 f_r1 = EXTRACT_MSB0_UINT (insn, 16, 4, 4); \
746 f_uimm8 = EXTRACT_MSB0_UINT (insn, 16, 8, 8); \
748 #define EXTRACT_IFMT_BSET_VARS \
756 #define EXTRACT_IFMT_BSET_CODE \
758 f_op1 = EXTRACT_MSB0_UINT (insn, 32, 0, 4); \
759 f_bit4 = EXTRACT_MSB0_UINT (insn, 32, 4, 1); \
760 f_uimm3 = EXTRACT_MSB0_UINT (insn, 32, 5, 3); \
761 f_op2 = EXTRACT_MSB0_UINT (insn, 32, 8, 4); \
762 f_r2 = EXTRACT_MSB0_UINT (insn, 32, 12, 4); \
763 f_simm16 = EXTRACT_MSB0_INT (insn, 32, 16, 16); \
765 #define EXTRACT_IFMT_BTST_VARS \
772 #define EXTRACT_IFMT_BTST_CODE \
774 f_op1 = EXTRACT_MSB0_UINT (insn, 16, 0, 4); \
775 f_bit4 = EXTRACT_MSB0_UINT (insn, 16, 4, 1); \
776 f_uimm3 = EXTRACT_MSB0_UINT (insn, 16, 5, 3); \
777 f_op2 = EXTRACT_MSB0_UINT (insn, 16, 8, 4); \
778 f_r2 = EXTRACT_MSB0_UINT (insn, 16, 12, 4); \
780 /* Queued output values of an instruction. */
784 struct { /* empty sformat for unspecified field list */
787 struct { /* e.g. add $dr,$sr */
790 struct { /* e.g. add3 $dr,$sr,$hash$slo16 */
793 struct { /* e.g. and3 $dr,$sr,$uimm16 */
796 struct { /* e.g. or3 $dr,$sr,$hash$ulo16 */
799 struct { /* e.g. addi $dr,$simm8 */
802 struct { /* e.g. addv $dr,$sr */
806 struct { /* e.g. addv3 $dr,$sr,$simm16 */
810 struct { /* e.g. addx $dr,$sr */
814 struct { /* e.g. bc.s $disp8 */
817 struct { /* e.g. bc.l $disp24 */
820 struct { /* e.g. beq $src1,$src2,$disp16 */
823 struct { /* e.g. beqz $src2,$disp16 */
826 struct { /* e.g. bl.s $disp8 */
830 struct { /* e.g. bl.l $disp24 */
834 struct { /* e.g. bcl.s $disp8 */
838 struct { /* e.g. bcl.l $disp24 */
842 struct { /* e.g. bra.s $disp8 */
845 struct { /* e.g. bra.l $disp24 */
848 struct { /* e.g. cmp $src1,$src2 */
851 struct { /* e.g. cmpi $src2,$simm16 */
854 struct { /* e.g. cmpz $src2 */
857 struct { /* e.g. div $dr,$sr */
860 struct { /* e.g. jc $sr */
863 struct { /* e.g. jl $sr */
867 struct { /* e.g. jmp $sr */
870 struct { /* e.g. ld $dr,@$sr */
873 struct { /* e.g. ld $dr,@($slo16,$sr) */
876 struct { /* e.g. ldb $dr,@$sr */
879 struct { /* e.g. ldb $dr,@($slo16,$sr) */
882 struct { /* e.g. ldh $dr,@$sr */
885 struct { /* e.g. ldh $dr,@($slo16,$sr) */
888 struct { /* e.g. ld $dr,@$sr+ */
892 struct { /* e.g. ld24 $dr,$uimm24 */
895 struct { /* e.g. ldi8 $dr,$simm8 */
898 struct { /* e.g. ldi16 $dr,$hash$slo16 */
901 struct { /* e.g. lock $dr,@$sr */
905 struct { /* e.g. machi $src1,$src2,$acc */
908 struct { /* e.g. mulhi $src1,$src2,$acc */
911 struct { /* e.g. mv $dr,$sr */
914 struct { /* e.g. mvfachi $dr,$accs */
917 struct { /* e.g. mvfc $dr,$scr */
920 struct { /* e.g. mvtachi $src1,$accs */
923 struct { /* e.g. mvtc $sr,$dcr */
926 struct { /* e.g. nop */
929 struct { /* e.g. rac $accd,$accs,$imm1 */
932 struct { /* e.g. rte */
938 struct { /* e.g. seth $dr,$hash$hi16 */
941 struct { /* e.g. sll3 $dr,$sr,$simm16 */
944 struct { /* e.g. slli $dr,$uimm5 */
947 struct { /* e.g. st $src1,@$src2 */
949 USI h_memory_SI_src2_idx
;
951 struct { /* e.g. st $src1,@($slo16,$src2) */
952 SI h_memory_SI_add__DFLT_src2_slo16
;
953 USI h_memory_SI_add__DFLT_src2_slo16_idx
;
955 struct { /* e.g. stb $src1,@$src2 */
957 USI h_memory_QI_src2_idx
;
959 struct { /* e.g. stb $src1,@($slo16,$src2) */
960 QI h_memory_QI_add__DFLT_src2_slo16
;
961 USI h_memory_QI_add__DFLT_src2_slo16_idx
;
963 struct { /* e.g. sth $src1,@$src2 */
965 USI h_memory_HI_src2_idx
;
967 struct { /* e.g. sth $src1,@($slo16,$src2) */
968 HI h_memory_HI_add__DFLT_src2_slo16
;
969 USI h_memory_HI_add__DFLT_src2_slo16_idx
;
971 struct { /* e.g. st $src1,@+$src2 */
972 SI h_memory_SI_new_src2
;
973 USI h_memory_SI_new_src2_idx
;
976 struct { /* e.g. sth $src1,@$src2+ */
977 HI h_memory_HI_new_src2
;
978 USI h_memory_HI_new_src2_idx
;
981 struct { /* e.g. stb $src1,@$src2+ */
982 QI h_memory_QI_new_src2
;
983 USI h_memory_QI_new_src2_idx
;
986 struct { /* e.g. trap $uimm4 */
994 struct { /* e.g. unlock $src1,@$src2 */
997 USI h_memory_SI_src2_idx
;
999 struct { /* e.g. satb $dr,$sr */
1002 struct { /* e.g. sat $dr,$sr */
1005 struct { /* e.g. sadd */
1008 struct { /* e.g. macwu1 $src1,$src2 */
1011 struct { /* e.g. msblo $src1,$src2 */
1014 struct { /* e.g. mulwu1 $src1,$src2 */
1017 struct { /* e.g. sc */
1020 struct { /* e.g. clrpsw $uimm8 */
1023 struct { /* e.g. setpsw $uimm8 */
1026 struct { /* e.g. bset $uimm3,@($slo16,$sr) */
1027 QI h_memory_QI_add__DFLT_sr_slo16
;
1028 USI h_memory_QI_add__DFLT_sr_slo16_idx
;
1030 struct { /* e.g. btst $uimm3,$sr */
1034 /* For conditionally written operands, bitmask of which ones were. */
1038 /* Collection of various things for the trace handler to use. */
1040 typedef struct trace_record
{
1045 #endif /* CPU_M32R2F_H */