diff options
author | Nick Clifton <nickc@redhat.com> | 2006-02-10 12:05:12 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2006-02-10 12:05:12 +0000 |
commit | a79387507bb0de3869250a259be1b9c2194dbe01 (patch) | |
tree | 15a68c19a5188b445a4c292aa9b2fdd2950e43f7 /opcodes/iq2000-asm.c | |
parent | dd1b78dfc867d52f4c8a123f05a61b6b91ad393a (diff) | |
download | binutils-redhat-a79387507bb0de3869250a259be1b9c2194dbe01.tar.gz |
Fix %hi() operator for 64-bit hosts.
Diffstat (limited to 'opcodes/iq2000-asm.c')
-rw-r--r-- | opcodes/iq2000-asm.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |