Fix mips' long branch pass.
authorAkira Hatanaka <ahatanaka@mips.com>
Tue, 28 Aug 2012 03:03:05 +0000 (03:03 +0000)
committerAkira Hatanaka <ahatanaka@mips.com>
Tue, 28 Aug 2012 03:03:05 +0000 (03:03 +0000)
commit273956d8c6eed86c8b4d616ecb86f7ff17e127d4
tree00bcde1b3f344dd8cf09ec2fa0e2044ec160118a
parent8dc440a46a5153a1640a3050480cceca9b8af05d
Fix mips' long branch pass.

Instructions emitted to compute branch offsets now use immediate operands
instead of symbolic labels. This change was needed because there were problems
when R_MIPS_HI16/LO16 relocations were used to make shared objects.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162731 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MipsLongBranch.cpp
test/CodeGen/Mips/longbranch.ll
test/MC/Mips/higher_highest.ll