X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=opcodes%2Fd30v-opc.c;h=6fe993ad128f17a93df82338f28a76bca767b091;hb=461b96748f7bf61694e6feafd56d098546ac84a9;hp=4ba3ee4c41eef8927bef85e9d5d1f48ad69b5776;hpb=866afedcb4ab9f775511bd2d1b21b517e26871ad;p=deliverable%2Fbinutils-gdb.git diff --git a/opcodes/d30v-opc.c b/opcodes/d30v-opc.c index 4ba3ee4c41..6fe993ad12 100644 --- a/opcodes/d30v-opc.c +++ b/opcodes/d30v-opc.c @@ -1,5 +1,5 @@ /* d30v-opc.c -- D30V opcode list - Copyright (C) 1997, 1998, 2000 Free Software Foundation, Inc. + Copyright 1997, 1998, 1999, 2000 Free Software Foundation, Inc. Written by Martin Hunt, Cygnus Support This file is part of GDB, GAS, and the GNU binutils. @@ -19,7 +19,7 @@ along with this file; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include -#include "ansidecl.h" +#include "sysdep.h" #include "opcode/d30v.h" /* This table is sorted. */ @@ -349,7 +349,9 @@ const struct d30v_operand d30v_operand_table[] = { 6, 6, 0, OPERAND_REG }, #define Rb (Ra3 + 1) { 6, 6, 6, OPERAND_REG }, -#define Rc (Rb + 1) +#define Rb2 (Rb + 1) + { 6, 6, 6, OPERAND_REG|OPERAND_DEST }, +#define Rc (Rb2 + 1) { 6, 6, 12, OPERAND_REG }, #define Aa (Rc + 1) { 6, 1, 0, OPERAND_ACC|OPERAND_REG|OPERAND_DEST }, @@ -460,14 +462,15 @@ const struct d30v_format d30v_format_table[] = { SHORT_AA, 2, { Aa, Rb, IMM6 } }, /* Aa,Rb,imm6 */ { SHORT_RA, 0, { Ra, Ab, Rc } }, /* Ra,Ab,Rc */ { SHORT_RA, 2, { Ra, Ab, IMM6U2 } }, /* Ra,Ab,imm6u */ - { SHORT_MODINC, 1, { Rb, IMM5 } }, /* Rb,imm5 (modinc) */ - { SHORT_MODDEC, 3, { Rb, IMM5 } }, /* Rb,imm5 (moddec) */ + { SHORT_MODINC, 1, { Rb2, IMM5 } }, /* Rb2,imm5 (modinc) */ + { SHORT_MODDEC, 3, { Rb2, IMM5 } }, /* Rb2,imm5 (moddec) */ { SHORT_C1, 0, { Ra, Cb, Fake } }, /* Ra,Cb (mvfsys) */ { SHORT_C2, 0, { Ca, Rb, Fake } }, /* Ca,Rb (mvtsys) */ { SHORT_UF, 0, { Fa, Fb } }, /* Fa,Fb (notfg) */ { SHORT_A2, 0, { Ra2, Rb, Rc } }, /* Ra2,Rb,Rc */ { SHORT_A2, 2, { Ra2, Rb, IMM6 } }, /* Ra2,Rb,imm6 */ { SHORT_NONE, 0, { 0 } }, /* no operands (nop, reit) */ + { SHORT_AR, 0, { Aa, Rb, Rc } }, /* Aa,Rb,Rc */ { LONG, 2, { Ra, Rb, IMM32 } }, /* Ra,Rb,imm32 */ { LONG_U, 2, { IMM32 } }, /* imm32 */ { LONG_Ur, 2, { REL32 } }, /* rel32 */ @@ -481,7 +484,6 @@ const struct d30v_format d30v_format_table[] = { LONG_D, 2, { REL6S3, IMM32 } }, /* rel6s3,imm32 */ { LONG_Dr, 2, { REL6S3, REL32 } }, /* rel6s3,rel32 */ { LONG_Dbr, 2, { IMM6U, REL32 } }, /* imm6,rel32 */ - { SHORT_AR, 0, { Aa, Rb, Rc } }, /* Aa,Rb,Rc */ { 0, 0, { 0 } }, };