summaryrefslogtreecommitdiff
path: root/lib/Bitcode/Reader/BitstreamReader.cpp
diff options
context:
space:
mode:
authorSasa Stankovic <Sasa.Stankovic@imgtec.com>2014-04-30 15:06:25 +0000
committerSasa Stankovic <Sasa.Stankovic@imgtec.com>2014-04-30 15:06:25 +0000
commitfbe7448e5dabca17ee5407cba925cec465f5c04d (patch)
tree1cda57d328283061b07ca18e3b509af98e0ac073 /lib/Bitcode/Reader/BitstreamReader.cpp
parent99b44bacab50333bca5ae0df1142af38585c304b (diff)
downloadllvm-fbe7448e5dabca17ee5407cba925cec465f5c04d.tar.gz
llvm-fbe7448e5dabca17ee5407cba925cec465f5c04d.tar.bz2
llvm-fbe7448e5dabca17ee5407cba925cec465f5c04d.tar.xz
[mips] Fix MipsLongBranch pass to work when the offset from the branch to the
target cannot be determined accurately. This is the case for NaCl where the sandboxing instructions are added in MC layer, after the MipsLongBranch pass. It is also the case when the code has inline assembly. Instead of calculating offset in the MipsLongBranch pass, use %hi(sym1 - sym2) and %lo(sym1 - sym2) expressions that are resolved during the fixup. This patch also deletes microMIPS test file test/CodeGen/Mips/micromips-long-branch.ll and implements microMIPS CHECKs in a much simpler way in a file test/CodeGen/Mips/longbranch.ll, together with MIPS32 and MIPS64. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207656 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Reader/BitstreamReader.cpp')
0 files changed, 0 insertions, 0 deletions