When checking for sret-demotion, it needs to use legal types. When using the return...
[oota-llvm.git] / test / CodeGen / X86 / bigstructret2.ll
1 ; RUN: llc < %s -march=x86 -o %t
2
3 %0 = type { i64, i64 }
4
5 declare fastcc %0 @ReturnBigStruct() nounwind readnone
6
7 define void @test(%0* %p) {
8   %1 = call fastcc %0 @ReturnBigStruct()
9   store %0 %1, %0* %p
10   ret void
11 }
12