[mips] Fix off by one issue when applying a fixup.
authorMatheus Almeida <matheus.almeida@imgtec.com>
Tue, 17 Dec 2013 17:10:00 +0000 (17:10 +0000)
committerMatheus Almeida <matheus.almeida@imgtec.com>
Tue, 17 Dec 2013 17:10:00 +0000 (17:10 +0000)
commit24c63679d7e82da13157d538cee27fbca66d645e
tree5263119777fe29b112eec17fc88c8f601bc85606
parent7c29644cced4666e12d6fb333e4eabd82ce85bd8
[mips] Fix off by one issue when applying a fixup.

The branch offset for a R_MIPS_PC16 relocation is indeed a 16-bit signed
immediate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197506 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp
test/MC/Mips/micromips-pc16-fixup.s [new file with mode: 0644]
test/MC/Mips/mips-pc16-fixup.s [new file with mode: 0644]