From d227eedf8270f816270259742c17685f59044a22 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Thu, 28 Apr 2011 20:19:12 +0000 Subject: fast-isel sret calls, try 2. We actually do need to do something on x86-32. rdar://problem/9303592 . git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130429 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/X86/fast-isel-x86-64.ll | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test/CodeGen/X86/fast-isel-x86-64.ll') diff --git a/test/CodeGen/X86/fast-isel-x86-64.ll b/test/CodeGen/X86/fast-isel-x86-64.ll index a810af5c78..c4afc10ffa 100644 --- a/test/CodeGen/X86/fast-isel-x86-64.ll +++ b/test/CodeGen/X86/fast-isel-x86-64.ll @@ -239,6 +239,19 @@ define void @test19(double* %p1) { ; 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) + ; Check that -0.0 is not materialized using pxor define void @test21(double* %p1) { store double -0.0, double* %p1 -- cgit v1.2.3