From fb6da8680e8d15b3132e19e5b55f8cebbaa3b726 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Fri, 23 Aug 1996 19:32:41 +0000 Subject: [PATCH] * v850-opc.c (v850_opcodes): Get ld.[bhw] and st.[bhw] correct. Get sld.[bhw] and sst.[bhw] closer. --- opcodes/ChangeLog | 3 +++ opcodes/v850-opc.c | 18 +++++++++--------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 4ddc4025cd3..825f8f30aa4 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,6 +1,9 @@ start-sanitize-v850 Fri Aug 23 00:27:01 1996 Jeffrey A Law (law@cygnus.com) + * v850-opc.c (v850_opcodes): Get ld.[bhw] and st.[bhw] + correct. Get sld.[bhw] and sst.[bhw] closer. + * v850-opc.c (v850_operands): "not" is a two byte insn * v850-opc.c (v850_opcodes): Correct bit pattern for setf. diff --git a/opcodes/v850-opc.c b/opcodes/v850-opc.c index 2bb8c07d0a3..902b33c106b 100644 --- a/opcodes/v850-opc.c +++ b/opcodes/v850-opc.c @@ -129,19 +129,19 @@ const struct v850_operand v850_operands[] = { const struct v850_opcode v850_opcodes[] = { /* load/store instructions */ -{ "sld.b", OP(0x00), OP_MASK, IF4A, 2 }, -{ "sld.h", OP(0x00), OP_MASK, IF4C, 2 }, -{ "sld.w", OP(0x00), OP_MASK, IF4C, 2 }, +{ "sld.b", one(0x0300), one(0x0780), IF4A, 2 }, +{ "sld.h", one(0x0400), one(0x0780), IF4A, 2 }, +{ "sld.w", one(0x0500), one(0x0780), IF4A, 2 }, { "sst.b", OP(0x00), OP_MASK, IF4B, 2 }, { "sst.h", OP(0x00), OP_MASK, IF4D, 2 }, { "sst.w", OP(0x00), OP_MASK, IF4D, 2 }, -{ "ld.b", OP(0x00), OP_MASK, IF7A, 4 }, -{ "ld.h", OP(0x00), OP_MASK, IF7A, 4 }, -{ "ld.w", OP(0x00), OP_MASK, IF7A, 4 }, -{ "st.b", OP(0x00), OP_MASK, IF7B, 4 }, -{ "st.h", OP(0x00), OP_MASK, IF7B, 4 }, -{ "st.w", OP(0x00), OP_MASK, IF7B, 4 }, +{ "ld.b", two(0x0700,0x0000), two (0x07e0,0x0000), IF7A, 4 }, +{ "ld.h", two(0x0720,0x0000), two (0x07e0,0x0001), IF7A, 4 }, +{ "ld.w", two(0x0720,0x0001), two (0x07e0,0x0001), IF7A, 4 }, +{ "st.b", two(0x0740,0x0000), two (0x07e0,0x0000), IF7B, 4 }, +{ "st.h", two(0x0760,0x0000), two (0x07e0,0x0001), IF7B, 4 }, +{ "st.w", two(0x0760,0x0001), two (0x07e0,0x0001), IF7B, 4 }, /* arithmetic operation instructions */ { "mov", OP(0x00), OP_MASK, IF1, 2 }, -- 2.30.2