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(ptr inalloca(%frame) %a)
9 declare void @Foo_ctor(ptr %this)
13 %args = alloca inalloca %frame
14 %c = getelementptr %frame, ptr %args, i32 0, i32 2
16 ; CHECK: subl $16, %esp
18 call void @Foo_ctor(ptr %c)
19 ; CHECK: leal 12(%{{.*}}),
21 ; CHECK-NEXT: calll _Foo_ctor
22 ; CHECK: addl $4, %esp
23 %b = getelementptr %frame, ptr %args, i32 0, i32 1
26 call void @Foo_ctor(ptr %args)
28 ; CHECK-NEXT: calll _Foo_ctor
29 ; CHECK: addl $4, %esp
30 call void @f(ptr inalloca(%frame) %args)