[XCore] Fix call of absolute address.
authorRichard Osborne <richard@xmos.com>
Tue, 4 Mar 2014 16:50:30 +0000 (16:50 +0000)
committerRichard Osborne <richard@xmos.com>
Tue, 4 Mar 2014 16:50:30 +0000 (16:50 +0000)
commitf41c05c7ca1245caecf6bb4f8ecacd62c59f3995
tree4eba59b1d95085ca44671f589d3bd3c09eaf2a61
parentba920ab35473a8a583608893ee0759907e4ab985
[XCore] Fix call of absolute address.

Previously for:

tail call void inttoptr (i64 65536 to void ()*)() nounwind

We would emit:

bl 65536

The immediate operand of the bl instruction is a relative offset so it is
wrong to use the absolute address here.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202860 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/XCore/XCoreInstrInfo.td
test/CodeGen/XCore/call.ll [new file with mode: 0644]