regenerate

This commit is contained in:
Doug Evans 1998-01-20 04:16:37 +00:00
parent 4a44afd5c7
commit 5d07b6cf9e
4 changed files with 54 additions and 39 deletions

View file

@ -351,7 +351,7 @@ m32r_cgen_parse_operand (opindex, strp, fields)
CGEN_INLINE void CGEN_INLINE void
m32r_cgen_insert_operand (opindex, fields, buffer) m32r_cgen_insert_operand (opindex, fields, buffer)
int opindex; int opindex;
CGEN_FIELDS * fields; CGEN_FIELDS * fields;
cgen_insn_t * buffer; cgen_insn_t * buffer;
{ {
@ -430,7 +430,7 @@ m32r_cgen_insert_operand (opindex, fields, buffer)
CGEN_INLINE const char * CGEN_INLINE const char *
m32r_cgen_validate_operand (opindex, fields) m32r_cgen_validate_operand (opindex, fields)
int opindex; int opindex;
const CGEN_FIELDS * fields; const CGEN_FIELDS * fields;
{ {
const char * errmsg = NULL; const char * errmsg = NULL;
@ -502,12 +502,14 @@ m32r_cgen_validate_operand (opindex, fields)
} }
cgen_parse_fn * m32r_cgen_parse_handlers[] = cgen_parse_fn * m32r_cgen_parse_handlers[] =
{ 0, /* default */ {
0, /* default */
parse_insn_normal, parse_insn_normal,
}; };
cgen_insert_fn * m32r_cgen_insert_handlers[] = cgen_insert_fn * m32r_cgen_insert_handlers[] =
{ 0, /* default */ {
0, /* default */
insert_insn_normal, insert_insn_normal,
}; };

View file

@ -196,9 +196,9 @@ my_print_insn (pc, info, buf, buflen)
CGEN_INLINE int CGEN_INLINE int
m32r_cgen_extract_operand (opindex, buf_ctrl, insn_value, fields) m32r_cgen_extract_operand (opindex, buf_ctrl, insn_value, fields)
int opindex; int opindex;
void * buf_ctrl; void * buf_ctrl;
cgen_insn_t insn_value; cgen_insn_t insn_value;
CGEN_FIELDS * fields; CGEN_FIELDS * fields;
{ {
int length; int length;
@ -285,12 +285,12 @@ m32r_cgen_extract_operand (opindex, buf_ctrl, insn_value, fields)
CGEN_INLINE void CGEN_INLINE void
m32r_cgen_print_operand (opindex, info, fields, attrs, pc, length) m32r_cgen_print_operand (opindex, info, fields, attrs, pc, length)
int opindex; int opindex;
disassemble_info * info; disassemble_info * info;
CGEN_FIELDS * fields; CGEN_FIELDS * fields;
void const * attrs; void const * attrs;
bfd_vma pc; bfd_vma pc;
int length; int length;
{ {
switch (opindex) switch (opindex)
{ {
@ -357,12 +357,14 @@ m32r_cgen_print_operand (opindex, info, fields, attrs, pc, length)
} }
cgen_extract_fn * m32r_cgen_extract_handlers[] = cgen_extract_fn * m32r_cgen_extract_handlers[] =
{ 0, /* default */ {
0, /* default */
extract_insn_normal, extract_insn_normal,
}; };
cgen_print_fn * m32r_cgen_print_handlers[] = cgen_print_fn * m32r_cgen_print_handlers[] =
{ 0, /* default */ {
0, /* default */
print_insn_normal, print_insn_normal,
}; };
@ -455,7 +457,7 @@ print_insn_normal (dis_info, insn, fields, pc, length)
} }
/* Default value for CGEN_PRINT_INSN. /* Default value for CGEN_PRINT_INSN.
Given BUFLEN bytes (target byte order) read into BUF, look up the Given BUFLEN bits (target byte order) read into BUF, look up the
insn in the instruction table and disassemble it. insn in the instruction table and disassemble it.
The result is the size of the insn in bytes. */ The result is the size of the insn in bytes. */

View file

@ -1,8 +1,6 @@
/* CGEN opcode support for m32r. /* CGEN opcode support for m32r.
This file is machine generated. Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
Copyright (C) 1996, 1997 Free Software Foundation, Inc.
This file is part of the GNU Binutils and/or GDB, the GNU debugger. This file is part of the GNU Binutils and/or GDB, the GNU debugger.
@ -33,12 +31,14 @@ with this program; if not, write to the Free Software Foundation, Inc.,
/* Attributes. */ /* Attributes. */
static const CGEN_ATTR_ENTRY MACH_attr[] = static const CGEN_ATTR_ENTRY MACH_attr[] =
{ { "m32r", MACH_M32R }, {
{ "m32r", MACH_M32R },
{ 0, 0 } { 0, 0 }
}; };
const CGEN_ATTR_TABLE m32r_cgen_operand_attr_table[] = const CGEN_ATTR_TABLE m32r_cgen_operand_attr_table[] =
{ { "ABS-ADDR", NULL }, {
{ "ABS-ADDR", NULL },
{ "FAKE", NULL }, { "FAKE", NULL },
{ "NEGATIVE", NULL }, { "NEGATIVE", NULL },
{ "PC", NULL }, { "PC", NULL },
@ -51,7 +51,8 @@ const CGEN_ATTR_TABLE m32r_cgen_operand_attr_table[] =
}; };
const CGEN_ATTR_TABLE m32r_cgen_insn_attr_table[] = const CGEN_ATTR_TABLE m32r_cgen_insn_attr_table[] =
{ { "ALIAS", NULL }, {
{ "ALIAS", NULL },
{ "COND-CTI", NULL }, { "COND-CTI", NULL },
{ "FILL-SLOT", NULL }, { "FILL-SLOT", NULL },
{ "RELAX", NULL }, { "RELAX", NULL },
@ -65,16 +66,19 @@ const CGEN_ATTR_TABLE m32r_cgen_insn_attr_table[] =
}; };
CGEN_KEYWORD_ENTRY m32r_cgen_opval_mach_entries[] = CGEN_KEYWORD_ENTRY m32r_cgen_opval_mach_entries[] =
{ { "m32r", MACH_M32R } {
{ "m32r", MACH_M32R }
}; };
CGEN_KEYWORD m32r_cgen_opval_mach = CGEN_KEYWORD m32r_cgen_opval_mach =
{ & m32r_cgen_opval_mach_entries[0], {
& m32r_cgen_opval_mach_entries[0],
1 1
}; };
CGEN_KEYWORD_ENTRY m32r_cgen_opval_h_gr_entries[] = CGEN_KEYWORD_ENTRY m32r_cgen_opval_h_gr_entries[] =
{ { "fp", 13 }, {
{ "fp", 13 },
{ "lr", 14 }, { "lr", 14 },
{ "sp", 15 }, { "sp", 15 },
{ "r0", 0 }, { "r0", 0 },
@ -96,12 +100,14 @@ CGEN_KEYWORD_ENTRY m32r_cgen_opval_h_gr_entries[] =
}; };
CGEN_KEYWORD m32r_cgen_opval_h_gr = CGEN_KEYWORD m32r_cgen_opval_h_gr =
{ & m32r_cgen_opval_h_gr_entries[0], {
& m32r_cgen_opval_h_gr_entries[0],
19 19
}; };
CGEN_KEYWORD_ENTRY m32r_cgen_opval_h_cr_entries[] = CGEN_KEYWORD_ENTRY m32r_cgen_opval_h_cr_entries[] =
{ { "psw", 0 }, {
{ "psw", 0 },
{ "cbr", 1 }, { "cbr", 1 },
{ "spi", 2 }, { "spi", 2 },
{ "spu", 3 }, { "spu", 3 },
@ -116,13 +122,15 @@ CGEN_KEYWORD_ENTRY m32r_cgen_opval_h_cr_entries[] =
}; };
CGEN_KEYWORD m32r_cgen_opval_h_cr = CGEN_KEYWORD m32r_cgen_opval_h_cr =
{ & m32r_cgen_opval_h_cr_entries[0], {
& m32r_cgen_opval_h_cr_entries[0],
12 12
}; };
static CGEN_HW_ENTRY m32r_cgen_hw_entries[] = static CGEN_HW_ENTRY m32r_cgen_hw_entries[] =
{ { & m32r_cgen_hw_entries[1], "h-pc", CGEN_ASM_KEYWORD /*FIXME*/, 0 }, {
{ & m32r_cgen_hw_entries[1], "h-pc", CGEN_ASM_KEYWORD /*FIXME*/, 0 },
{ & m32r_cgen_hw_entries[2], "h-memory", CGEN_ASM_KEYWORD /*FIXME*/, 0 }, { & m32r_cgen_hw_entries[2], "h-memory", CGEN_ASM_KEYWORD /*FIXME*/, 0 },
{ & m32r_cgen_hw_entries[3], "h-sint", CGEN_ASM_KEYWORD /*FIXME*/, 0 }, { & m32r_cgen_hw_entries[3], "h-sint", CGEN_ASM_KEYWORD /*FIXME*/, 0 },
{ & m32r_cgen_hw_entries[4], "h-uint", CGEN_ASM_KEYWORD /*FIXME*/, 0 }, { & m32r_cgen_hw_entries[4], "h-uint", CGEN_ASM_KEYWORD /*FIXME*/, 0 },
@ -193,7 +201,8 @@ const CGEN_OPERAND m32r_cgen_operand_table[CGEN_NUM_OPERANDS] =
#define OP 1 /* syntax value for mnemonic */ #define OP 1 /* syntax value for mnemonic */
static const CGEN_SYNTAX syntax_table[] = static const CGEN_SYNTAX syntax_table[] =
{/* <op> $dr,$sr */ {
/* <op> $dr,$sr */
/* 0 */ { OP, ' ', 130, ',', 129, 0 }, /* 0 */ { OP, ' ', 130, ',', 129, 0 },
/* <op> $dr,$sr,$slo16 */ /* <op> $dr,$sr,$slo16 */
/* 1 */ { OP, ' ', 130, ',', 129, ',', 141, 0 }, /* 1 */ { OP, ' ', 130, ',', 129, ',', 141, 0 },
@ -268,7 +277,8 @@ static const CGEN_SYNTAX syntax_table[] =
#undef OP #undef OP
static const CGEN_FORMAT format_table[] = static const CGEN_FORMAT format_table[] =
{/* f-op1.number.f-r1.dr.f-op2.number.f-r2.sr. */ {
/* f-op1.number.f-r1.dr.f-op2.number.f-r2.sr. */
/* 0 */ { 16, 16, 0xf0f0 }, /* 0 */ { 16, 16, 0xf0f0 },
/* f-op1.number.f-r1.dr.f-op2.number.f-r2.sr.f-simm16.slo16. */ /* f-op1.number.f-r1.dr.f-op2.number.f-r2.sr.f-simm16.slo16. */
/* 1 */ { 32, 32, 0xf0f00000 }, /* 1 */ { 32, 32, 0xf0f00000 },
@ -327,7 +337,8 @@ static const CGEN_FORMAT format_table[] =
#define FMT(n) (& format_table[n]) #define FMT(n) (& format_table[n])
const CGEN_INSN m32r_cgen_insn_table_entries[CGEN_NUM_INSNS] = const CGEN_INSN m32r_cgen_insn_table_entries[CGEN_NUM_INSNS] =
{ /* null first entry, end of all hash chains */ {
/* null first entry, end of all hash chains */
{ { 0 }, 0 }, { { 0 }, 0 },
/* add $dr,$sr */ /* add $dr,$sr */
{ {
@ -1119,14 +1130,15 @@ m32r_cgen_asm_hash_insn (insn)
unsigned int unsigned int
m32r_cgen_dis_hash_insn (buf, value) m32r_cgen_dis_hash_insn (buf, value)
const char * buf; const char * buf;
unsigned long value; unsigned long value;
{ {
return CGEN_DIS_HASH (buf, value); return CGEN_DIS_HASH (buf, value);
} }
CGEN_OPCODE_DATA m32r_cgen_opcode_data = CGEN_OPCODE_DATA m32r_cgen_opcode_data =
{ & m32r_cgen_hw_entries[0], {
& m32r_cgen_hw_entries[0],
& m32r_cgen_insn_table, & m32r_cgen_insn_table,
}; };
@ -1141,7 +1153,7 @@ m32r_cgen_init_tables (mach)
CGEN_INLINE void CGEN_INLINE void
m32r_cgen_set_operand (opindex, valuep, fields) m32r_cgen_set_operand (opindex, valuep, fields)
int opindex; int opindex;
const long * valuep; const long * valuep;
CGEN_FIELDS * fields; CGEN_FIELDS * fields;
{ {
switch (opindex) switch (opindex)
@ -1212,7 +1224,7 @@ m32r_cgen_set_operand (opindex, valuep, fields)
CGEN_INLINE long CGEN_INLINE long
m32r_cgen_get_operand (opindex, fields) m32r_cgen_get_operand (opindex, fields)
int opindex; int opindex;
const CGEN_FIELDS * fields; const CGEN_FIELDS * fields;
{ {
long value; long value;

View file

@ -1,8 +1,6 @@
/* Instruction description for m32r. /* Instruction description for m32r.
This file is machine generated. Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
Copyright (C) 1996, 1997 Free Software Foundation, Inc.
This file is part of the GNU Binutils and/or GDB, the GNU debugger. This file is part of the GNU Binutils and/or GDB, the GNU debugger.
@ -155,7 +153,8 @@ typedef enum cgen_insn_type {
/* This struct records data prior to insertion or after extraction. */ /* This struct records data prior to insertion or after extraction. */
typedef struct cgen_fields typedef struct cgen_fields
{ long f_nil; {
long f_nil;
long f_op1; long f_op1;
long f_op2; long f_op2;
long f_cond; long f_cond;