[mips] Never select JAL for calls to an absolute immediate address.
authorDaniel Sanders <daniel.sanders@imgtec.com>
Mon, 11 Jan 2016 15:57:46 +0000 (15:57 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Mon, 11 Jan 2016 15:57:46 +0000 (15:57 +0000)
commit58a84d9b9c6b0e08c4b2d259fdd1877e3deec532
tree7255fa71ce9e6e7b911b54c38ee30bd3b4d544c8
parent274cad526032f03690d2829b5921d901cc5a6eb3
[mips] Never select JAL for calls to an absolute immediate address.

Summary:
It actually takes an offset into the current PC-region.

This fixes the 'expr' command in lldb.

Reviewers: vkalintiris, jaydeep, bhushan

Subscribers: dsanders, llvm-commits

Differential Revision: http://reviews.llvm.org/D16054

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257339 91177308-0d34-0410-b5e6-96231b3b80d8
20 files changed:
lib/Target/Mips/MipsInstrInfo.td
test/CodeGen/Mips/llvm-ir/call.ll
test/MC/Disassembler/Mips/mips2/valid-mips2.txt
test/MC/Disassembler/Mips/mips3/valid-mips3.txt
test/MC/Disassembler/Mips/mips4/valid-mips4.txt
test/MC/Mips/mips1/valid.s
test/MC/Mips/mips2/valid.s
test/MC/Mips/mips3/valid.s
test/MC/Mips/mips32/valid.s
test/MC/Mips/mips32r2/valid.s
test/MC/Mips/mips32r3/valid.s
test/MC/Mips/mips32r5/valid.s
test/MC/Mips/mips32r6/valid.s
test/MC/Mips/mips4/valid.s
test/MC/Mips/mips5/valid.s
test/MC/Mips/mips64/valid.s
test/MC/Mips/mips64r2/valid.s
test/MC/Mips/mips64r3/valid.s
test/MC/Mips/mips64r5/valid.s
test/MC/Mips/mips64r6/valid.s