* v850-opc.c (v850_operands): Define SR2 operand.
authorJeff Law <law@redhat.com>
Fri, 30 Aug 1996 19:44:42 +0000 (19:44 +0000)
committerJeff Law <law@redhat.com>
Fri, 30 Aug 1996 19:44:42 +0000 (19:44 +0000)
        (v850_opcodes): "ldsr" uses R1,SR2.
ldsr is kinda weird.

opcodes/ChangeLog
opcodes/v850-opc.c

index dd4af35e1623f65dda354147e29dd81d10b76f5c..c4ecb12dd123702435ef340a1b7429e199560bf7 100644 (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.
 
index c50023a27ffe08858dbb901b3d21f5475cfde07b..2bdbc830e007493038508dea2ae4fe1e022ad6da 100644 (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 },
+
 } ; 
 
 \f
@@ -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 },