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 | 8536c657ffc11014c02aa7811eda04ce8b05dd6b (patch) | |
tree | 21d618cc9a7e647de96477fe33ab350599d5e220 /cpu/iq2000.opc | |
parent | b6637a13d5e6b6587d20431819800bd030c77c47 (diff) | |
download | gdb-8536c657ffc11014c02aa7811eda04ce8b05dd6b.zip gdb-8536c657ffc11014c02aa7811eda04ce8b05dd6b.tar.gz gdb-8536c657ffc11014c02aa7811eda04ce8b05dd6b.tar.bz2 |
Fix %hi() operator for 64-bit hosts.
Diffstat (limited to 'cpu/iq2000.opc')
-rw-r--r-- | cpu/iq2000.opc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cpu/iq2000.opc b/cpu/iq2000.opc index 63ef076..5287506 100644 --- a/cpu/iq2000.opc +++ b/cpu/iq2000.opc @@ -218,6 +218,7 @@ parse_hi16 (CGEN_CPU_DESC cd, if (value & 0x8000) value += 0x10000; value >>= 16; + value &= 0xffff; } *valuep = value; @@ -243,6 +244,7 @@ parse_hi16 (CGEN_CPU_DESC cd, && result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER) value >>= 16; + value &= 0xffff; *valuep = value; return errmsg; |