diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2013-03-05 22:20:28 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2013-03-05 22:20:28 +0000 |
commit | cb2eafdfa358ae8a1e1f9ae39d8c72cd4d446da1 (patch) | |
tree | 1321d0ed2bd68a0db305ca6f6f02eb6d48c15c87 /test/CodeGen/Mips | |
parent | 5fdee6d2b5a72a826bf6db47c319ddac08cd9f57 (diff) | |
download | external_llvm-cb2eafdfa358ae8a1e1f9ae39d8c72cd4d446da1.zip external_llvm-cb2eafdfa358ae8a1e1f9ae39d8c72cd4d446da1.tar.gz external_llvm-cb2eafdfa358ae8a1e1f9ae39d8c72cd4d446da1.tar.bz2 |
[mips] Fix MipsTargetLowering::LowerCall to pass fp128 arguments in floating
point registers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176521 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Mips')
-rw-r--r-- | test/CodeGen/Mips/mips64-call.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/Mips/mips64-call.ll b/test/CodeGen/Mips/mips64-call.ll index 7808ac3..ea64ec2 100644 --- a/test/CodeGen/Mips/mips64-call.ll +++ b/test/CodeGen/Mips/mips64-call.ll @@ -11,3 +11,16 @@ entry: store fp128 %a0, fp128* @gld0, align 16 ret void } + +; CHECK: foo1 +; CHECK: ldc1 $f13, 8(${{[0-9]+}}) +; CHECK: ldc1 $f12, 0(${{[0-9]+}}) + +define void @foo1() { +entry: + %0 = load fp128* @gld0, align 16 + tail call void @foo2(fp128 %0) + ret void +} + +declare void @foo2(fp128) |