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 | 8211a6a61d82da340c20fde078148bde63e2d83e (patch) | |
tree | b12e3b87cf051bf56831b9845459c52b85c5803f /test/CodeGen/X86/fast-isel-x86-64.ll | |
parent | 5a2336e79439281a055b247f54c9d425ea0cd083 (diff) | |
download | llvm-8211a6a61d82da340c20fde078148bde63e2d83e.tar.gz llvm-8211a6a61d82da340c20fde078148bde63e2d83e.tar.bz2 llvm-8211a6a61d82da340c20fde078148bde63e2d83e.tar.xz |
fast-isel sret. We actually don't need to do anything special on x86. :) rdar://problem/9303592 .
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130348 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/fast-isel-x86-64.ll')
-rw-r--r-- | test/CodeGen/X86/fast-isel-x86-64.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/X86/fast-isel-x86-64.ll b/test/CodeGen/X86/fast-isel-x86-64.ll index e5f1a7c166..40f90cf402 100644 --- a/test/CodeGen/X86/fast-isel-x86-64.ll +++ b/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) |