1 ; RUN: llc < %s -mtriple=i686-pc-win32 | FileCheck %s
3 %Foo = type { i32, i32 }
5 %frame = type { %Foo, i32, %Foo }
7 declare void @f(%frame* inalloca %a)
9 declare void @Foo_ctor(%Foo* %this)
13 %args = alloca inalloca %frame
14 %c = getelementptr %frame, %frame* %args, i32 0, i32 2
16 ; CHECK: subl $16, %esp
18 call void @Foo_ctor(%Foo* %c)
19 ; CHECK: leal 12(%{{.*}}),
21 ; CHECK-NEXT: calll _Foo_ctor
22 ; CHECK: addl $4, %esp
23 %b = getelementptr %frame, %frame* %args, i32 0, i32 1
26 %a = getelementptr %frame, %frame* %args, i32 0, i32 0
27 call void @Foo_ctor(%Foo* %a)
29 ; CHECK-NEXT: calll _Foo_ctor
30 ; CHECK: addl $4, %esp
31 call void @f(%frame* inalloca %args)