diff options
author | Graydon Hoare <graydon@redhat.com> | 2002-01-22 21:45:36 +0000 |
---|---|---|
committer | Graydon Hoare <graydon@redhat.com> | 2002-01-22 21:45:36 +0000 |
commit | 41e4aaba7a7236dac62166993a781ee9bda286a1 (patch) | |
tree | 1521fdb0644acad568b73d5c603b269d05439cf1 /opcodes/xstormy16-desc.c | |
parent | d62bf15701f9040b0ff226c78a5fc734a1c5a1ce (diff) | |
download | gdb-41e4aaba7a7236dac62166993a781ee9bda286a1.tar.gz |
[ include/opcode/ChangeLog ]
2002-01-22 Graydon Hoare <graydon@redhat.com>
* cgen.h (CGEN_MAYBE_MULTI_IFLD): New structure.
(CGEN_OPERAND): Add CGEN_MAYBE_MULTI_IFLD field.
[ opcodes/ChangeLog ]
2002-01-22 Graydon Hoare <graydon@redhat.com>
* fr30-asm.c: Regenerate.
* fr30-desc.c: Likewise.
* fr30-desc.h: Likewise.
* fr30-dis.c: Likewise.
* fr30-ibld.c: Likewise.
* fr30-opc.c: Likewise.
* fr30-opc.h: Likewise.
* m32r-asm.c: Likewise.
* m32r-desc.c: Likewise.
* m32r-desc.h: Likewise.
* m32r-dis.c: Likewise.
* m32r-ibld.c: Likewise.
* m32r-opc.c: Likewise.
* m32r-opc.h: Likewise.
* m32r-opinst.c: Likewise.
* openrisc-asm.c: Likewise.
* openrisc-desc.c: Likewise.
* openrisc-desc.h: Likewise.
* openrisc-dis.c: Likewise.
* openrisc-ibld.c: Likewise.
* openrisc-opc.c: Likewise.
* openrisc-opc.h: Likewise.
* xstormy16-desc.c: Likewise.
[ cgen/ChangeLog ]
2002-01-22 Graydon Hoare <graydon@redhat.com>
* desc-cpu.scm (ifld-number-cache): Add.
(ifld-number): Add.
(gen-maybe-multi-ifld-of-op): Add.
(gen-maybe-multi-ifld): Add.
(gen-multi-ifield-nodes): Add.
(cgen-desc.c): Add call to gen-multi-ifield-nodes.
Diffstat (limited to 'opcodes/xstormy16-desc.c')
-rw-r--r-- | opcodes/xstormy16-desc.c | 62 |
1 files changed, 58 insertions, 4 deletions
diff --git a/opcodes/xstormy16-desc.c b/opcodes/xstormy16-desc.c index 65867791a59..41da91ba9c7 100644 --- a/opcodes/xstormy16-desc.c +++ b/opcodes/xstormy16-desc.c @@ -302,6 +302,21 @@ const CGEN_IFLD xstormy16_cgen_ifld_table[] = #undef A + +/* multi ifield declarations */ + +const CGEN_MAYBE_MULTI_IFLD XSTORMY16_F_ABS24_MULTI_IFIELD []; + + +/* multi ifield definitions */ + +const CGEN_MAYBE_MULTI_IFLD XSTORMY16_F_ABS24_MULTI_IFIELD [] = +{ + { 0, &(xstormy16_cgen_ifld_table[34]) }, + { 0, &(xstormy16_cgen_ifld_table[35]) }, + {0,0} +}; + /* The operand table. */ #if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE) @@ -319,120 +334,159 @@ const CGEN_OPERAND xstormy16_cgen_operand_table[] = { /* pc: program counter */ { "pc", XSTORMY16_OPERAND_PC, HW_H_PC, 0, 0, + { 0, &(xstormy16_cgen_ifld_table[0]) }, { 0|A(SEM_ONLY), { (1<<MACH_BASE) } } }, /* psw-z8: */ { "psw-z8", XSTORMY16_OPERAND_PSW_Z8, HW_H_Z8, 0, 0, + { 0, 0 }, { 0|A(SEM_ONLY), { (1<<MACH_BASE) } } }, /* psw-z16: */ { "psw-z16", XSTORMY16_OPERAND_PSW_Z16, HW_H_Z16, 0, 0, + { 0, 0 }, { 0|A(SEM_ONLY), { (1<<MACH_BASE) } } }, /* psw-cy: */ { "psw-cy", XSTORMY16_OPERAND_PSW_CY, HW_H_CY, 0, 0, + { 0, 0 }, { 0|A(SEM_ONLY), { (1<<MACH_BASE) } } }, /* psw-hc: */ { "psw-hc", XSTORMY16_OPERAND_PSW_HC, HW_H_HC, 0, 0, + { 0, 0 }, { 0|A(SEM_ONLY), { (1<<MACH_BASE) } } }, /* psw-ov: */ { "psw-ov", XSTORMY16_OPERAND_PSW_OV, HW_H_OV, 0, 0, + { 0, 0 }, { 0|A(SEM_ONLY), { (1<<MACH_BASE) } } }, /* psw-pt: */ { "psw-pt", XSTORMY16_OPERAND_PSW_PT, HW_H_PT, 0, 0, + { 0, 0 }, { 0|A(SEM_ONLY), { (1<<MACH_BASE) } } }, /* psw-s: */ { "psw-s", XSTORMY16_OPERAND_PSW_S, HW_H_S, 0, 0, + { 0, 0 }, { 0|A(SEM_ONLY), { (1<<MACH_BASE) } } }, /* Rd: general register destination */ { "Rd", XSTORMY16_OPERAND_RD, HW_H_GR, 12, 4, + { 0, &(xstormy16_cgen_ifld_table[2]) }, { 0, { (1<<MACH_BASE) } } }, /* Rdm: general register destination */ { "Rdm", XSTORMY16_OPERAND_RDM, HW_H_GR, 13, 3, + { 0, &(xstormy16_cgen_ifld_table[3]) }, { 0, { (1<<MACH_BASE) } } }, /* Rm: general register for memory */ { "Rm", XSTORMY16_OPERAND_RM, HW_H_GR, 4, 3, + { 0, &(xstormy16_cgen_ifld_table[4]) }, { 0, { (1<<MACH_BASE) } } }, /* Rs: general register source */ { "Rs", XSTORMY16_OPERAND_RS, HW_H_GR, 8, 4, + { 0, &(xstormy16_cgen_ifld_table[5]) }, { 0, { (1<<MACH_BASE) } } }, /* Rb: base register */ { "Rb", XSTORMY16_OPERAND_RB, HW_H_RB, 17, 3, + { 0, &(xstormy16_cgen_ifld_table[6]) }, { 0, { (1<<MACH_BASE) } } }, /* Rbj: base register for jump */ { "Rbj", XSTORMY16_OPERAND_RBJ, HW_H_RBJ, 11, 1, + { 0, &(xstormy16_cgen_ifld_table[7]) }, { 0, { (1<<MACH_BASE) } } }, /* bcond2: branch condition opcode */ { "bcond2", XSTORMY16_OPERAND_BCOND2, HW_H_BRANCHCOND, 4, 4, + { 0, &(xstormy16_cgen_ifld_table[9]) }, { 0, { (1<<MACH_BASE) } } }, /* ws2: word size opcode */ { "ws2", XSTORMY16_OPERAND_WS2, HW_H_WORDSIZE, 7, 1, + { 0, &(xstormy16_cgen_ifld_table[11]) }, { 0, { (1<<MACH_BASE) } } }, /* bcond5: branch condition opcode */ { "bcond5", XSTORMY16_OPERAND_BCOND5, HW_H_BRANCHCOND, 16, 4, + { 0, &(xstormy16_cgen_ifld_table[18]) }, { 0, { (1<<MACH_BASE) } } }, /* imm2: 2 bit unsigned immediate */ { "imm2", XSTORMY16_OPERAND_IMM2, HW_H_UINT, 10, 2, + { 0, &(xstormy16_cgen_ifld_table[21]) }, { 0, { (1<<MACH_BASE) } } }, /* imm3: 3 bit unsigned immediate */ { "imm3", XSTORMY16_OPERAND_IMM3, HW_H_UINT, 4, 3, + { 0, &(xstormy16_cgen_ifld_table[22]) }, { 0, { (1<<MACH_BASE) } } }, /* imm3b: 3 bit unsigned immediate for bit tests */ { "imm3b", XSTORMY16_OPERAND_IMM3B, HW_H_UINT, 17, 3, + { 0, &(xstormy16_cgen_ifld_table[23]) }, { 0, { (1<<MACH_BASE) } } }, /* imm4: 4 bit unsigned immediate */ { "imm4", XSTORMY16_OPERAND_IMM4, HW_H_UINT, 8, 4, + { 0, &(xstormy16_cgen_ifld_table[24]) }, { 0, { (1<<MACH_BASE) } } }, /* imm8: 8 bit unsigned immediate */ { "imm8", XSTORMY16_OPERAND_IMM8, HW_H_UINT, 8, 8, + { 0, &(xstormy16_cgen_ifld_table[25]) }, { 0, { (1<<MACH_BASE) } } }, /* imm8small: 8 bit unsigned immediate */ { "imm8small", XSTORMY16_OPERAND_IMM8SMALL, HW_H_UINT, 8, 8, + { 0, &(xstormy16_cgen_ifld_table[25]) }, { 0, { (1<<MACH_BASE) } } }, /* imm12: 12 bit signed immediate */ { "imm12", XSTORMY16_OPERAND_IMM12, HW_H_SINT, 20, 12, + { 0, &(xstormy16_cgen_ifld_table[26]) }, { 0, { (1<<MACH_BASE) } } }, /* imm16: 16 bit immediate */ { "imm16", XSTORMY16_OPERAND_IMM16, HW_H_UINT, 16, 16, + { 0, &(xstormy16_cgen_ifld_table[27]) }, { 0|A(SIGN_OPT), { (1<<MACH_BASE) } } }, /* lmem8: 8 bit unsigned immediate low memory */ { "lmem8", XSTORMY16_OPERAND_LMEM8, HW_H_UINT, 8, 8, + { 0, &(xstormy16_cgen_ifld_table[28]) }, { 0|A(ABS_ADDR), { (1<<MACH_BASE) } } }, /* hmem8: 8 bit unsigned immediate high memory */ { "hmem8", XSTORMY16_OPERAND_HMEM8, HW_H_UINT, 8, 8, + { 0, &(xstormy16_cgen_ifld_table[29]) }, { 0|A(ABS_ADDR), { (1<<MACH_BASE) } } }, /* rel8-2: 8 bit relative address */ { "rel8-2", XSTORMY16_OPERAND_REL8_2, HW_H_UINT, 8, 8, + { 0, &(xstormy16_cgen_ifld_table[30]) }, { 0|A(PCREL_ADDR), { (1<<MACH_BASE) } } }, /* rel8-4: 8 bit relative address */ { "rel8-4", XSTORMY16_OPERAND_REL8_4, HW_H_UINT, 8, 8, + { 0, &(xstormy16_cgen_ifld_table[31]) }, { 0|A(PCREL_ADDR), { (1<<MACH_BASE) } } }, /* rel12: 12 bit relative address */ { "rel12", XSTORMY16_OPERAND_REL12, HW_H_UINT, 20, 12, + { 0, &(xstormy16_cgen_ifld_table[32]) }, { 0|A(PCREL_ADDR), { (1<<MACH_BASE) } } }, /* rel12a: 12 bit relative address */ { "rel12a", XSTORMY16_OPERAND_REL12A, HW_H_UINT, 4, 11, + { 0, &(xstormy16_cgen_ifld_table[33]) }, { 0|A(PCREL_ADDR), { (1<<MACH_BASE) } } }, /* abs24: 24 bit absolute address */ { "abs24", XSTORMY16_OPERAND_ABS24, HW_H_UINT, 8, 24, + { 2, &(XSTORMY16_F_ABS24_MULTI_IFIELD[0]) }, { 0|A(ABS_ADDR)|A(VIRTUAL), { (1<<MACH_BASE) } } }, /* psw: program status word */ { "psw", XSTORMY16_OPERAND_PSW, HW_H_GR, 0, 0, + { 0, 0 }, { 0|A(SEM_ONLY), { (1<<MACH_BASE) } } }, /* Rpsw: N0-N3 of the program status word */ { "Rpsw", XSTORMY16_OPERAND_RPSW, HW_H_RPSW, 0, 0, + { 0, 0 }, { 0|A(SEM_ONLY), { (1<<MACH_BASE) } } }, /* sp: stack pointer */ { "sp", XSTORMY16_OPERAND_SP, HW_H_GR, 0, 0, + { 0, 0 }, { 0|A(SEM_ONLY), { (1<<MACH_BASE) } } }, /* R0: R0 */ { "R0", XSTORMY16_OPERAND_R0, HW_H_GR, 0, 0, + { 0, 0 }, { 0|A(SEM_ONLY), { (1<<MACH_BASE) } } }, /* R1: R1 */ { "R1", XSTORMY16_OPERAND_R1, HW_H_GR, 0, 0, + { 0, 0 }, { 0|A(SEM_ONLY), { (1<<MACH_BASE) } } }, /* R2: R2 */ { "R2", XSTORMY16_OPERAND_R2, HW_H_GR, 0, 0, + { 0, 0 }, { 0|A(SEM_ONLY), { (1<<MACH_BASE) } } }, /* R8: R8 */ { "R8", XSTORMY16_OPERAND_R8, HW_H_GR, 0, 0, + { 0, 0 }, { 0|A(SEM_ONLY), { (1<<MACH_BASE) } } }, { 0, 0, 0, 0, 0, {0, {0}} } }; @@ -1222,8 +1276,8 @@ xstormy16_cgen_rebuild_tables (cd) { const CGEN_ISA *isa = & xstormy16_cgen_isa_table[i]; - /* Default insn sizes of all selected isas must be equal or we set - the result to 0, meaning "unknown". */ + /* Default insn sizes of all selected isas must be + equal or we set the result to 0, meaning "unknown". */ if (cd->default_insn_bitsize == UNSET) cd->default_insn_bitsize = isa->default_insn_bitsize; else if (isa->default_insn_bitsize == cd->default_insn_bitsize) @@ -1231,8 +1285,8 @@ xstormy16_cgen_rebuild_tables (cd) else cd->default_insn_bitsize = CGEN_SIZE_UNKNOWN; - /* Base insn sizes of all selected isas must be equal or we set - the result to 0, meaning "unknown". */ + /* Base insn sizes of all selected isas must be equal + or we set the result to 0, meaning "unknown". */ if (cd->base_insn_bitsize == UNSET) cd->base_insn_bitsize = isa->base_insn_bitsize; else if (isa->base_insn_bitsize == cd->base_insn_bitsize) |