summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc/SparcISelLowering.h
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
commit7b061a42b125737137feae387bba372bc43f8c09 (patch)
treee4d1a3fdcf5797fd50867c88d2a7519eb34e2a9e /llvm/lib/Target/Sparc/SparcISelLowering.h
parentbbd5e85e21178d704ab7a403a2433691d9b35cae (diff)
downloadbcm5719-llvm-7b061a42b125737137feae387bba372bc43f8c09.tar.gz
bcm5719-llvm-7b061a42b125737137feae387bba372bc43f8c09.zip
[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. llvm-svn: 207656
Diffstat (limited to 'llvm/lib/Target/Sparc/SparcISelLowering.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud