From bf790ced599e657eecbe239fd2d971d91e9b195d Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 10 Feb 2006 12:05:12 +0000 Subject: [PATCH] Fix %hi() operator for 64-bit hosts. --- opcodes/ChangeLog | 4 ++++ opcodes/iq2000-asm.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 51bbb1c816..9de01b6c02 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,7 @@ +2006-02-10 Nick Clifton + + * iq2000-asm.c: Regenerate. + 2006-02-07 Nathan Sidwell * m68k-dis.c (print_insn_m68k): Use bfd_m68k_mach_to_features. diff --git a/opcodes/iq2000-asm.c b/opcodes/iq2000-asm.c index caab54f500..0ec59ce324 100644 --- a/opcodes/iq2000-asm.c +++ b/opcodes/iq2000-asm.c @@ -213,6 +213,7 @@ parse_hi16 (CGEN_CPU_DESC cd, 1 to the resultant %hi value. */ if (value & 0x8000) value += 0x10000; + value &= 0xffff; value >>= 16; } *valuep = value; @@ -239,6 +240,7 @@ parse_hi16 (CGEN_CPU_DESC cd, && result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER) value >>= 16; + value &= 0xffff; *valuep = value; return errmsg; -- 2.11.0