diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-04-27 23:58:52 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-04-27 23:58:52 +0000 |
commit | 8bd572fc58d3e7916bcdc2407c8e6f66cca07e8e (patch) | |
tree | 137c8bbfaa6bc8b39e405ce03fd2a6eacccc1f2e /llvm/test/CodeGen/X86/fast-isel-x86-64.ll | |
parent | 04f93b9cf178a1e5b7ae233825fdcbe0339c9f4d (diff) | |
download | bcm5719-llvm-8bd572fc58d3e7916bcdc2407c8e6f66cca07e8e.tar.gz bcm5719-llvm-8bd572fc58d3e7916bcdc2407c8e6f66cca07e8e.zip |
fast-isel sret. We actually don't need to do anything special on x86. :) rdar://problem/9303592 .
llvm-svn: 130348
Diffstat (limited to 'llvm/test/CodeGen/X86/fast-isel-x86-64.ll')
-rw-r--r-- | llvm/test/CodeGen/X86/fast-isel-x86-64.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/fast-isel-x86-64.ll b/llvm/test/CodeGen/X86/fast-isel-x86-64.ll index e5f1a7c1660..40f90cf4023 100644 --- a/llvm/test/CodeGen/X86/fast-isel-x86-64.ll +++ b/llvm/test/CodeGen/X86/fast-isel-x86-64.ll @@ -238,3 +238,16 @@ define void @test19(double* %p1) { ; CHECK: test19: ; CHECK: pxor } + +; Check that we fast-isel sret +%struct.a = type { i64, i64, i64 } +define void @test20() nounwind ssp { +entry: + %tmp = alloca %struct.a, align 8 + call void @test20sret(%struct.a* sret %tmp) + ret void +; CHECK: test20: +; CHECK: leaq (%rsp), %rdi +; CHECK: callq _test20sret +} +declare void @test20sret(%struct.a* sret) |