aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-10-26 07:49:05 +0000
committerAlan Modra <amodra@gmail.com>2005-10-26 07:49:05 +0000
commite277c00b2d473ff29a3f88204e80839d5b08c5df (patch)
treeabd5e0c880bc06479e029d474ac4368255443cd4 /opcodes
parentd53e85d8ff6a5f6c1fd0be97b561ef5ac8efa309 (diff)
downloadgdb-e277c00b2d473ff29a3f88204e80839d5b08c5df.zip
gdb-e277c00b2d473ff29a3f88204e80839d5b08c5df.tar.gz
gdb-e277c00b2d473ff29a3f88204e80839d5b08c5df.tar.bz2
* m32r.opc (parse_hi16): Do not assume a 32-bit host word size.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/ChangeLog4
-rw-r--r--opcodes/m32r-asm.c8
2 files changed, 10 insertions, 2 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 89ca63d..42c6fe9 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,7 @@
+2005-10-26 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
+
+ * m32r-asm.c: Regenerate.
+
2005-10-25 DJ Delorie <dj@redhat.com>
* m32c-asm.c: Regenerate.
diff --git a/opcodes/m32r-asm.c b/opcodes/m32r-asm.c
index 50f1363..a5bd363 100644
--- a/opcodes/m32r-asm.c
+++ b/opcodes/m32r-asm.c
@@ -89,7 +89,10 @@ parse_hi16 (CGEN_CPU_DESC cd,
++*strp;
if (errmsg == NULL
&& result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER)
- value >>= 16;
+ {
+ value >>= 16;
+ value &= 0xffff;
+ }
*valuep = value;
return errmsg;
}
@@ -104,8 +107,9 @@ parse_hi16 (CGEN_CPU_DESC cd,
if (errmsg == NULL
&& result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER)
{
- value = value + (value & 0x8000 ? 0x10000 : 0);
+ value += 0x8000;
value >>= 16;
+ value &= 0xffff;
}
*valuep = value;
return errmsg;