* cgen-opc.c (cgen_set_cpu): Initialize hardware table.
* m32r-opc.h, m32r-opc.c, m32r-asm.c, m32r-dis.c: Update.
This commit is contained in:
parent
a4f6f75ff9
commit
7c26196f5a
|
@ -1,3 +1,18 @@
|
|||
Tue Feb 3 17:19:40 1998 Doug Evans <devans@seba.cygnus.com>
|
||||
|
||||
* cgen-opc.c (cgen_set_cpu): Initialize hardware table.
|
||||
* m32r-opc.h, m32r-opc.c, m32r-asm.c, m32r-dis.c: Regenerate.
|
||||
|
||||
Mon Feb 2 19:22:15 1998 Steve Haworth <steve@pm.cse.rmit.EDU.AU>
|
||||
|
||||
* tic30-dis.c: New file.
|
||||
* disassemble.c (disassembler): Add bfd_arch_tic30 case.
|
||||
* configure.in: Handle bfd_tic30_arch.
|
||||
* Makefile.am: Rebuild dependencies.
|
||||
(CFILES): Add tic30-dis.c
|
||||
(ALL_MACHINES): Add tic30-dis.lo.
|
||||
* configure, Makefile.in: Rebuild.
|
||||
|
||||
start-sanitize-m32rx
|
||||
Mon Feb 2 11:04:08 1998 Nick Clifton <nickc@cygnus.com>
|
||||
|
||||
|
|
1147
opcodes/m32r-opc.c
1147
opcodes/m32r-opc.c
File diff suppressed because it is too large
Load Diff
|
@ -1,5 +1,7 @@
|
|||
/* Instruction description for m32r.
|
||||
|
||||
This file is machine generated with CGEN.
|
||||
|
||||
Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of the GNU Binutils and/or GDB, the GNU debugger.
|
||||
|
@ -30,6 +32,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
|
||||
/* Selected cpu families. */
|
||||
#define HAVE_CPU_M32R
|
||||
/* start-sanitize-m32rx */
|
||||
#define HAVE_CPU_M32RX
|
||||
/* end-sanitize-m32rx */
|
||||
|
||||
#define CGEN_WORD_BITSIZE 32
|
||||
#define CGEN_DEFAULT_INSN_BITSIZE 32
|
||||
|
@ -40,14 +45,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#define CGEN_MAX_INSN_SIZE (CGEN_MAX_INSN_BITSIZE / 8)
|
||||
#define CGEN_INT_INSN
|
||||
|
||||
/* +1 because the first entry is reserved (null) */
|
||||
#define CGEN_NUM_INSNS (127 + 1)
|
||||
#define CGEN_NUM_OPERANDS (21)
|
||||
|
||||
/* Number of non-boolean attributes. */
|
||||
#define CGEN_MAX_INSN_ATTRS 0
|
||||
#define CGEN_MAX_OPERAND_ATTRS 0
|
||||
|
||||
/* FIXME: Need to compute CGEN_MAX_SYNTAX_BYTES. */
|
||||
|
||||
/* CGEN_MNEMONIC_OPERANDS is defined if mnemonics have operands.
|
||||
|
@ -55,102 +52,250 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
we can't hash on everything up to the space. */
|
||||
#define CGEN_MNEMONIC_OPERANDS
|
||||
|
||||
/* Number of architecture variants. */
|
||||
#define MAX_MACHS 1
|
||||
|
||||
/* Enums. */
|
||||
|
||||
/* Enum declaration for insn format enums. */
|
||||
typedef enum insn_op1 {
|
||||
OP1_0 = 0, OP1_1 = 1, OP1_2 = 2, OP1_3 = 3,
|
||||
OP1_4 = 4, OP1_5 = 5, OP1_6 = 6, OP1_7 = 7,
|
||||
OP1_8 = 8, OP1_9 = 9, OP1_10 = 10, OP1_11 = 11,
|
||||
OP1_12 = 12, OP1_13 = 13, OP1_14 = 14, OP1_15 = 15
|
||||
OP1_0, OP1_1, OP1_2, OP1_3
|
||||
, OP1_4, OP1_5, OP1_6, OP1_7
|
||||
, OP1_8, OP1_9, OP1_10, OP1_11
|
||||
, OP1_12, OP1_13, OP1_14, OP1_15
|
||||
} INSN_OP1;
|
||||
|
||||
/* Enum declaration for op2 enums. */
|
||||
typedef enum insn_op2 {
|
||||
OP2_0 = 0, OP2_1 = 1, OP2_2 = 2, OP2_3 = 3,
|
||||
OP2_4 = 4, OP2_5 = 5, OP2_6 = 6, OP2_7 = 7,
|
||||
OP2_8 = 8, OP2_9 = 9, OP2_10 = 10, OP2_11 = 11,
|
||||
OP2_12 = 12, OP2_13 = 13, OP2_14 = 14, OP2_15 = 15
|
||||
OP2_0, OP2_1, OP2_2, OP2_3
|
||||
, OP2_4, OP2_5, OP2_6, OP2_7
|
||||
, OP2_8, OP2_9, OP2_10, OP2_11
|
||||
, OP2_12, OP2_13, OP2_14, OP2_15
|
||||
} INSN_OP2;
|
||||
|
||||
/* Enum declaration for m32r operand types. */
|
||||
typedef enum cgen_operand_type {
|
||||
M32R_OPERAND_PC = 0, M32R_OPERAND_SR = 1, M32R_OPERAND_DR = 2, M32R_OPERAND_SRC1 = 3,
|
||||
M32R_OPERAND_SRC2 = 4, M32R_OPERAND_SCR = 5, M32R_OPERAND_DCR = 6, M32R_OPERAND_SIMM8 = 7,
|
||||
M32R_OPERAND_SIMM16 = 8, M32R_OPERAND_UIMM4 = 9, M32R_OPERAND_UIMM5 = 10, M32R_OPERAND_UIMM16 = 11,
|
||||
M32R_OPERAND_HI16 = 12, M32R_OPERAND_SLO16 = 13, M32R_OPERAND_ULO16 = 14, M32R_OPERAND_UIMM24 = 15,
|
||||
M32R_OPERAND_DISP8 = 16, M32R_OPERAND_DISP16 = 17, M32R_OPERAND_DISP24 = 18, M32R_OPERAND_CONDBIT = 19,
|
||||
M32R_OPERAND_ACCUM = 20
|
||||
M32R_OPERAND_PC, M32R_OPERAND_SR, M32R_OPERAND_DR, M32R_OPERAND_SRC1
|
||||
, M32R_OPERAND_SRC2, M32R_OPERAND_SCR, M32R_OPERAND_DCR, M32R_OPERAND_SIMM8
|
||||
, M32R_OPERAND_SIMM16, M32R_OPERAND_UIMM4, M32R_OPERAND_UIMM5, M32R_OPERAND_UIMM16
|
||||
/* start-sanitize-m32rx */
|
||||
, M32R_OPERAND_ACCS
|
||||
/* end-sanitize-m32rx */
|
||||
/* start-sanitize-m32rx */
|
||||
, M32R_OPERAND_ACC
|
||||
/* end-sanitize-m32rx */
|
||||
, M32R_OPERAND_HI16, M32R_OPERAND_SLO16, M32R_OPERAND_ULO16, M32R_OPERAND_UIMM24
|
||||
, M32R_OPERAND_DISP8, M32R_OPERAND_DISP16, M32R_OPERAND_DISP24, M32R_OPERAND_CONDBIT
|
||||
, M32R_OPERAND_ACCUM
|
||||
/* start-sanitize-m32rx */
|
||||
, M32R_OPERAND_ABORT_PARALLEL_EXECUTION
|
||||
/* end-sanitize-m32rx */
|
||||
, M32R_OPERAND_MAX
|
||||
} CGEN_OPERAND_TYPE;
|
||||
|
||||
/* Non-boolean attributes. */
|
||||
|
||||
/* Enum declaration for machine type selection. */
|
||||
typedef enum mach_attr {
|
||||
MACH_M32R = 0
|
||||
MACH_M32R
|
||||
/* start-sanitize-m32rx */
|
||||
, MACH_M32RX
|
||||
/* end-sanitize-m32rx */
|
||||
, MACH_MAX
|
||||
} MACH_ATTR;
|
||||
|
||||
/* start-sanitize-m32rx */
|
||||
/* Enum declaration for parallel execution pipeline selection. */
|
||||
typedef enum pipe_attr {
|
||||
PIPE_NONE, PIPE_O, PIPE_S, PIPE_OS
|
||||
} PIPE_ATTR;
|
||||
|
||||
/* end-sanitize-m32rx */
|
||||
/* Number of architecture variants. */
|
||||
#define MAX_MACHS ((int) MACH_MAX)
|
||||
|
||||
/* Number of operands. */
|
||||
#define MAX_OPERANDS ((int) M32R_OPERAND_MAX)
|
||||
|
||||
/* Operand and instruction attribute indices. */
|
||||
|
||||
/* Enum declaration for cgen_operand attrs. */
|
||||
typedef enum cgen_operand_attr {
|
||||
CGEN_OPERAND_ABS_ADDR, CGEN_OPERAND_FAKE, CGEN_OPERAND_NEGATIVE, CGEN_OPERAND_PC,
|
||||
CGEN_OPERAND_PCREL_ADDR, CGEN_OPERAND_RELAX, CGEN_OPERAND_RELOC, CGEN_OPERAND_SIGN_OPT,
|
||||
CGEN_OPERAND_UNSIGNED
|
||||
CGEN_OPERAND_ABS_ADDR, CGEN_OPERAND_FAKE, CGEN_OPERAND_NEGATIVE, CGEN_OPERAND_PC
|
||||
, CGEN_OPERAND_PCREL_ADDR, CGEN_OPERAND_RELAX, CGEN_OPERAND_RELOC, CGEN_OPERAND_SIGN_OPT
|
||||
, CGEN_OPERAND_UNSIGNED
|
||||
} CGEN_OPERAND_ATTR;
|
||||
|
||||
/* Number of non-boolean elements in cgen_operand. */
|
||||
#define CGEN_OPERAND_MAX_ATTRS ((int) CGEN_OPERAND_ABS_ADDR)
|
||||
|
||||
/* Enum declaration for cgen_insn attrs. */
|
||||
typedef enum cgen_insn_attr {
|
||||
CGEN_INSN_ALIAS, CGEN_INSN_COND_CTI, CGEN_INSN_FILL_SLOT, CGEN_INSN_RELAX,
|
||||
CGEN_INSN_RELAX_BC, CGEN_INSN_RELAX_BL, CGEN_INSN_RELAX_BNC, CGEN_INSN_RELAX_BRA,
|
||||
CGEN_INSN_RELAXABLE, CGEN_INSN_UNCOND_CTI
|
||||
CGEN_INSN_MACH
|
||||
/* start-sanitize-m32rx */
|
||||
, CGEN_INSN_PIPE
|
||||
/* end-sanitize-m32rx */
|
||||
, CGEN_INSN_ALIAS, CGEN_INSN_COND_CTI, CGEN_INSN_FILL_SLOT, CGEN_INSN_PARALLEL
|
||||
, CGEN_INSN_RELAX, CGEN_INSN_RELAXABLE, CGEN_INSN_UNCOND_CTI
|
||||
} CGEN_INSN_ATTR;
|
||||
|
||||
/* Number of non-boolean elements in cgen_insn. */
|
||||
#define CGEN_INSN_MAX_ATTRS ((int) CGEN_INSN_ALIAS)
|
||||
|
||||
/* Insn types are used by the simulator. */
|
||||
/* Enum declaration for m32r instruction types. */
|
||||
typedef enum cgen_insn_type {
|
||||
M32R_INSN_ILLEGAL, M32R_INSN_ADD, M32R_INSN_ADD3, M32R_INSN_AND,
|
||||
M32R_INSN_AND3, M32R_INSN_OR, M32R_INSN_OR3, M32R_INSN_XOR,
|
||||
M32R_INSN_XOR3, M32R_INSN_ADDI, M32R_INSN_ADDV, M32R_INSN_ADDV3,
|
||||
M32R_INSN_ADDX, M32R_INSN_BC8, M32R_INSN_BC8_S, M32R_INSN_BC24,
|
||||
M32R_INSN_BC24_L, M32R_INSN_BEQ, M32R_INSN_BEQZ, M32R_INSN_BGEZ,
|
||||
M32R_INSN_BGTZ, M32R_INSN_BLEZ, M32R_INSN_BLTZ, M32R_INSN_BNEZ,
|
||||
M32R_INSN_BL8, M32R_INSN_BL8_S, M32R_INSN_BL24, M32R_INSN_BL24_L,
|
||||
M32R_INSN_BNC8, M32R_INSN_BNC8_S, M32R_INSN_BNC24, M32R_INSN_BNC24_L,
|
||||
M32R_INSN_BNE, M32R_INSN_BRA8, M32R_INSN_BRA8_S, M32R_INSN_BRA24,
|
||||
M32R_INSN_BRA24_L, M32R_INSN_CMP, M32R_INSN_CMPI, M32R_INSN_CMPU,
|
||||
M32R_INSN_CMPUI, M32R_INSN_DIV, M32R_INSN_DIVU, M32R_INSN_REM,
|
||||
M32R_INSN_REMU, M32R_INSN_JL, M32R_INSN_JMP, M32R_INSN_LD,
|
||||
M32R_INSN_LD_2, M32R_INSN_LD_D, M32R_INSN_LD_D2, M32R_INSN_LDB,
|
||||
M32R_INSN_LDB_2, M32R_INSN_LDB_D, M32R_INSN_LDB_D2, M32R_INSN_LDH,
|
||||
M32R_INSN_LDH_2, M32R_INSN_LDH_D, M32R_INSN_LDH_D2, M32R_INSN_LDUB,
|
||||
M32R_INSN_LDUB_2, M32R_INSN_LDUB_D, M32R_INSN_LDUB_D2, M32R_INSN_LDUH,
|
||||
M32R_INSN_LDUH_2, M32R_INSN_LDUH_D, M32R_INSN_LDUH_D2, M32R_INSN_LD_PLUS,
|
||||
M32R_INSN_LD24, M32R_INSN_LDI8, M32R_INSN_LDI8A, M32R_INSN_LDI16,
|
||||
M32R_INSN_LDI16A, M32R_INSN_LOCK, M32R_INSN_MACHI, M32R_INSN_MACLO,
|
||||
M32R_INSN_MACWHI, M32R_INSN_MACWLO, M32R_INSN_MUL, M32R_INSN_MULHI,
|
||||
M32R_INSN_MULLO, M32R_INSN_MULWHI, M32R_INSN_MULWLO, M32R_INSN_MV,
|
||||
M32R_INSN_MVFACHI, M32R_INSN_MVFACLO, M32R_INSN_MVFACMI, M32R_INSN_MVFC,
|
||||
M32R_INSN_MVTACHI, M32R_INSN_MVTACLO, M32R_INSN_MVTC, M32R_INSN_NEG,
|
||||
M32R_INSN_NOP, M32R_INSN_NOT, M32R_INSN_RAC, M32R_INSN_RACH,
|
||||
M32R_INSN_RTE, M32R_INSN_SETH, M32R_INSN_SLL, M32R_INSN_SLL3,
|
||||
M32R_INSN_SLLI, M32R_INSN_SRA, M32R_INSN_SRA3, M32R_INSN_SRAI,
|
||||
M32R_INSN_SRL, M32R_INSN_SRL3, M32R_INSN_SRLI, M32R_INSN_ST,
|
||||
M32R_INSN_ST_2, M32R_INSN_ST_D, M32R_INSN_ST_D2, M32R_INSN_STB,
|
||||
M32R_INSN_STB_2, M32R_INSN_STB_D, M32R_INSN_STB_D2, M32R_INSN_STH,
|
||||
M32R_INSN_STH_2, M32R_INSN_STH_D, M32R_INSN_STH_D2, M32R_INSN_ST_PLUS,
|
||||
M32R_INSN_ST_MINUS, M32R_INSN_SUB, M32R_INSN_SUBV, M32R_INSN_SUBX,
|
||||
M32R_INSN_TRAP, M32R_INSN_UNLOCK, M32R_INSN_PUSH, M32R_INSN_POP,
|
||||
M32R_INSN_MAX
|
||||
M32R_INSN_ILLEGAL, M32R_INSN_ADD, M32R_INSN_ADD3, M32R_INSN_ADD3_A
|
||||
, M32R_INSN_AND, M32R_INSN_AND3, M32R_INSN_AND3_A, M32R_INSN_OR
|
||||
, M32R_INSN_OR3, M32R_INSN_OR3_A, M32R_INSN_XOR, M32R_INSN_XOR3
|
||||
, M32R_INSN_XOR3_A, M32R_INSN_ADDI, M32R_INSN_ADDI_A, M32R_INSN_ADDV
|
||||
, M32R_INSN_ADDV3, M32R_INSN_ADDV3_A, M32R_INSN_ADDX, M32R_INSN_BC8
|
||||
, M32R_INSN_BC8_S, M32R_INSN_BC24, M32R_INSN_BC24_L, M32R_INSN_BEQ
|
||||
, M32R_INSN_BEQZ, M32R_INSN_BGEZ, M32R_INSN_BGTZ, M32R_INSN_BLEZ
|
||||
, M32R_INSN_BLTZ, M32R_INSN_BNEZ, M32R_INSN_BL8, M32R_INSN_BL8_S
|
||||
, M32R_INSN_BL24, M32R_INSN_BL24_L
|
||||
/* start-sanitize-m32rx */
|
||||
, M32R_INSN_BCL8
|
||||
/* end-sanitize-m32rx */
|
||||
/* start-sanitize-m32rx */
|
||||
, M32R_INSN_BCL8_S
|
||||
/* end-sanitize-m32rx */
|
||||
/* start-sanitize-m32rx */
|
||||
, M32R_INSN_BCL24
|
||||
/* end-sanitize-m32rx */
|
||||
/* start-sanitize-m32rx */
|
||||
, M32R_INSN_BCL24_L
|
||||
/* end-sanitize-m32rx */
|
||||
, M32R_INSN_BNC8, M32R_INSN_BNC8_S, M32R_INSN_BNC24, M32R_INSN_BNC24_L
|
||||
, M32R_INSN_BNE, M32R_INSN_BRA8, M32R_INSN_BRA8_S, M32R_INSN_BRA24
|
||||
, M32R_INSN_BRA24_L
|
||||
/* start-sanitize-m32rx */
|
||||
, M32R_INSN_BNCL8
|
||||
/* end-sanitize-m32rx */
|
||||
/* start-sanitize-m32rx */
|
||||
, M32R_INSN_BNCL8_S
|
||||
/* end-sanitize-m32rx */
|
||||
/* start-sanitize-m32rx */
|
||||
, M32R_INSN_BNCL24
|
||||
/* end-sanitize-m32rx */
|
||||
/* start-sanitize-m32rx */
|
||||
, M32R_INSN_BNCL24_L
|
||||
/* end-sanitize-m32rx */
|
||||
, M32R_INSN_CMP, M32R_INSN_CMPI, M32R_INSN_CMPI_A, M32R_INSN_CMPU
|
||||
, M32R_INSN_CMPUI, M32R_INSN_CMPUI_A
|
||||
/* start-sanitize-m32rx */
|
||||
, M32R_INSN_CMPEQ
|
||||
/* end-sanitize-m32rx */
|
||||
/* start-sanitize-m32rx */
|
||||
, M32R_INSN_CMPZ
|
||||
/* end-sanitize-m32rx */
|
||||
, M32R_INSN_DIV, M32R_INSN_DIVU, M32R_INSN_REM, M32R_INSN_REMU
|
||||
/* start-sanitize-m32rx */
|
||||
, M32R_INSN_JC
|
||||
/* end-sanitize-m32rx */
|
||||
/* start-sanitize-m32rx */
|
||||
, M32R_INSN_JNC
|
||||
/* end-sanitize-m32rx */
|
||||
, M32R_INSN_JL, M32R_INSN_JMP, M32R_INSN_LD, M32R_INSN_LD_2
|
||||
, M32R_INSN_LD_D, M32R_INSN_LD_D2, M32R_INSN_LDB, M32R_INSN_LDB_2
|
||||
, M32R_INSN_LDB_D, M32R_INSN_LDB_D2, M32R_INSN_LDH, M32R_INSN_LDH_2
|
||||
, M32R_INSN_LDH_D, M32R_INSN_LDH_D2, M32R_INSN_LDUB, M32R_INSN_LDUB_2
|
||||
, M32R_INSN_LDUB_D, M32R_INSN_LDUB_D2, M32R_INSN_LDUH, M32R_INSN_LDUH_2
|
||||
, M32R_INSN_LDUH_D, M32R_INSN_LDUH_D2, M32R_INSN_LD_PLUS, M32R_INSN_LD24
|
||||
, M32R_INSN_LD24_A, M32R_INSN_LDI8, M32R_INSN_LDI8_A, M32R_INSN_LDI8A
|
||||
, M32R_INSN_LDI8A_A, M32R_INSN_LDI16, M32R_INSN_LDI16A, M32R_INSN_LOCK
|
||||
, M32R_INSN_MACHI
|
||||
/* start-sanitize-m32rx */
|
||||
, M32R_INSN_MACHI_A
|
||||
/* end-sanitize-m32rx */
|
||||
, M32R_INSN_MACLO
|
||||
/* start-sanitize-m32rx */
|
||||
, M32R_INSN_MACLO_A
|
||||
/* end-sanitize-m32rx */
|
||||
, M32R_INSN_MACWHI, M32R_INSN_MACWLO, M32R_INSN_MUL, M32R_INSN_MULHI
|
||||
/* start-sanitize-m32rx */
|
||||
, M32R_INSN_MULHI_A
|
||||
/* end-sanitize-m32rx */
|
||||
, M32R_INSN_MULLO
|
||||
/* start-sanitize-m32rx */
|
||||
, M32R_INSN_MULLO_A
|
||||
/* end-sanitize-m32rx */
|
||||
, M32R_INSN_MULWHI, M32R_INSN_MULWLO, M32R_INSN_MV, M32R_INSN_MVFACHI
|
||||
/* start-sanitize-m32rx */
|
||||
, M32R_INSN_MVFACHI_A
|
||||
/* end-sanitize-m32rx */
|
||||
, M32R_INSN_MVFACLO
|
||||
/* start-sanitize-m32rx */
|
||||
, M32R_INSN_MVFACLO_A
|
||||
/* end-sanitize-m32rx */
|
||||
, M32R_INSN_MVFACMI
|
||||
/* start-sanitize-m32rx */
|
||||
, M32R_INSN_MVFACMI_A
|
||||
/* end-sanitize-m32rx */
|
||||
, M32R_INSN_MVFC, M32R_INSN_MVTACHI
|
||||
/* start-sanitize-m32rx */
|
||||
, M32R_INSN_MVTACHI_A
|
||||
/* end-sanitize-m32rx */
|
||||
, M32R_INSN_MVTACLO
|
||||
/* start-sanitize-m32rx */
|
||||
, M32R_INSN_MVTACLO_A
|
||||
/* end-sanitize-m32rx */
|
||||
, M32R_INSN_MVTC, M32R_INSN_NEG, M32R_INSN_NOP, M32R_INSN_NOT
|
||||
, M32R_INSN_RAC
|
||||
/* start-sanitize-m32rx */
|
||||
, M32R_INSN_RAC_A
|
||||
/* end-sanitize-m32rx */
|
||||
, M32R_INSN_RACH
|
||||
/* start-sanitize-m32rx */
|
||||
, M32R_INSN_RACH_A
|
||||
/* end-sanitize-m32rx */
|
||||
, M32R_INSN_RTE, M32R_INSN_SETH, M32R_INSN_SETH_A, M32R_INSN_SLL
|
||||
, M32R_INSN_SLL3, M32R_INSN_SLL3_A, M32R_INSN_SLLI, M32R_INSN_SLLI_A
|
||||
, M32R_INSN_SRA, M32R_INSN_SRA3, M32R_INSN_SRA3_A, M32R_INSN_SRAI
|
||||
, M32R_INSN_SRAI_A, M32R_INSN_SRL, M32R_INSN_SRL3, M32R_INSN_SRL3_A
|
||||
, M32R_INSN_SRLI, M32R_INSN_SRLI_A, M32R_INSN_ST, M32R_INSN_ST_2
|
||||
, M32R_INSN_ST_D, M32R_INSN_ST_D2, M32R_INSN_STB, M32R_INSN_STB_2
|
||||
, M32R_INSN_STB_D, M32R_INSN_STB_D2, M32R_INSN_STH, M32R_INSN_STH_2
|
||||
, M32R_INSN_STH_D, M32R_INSN_STH_D2, M32R_INSN_ST_PLUS, M32R_INSN_ST_MINUS
|
||||
, M32R_INSN_SUB, M32R_INSN_SUBV, M32R_INSN_SUBX, M32R_INSN_TRAP
|
||||
, M32R_INSN_TRAP_A, M32R_INSN_UNLOCK, M32R_INSN_PUSH, M32R_INSN_POP
|
||||
/* start-sanitize-m32rx */
|
||||
, M32R_INSN_SATB
|
||||
/* end-sanitize-m32rx */
|
||||
/* start-sanitize-m32rx */
|
||||
, M32R_INSN_SATH
|
||||
/* end-sanitize-m32rx */
|
||||
/* start-sanitize-m32rx */
|
||||
, M32R_INSN_SAT
|
||||
/* end-sanitize-m32rx */
|
||||
/* start-sanitize-m32rx */
|
||||
, M32R_INSN_PCMPBZ
|
||||
/* end-sanitize-m32rx */
|
||||
/* start-sanitize-m32rx */
|
||||
, M32R_INSN_SADD
|
||||
/* end-sanitize-m32rx */
|
||||
/* start-sanitize-m32rx */
|
||||
, M32R_INSN_MACWU1
|
||||
/* end-sanitize-m32rx */
|
||||
/* start-sanitize-m32rx */
|
||||
, M32R_INSN_MSBLO
|
||||
/* end-sanitize-m32rx */
|
||||
/* start-sanitize-m32rx */
|
||||
, M32R_INSN_MULWU1
|
||||
/* end-sanitize-m32rx */
|
||||
/* start-sanitize-m32rx */
|
||||
, M32R_INSN_MACHL1
|
||||
/* end-sanitize-m32rx */
|
||||
/* start-sanitize-m32rx */
|
||||
, M32R_INSN_SC
|
||||
/* end-sanitize-m32rx */
|
||||
/* start-sanitize-m32rx */
|
||||
, M32R_INSN_SNC
|
||||
/* end-sanitize-m32rx */
|
||||
, M32R_INSN_MAX
|
||||
} CGEN_INSN_TYPE;
|
||||
|
||||
/* Index of `illegal' insn place holder. */
|
||||
#define CGEN_INSN_ILLEGAL M32R_INSN_ILLEGAL
|
||||
/* Total number of insns in table. */
|
||||
#define CGEN_MAX_INSNS ((int) M32R_INSN_MAX)
|
||||
#define MAX_INSNS ((int) M32R_INSN_MAX)
|
||||
|
||||
/* cgen.h uses things we just defined. */
|
||||
#include "opcode/cgen.h"
|
||||
|
@ -175,6 +320,18 @@ typedef struct cgen_fields
|
|||
long f_disp8;
|
||||
long f_disp16;
|
||||
long f_disp24;
|
||||
/* start-sanitize-m32rx */
|
||||
long f_op23;
|
||||
/* end-sanitize-m32rx */
|
||||
/* start-sanitize-m32rx */
|
||||
long f_op3;
|
||||
/* end-sanitize-m32rx */
|
||||
/* start-sanitize-m32rx */
|
||||
long f_acc;
|
||||
/* end-sanitize-m32rx */
|
||||
/* start-sanitize-m32rx */
|
||||
long f_accs;
|
||||
/* end-sanitize-m32rx */
|
||||
int length;
|
||||
} CGEN_FIELDS;
|
||||
|
||||
|
@ -182,9 +339,11 @@ typedef struct cgen_fields
|
|||
extern const CGEN_ATTR_TABLE m32r_cgen_operand_attr_table[];
|
||||
extern const CGEN_ATTR_TABLE m32r_cgen_insn_attr_table[];
|
||||
|
||||
extern CGEN_KEYWORD m32r_cgen_opval_mach;
|
||||
extern CGEN_KEYWORD m32r_cgen_opval_h_gr;
|
||||
extern CGEN_KEYWORD m32r_cgen_opval_h_cr;
|
||||
/* start-sanitize-m32rx */
|
||||
extern CGEN_KEYWORD m32r_cgen_opval_h_accums;
|
||||
/* end-sanitize-m32rx */
|
||||
|
||||
#define CGEN_INIT_PARSE() \
|
||||
{\
|
||||
|
|
Loading…
Reference in New Issue