diff options
author | Kenneth Uildriks <kennethuil@gmail.com> | 2010-01-16 23:37:33 +0000 |
---|---|---|
committer | Kenneth Uildriks <kennethuil@gmail.com> | 2010-01-16 23:37:33 +0000 |
commit | 93ae407ec3d300805d42a6e2f81ab8c4538eb494 (patch) | |
tree | 8633dc840aa7b8f85c8a39c012fb901231f59c78 /test/CodeGen/X86/bigstructret2.ll | |
parent | dbc130f5927d6055211eb30defb25a6db609454e (diff) | |
download | llvm-93ae407ec3d300805d42a6e2f81ab8c4538eb494.tar.gz llvm-93ae407ec3d300805d42a6e2f81ab8c4538eb494.tar.bz2 llvm-93ae407ec3d300805d42a6e2f81ab8c4538eb494.tar.xz |
When checking for sret-demotion, it needs to use legal types. When using the return value of an sret-demoted call, it needs to use possibly illegal types that match the declared Type of the callee.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93667 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/bigstructret2.ll')
-rw-r--r-- | test/CodeGen/X86/bigstructret2.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/X86/bigstructret2.ll b/test/CodeGen/X86/bigstructret2.ll new file mode 100644 index 0000000000..46e0fd2176 --- /dev/null +++ b/test/CodeGen/X86/bigstructret2.ll @@ -0,0 +1,12 @@ +; RUN: llc < %s -march=x86 -o %t + +%0 = type { i64, i64 } + +declare fastcc %0 @ReturnBigStruct() nounwind readnone + +define void @test(%0* %p) { + %1 = call fastcc %0 @ReturnBigStruct() + store %0 %1, %0* %p + ret void +} + |