From ab7c9a26e5eeedc00030c37b450457f6828bf661 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 14 Oct 2005 08:33:27 +0000 Subject: m32r.opc (parse_slo16): Do not assume a 32-bit host word size. --- cpu/ChangeLog | 5 +++++ cpu/m32r.opc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'cpu') diff --git a/cpu/ChangeLog b/cpu/ChangeLog index 6c9a90d..ecc06b4 100644 --- a/cpu/ChangeLog +++ b/cpu/ChangeLog @@ -1,3 +1,8 @@ +2005-10-14 Kazuhiro Inaoka + + * cpu/m32r.opc (parse_slo16): Do not assume a 32-bit host word + size. + 2005-07-25 DJ Delorie * m32c.opc (parse_unsigned8): Add %dsp8(). diff --git a/cpu/m32r.opc b/cpu/m32r.opc index 63f41a5..afe12eb 100644 --- a/cpu/m32r.opc +++ b/cpu/m32r.opc @@ -182,7 +182,7 @@ parse_slo16 (CGEN_CPU_DESC cd, { value &= 0xffff; if (value & 0x8000) - value |= 0xffff0000; + value |= ~0xffff; } *valuep = value; return errmsg; -- cgit v1.1