aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-mips.c
diff options
context:
space:
mode:
Diffstat (limited to 'gas/config/tc-mips.c')
-rw-r--r--gas/config/tc-mips.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index f9b5811..d31b4c4 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -1899,7 +1899,7 @@ append_insn (place, ip, address_expr, reloc_type, unmatched_hi)
break;
case BFD_RELOC_16_PCREL:
- ip->insn_opcode |= (address_expr->X_add_number >> 2) & 0xffff;
+ ip->insn_opcode |= address_expr->X_add_number & 0xffff;
break;
case BFD_RELOC_16_PCREL_S2: