Skip to content
Snippets Groups Projects
Commit e277c00b authored by Alan Modra's avatar Alan Modra
Browse files

* m32r.opc (parse_hi16): Do not assume a 32-bit host word size.

parent d53e85d8
No related merge requests found
2005-10-26 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
* m32r.opc (parse_hi16): Do not assume a 32-bit host word size.
2005-10-25 DJ Delorie <dj@redhat.com>
* m32c.cpu (add16-bQ-sp,add16-wQ-sp): Fix to allow either width by
......
......@@ -127,7 +127,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;
}
......@@ -142,8 +145,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;
......
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.
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment