diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2011-12-09 01:45:12 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2011-12-09 01:45:12 +0000 |
commit | 0dca9456c55787cd5a5f11b388aa76586b4fcdf6 (patch) | |
tree | 5d8aaa9c965f72a139c5c5531e97379b42ef33c9 /test | |
parent | f5b9a74f0a13afe3b7a8388be81e4062b63e4c30 (diff) | |
download | llvm-0dca9456c55787cd5a5f11b388aa76586b4fcdf6.tar.gz llvm-0dca9456c55787cd5a5f11b388aa76586b4fcdf6.tar.bz2 llvm-0dca9456c55787cd5a5f11b388aa76586b4fcdf6.tar.xz |
jalr should use t9 ($25) for indirect calls regardless of the relocation model
specified.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146229 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/Mips/indirectcall.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/Mips/indirectcall.ll b/test/CodeGen/Mips/indirectcall.ll new file mode 100644 index 0000000000..ac565d6466 --- /dev/null +++ b/test/CodeGen/Mips/indirectcall.ll @@ -0,0 +1,8 @@ +; RUN: llc < %s -march=mipsel -relocation-model=static | FileCheck %s + +define void @foo0(void (i32)* nocapture %f1) nounwind { +entry: +; CHECK: jalr $25 + tail call void %f1(i32 13) nounwind + ret void +} |