* v850-opc.c (v850_operands): Define SR2 operand.

(v850_opcodes): "ldsr" uses R1,SR2.
ldsr is kinda weird.
This commit is contained in:
Jeff Law 1996-08-30 19:44:42 +00:00
parent ba853302f2
commit e9ebb36451
2 changed files with 9 additions and 1 deletions

View file

@ -1,6 +1,9 @@
start-sanitize-v850
Thu Aug 29 11:10:46 1996 Jeffrey A Law (law@cygnus.com)
* v850-opc.c (v850_operands): Define SR2 operand.
(v850_opcodes): "ldsr" uses R1,SR2.
* v850-opc.c (v850_opcodes): Fix opcode specs for
sld.w, sst.b, sst.h, sst.w, and nop.

View file

@ -83,6 +83,11 @@ const struct v850_operand v850_operands[] = {
/* The IMM16 field (unsigned0 in a format 6 insn. */
#define I16U (EP+1)
{ 16, 16, 0, 0, 0},
/* The R2 field as a system register. */
#define SR2 (I16U+1)
{ 5, 11, 0, 0, V850_OPERAND_SRG },
} ;
@ -234,7 +239,7 @@ const struct v850_opcode v850_opcodes[] = {
{ "halt", two(0x07e0,0x0120), two(0xffff,0xffff), {0}, 4 },
{ "reti", two(0x07e0,0x0140), two(0xffff,0xffff), {0}, 4 },
{ "trap", two(0x07e0,0x0100), two(0xffe0,0xffff), {I5U}, 4 },
{ "ldsr", two(0x07e0,0x0020), two(0x07e0,0xffff), {R2,SR1}, 4 },
{ "ldsr", two(0x07e0,0x0020), two(0x07e0,0xffff), {R1,SR2}, 4 },
{ "stsr", two(0x07e0,0x0040), two(0x07e0,0xffff), {SR1,R2}, 4 },
{ "nop", one(0x00), one(0xffff), {0}, 2 },
{ 0, 0, 0, {0}, 0 },