aboutsummaryrefslogtreecommitdiff
path: root/opcodes/ia64-dis.c
diff options
context:
space:
mode:
Diffstat (limited to 'opcodes/ia64-dis.c')
-rw-r--r--opcodes/ia64-dis.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/opcodes/ia64-dis.c b/opcodes/ia64-dis.c
index f9add91..4c63815 100644
--- a/opcodes/ia64-dis.c
+++ b/opcodes/ia64-dis.c
@@ -167,10 +167,10 @@ print_insn_ia64 (bfd_vma memaddr, struct disassemble_info *info)
}
else if (odesc - elf64_ia64_operands == IA64_OPND_TGT64)
{
- /* 60-bit immedate for long branches. */
+ /* 60-bit immediate for long branches. */
value = (((insn >> 13) & 0xfffff)
| (((insn >> 36) & 1) << 59)
- | (slot[1] << 20)) << 4;
+ | (((slot[1] >> 2) & 0x7fffffffffLL) << 20)) << 4;
}
else
{