aboutsummaryrefslogtreecommitdiff
path: root/opcodes/m32r-asm.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2005-10-19 14:44:17 +0000
committerNick Clifton <nickc@redhat.com>2005-10-19 14:44:17 +0000
commite74eb924c2eef2818417ec09b51d4beb6e688977 (patch)
tree87a1104c5e22c63ab3e786c41c655cf690572825 /opcodes/m32r-asm.c
parent3242b11e04acbbdd5a88276cc96c8e1ade35f24f (diff)
downloadgdb-e74eb924c2eef2818417ec09b51d4beb6e688977.zip
gdb-e74eb924c2eef2818417ec09b51d4beb6e688977.tar.gz
gdb-e74eb924c2eef2818417ec09b51d4beb6e688977.tar.bz2
* m32r.opc (parse_slo16): Fix bad application of previous patch.
Diffstat (limited to 'opcodes/m32r-asm.c')
-rw-r--r--opcodes/m32r-asm.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/opcodes/m32r-asm.c b/opcodes/m32r-asm.c
index 3954608..50f1363 100644
--- a/opcodes/m32r-asm.c
+++ b/opcodes/m32r-asm.c
@@ -141,11 +141,7 @@ parse_slo16 (CGEN_CPU_DESC cd,
++*strp;
if (errmsg == NULL
&& result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER)
- {
- value &= 0xffff;
- if (value & 0x8000)
- value = ((value & 0xffff) ^ 0x8000) - 0x8000;
- }
+ value = ((value & 0xffff) ^ 0x8000) - 0x8000;
*valuep = value;
return errmsg;
}