1 ; RUN: llc < %s -mtriple=i686-pc-win32 | FileCheck %s
3 %Foo = type { i32, i32 }
5 declare x86_stdcallcc void @foo_byref_stdcall_p(ptr byref(%Foo))
6 declare x86_stdcallcc void @i(i32)
8 ; byref does not imply a stack copy, so this should append 4 bytes,
10 define void @stdcall(ptr %value) {
11 ; CHECK-LABEL: _stdcall:
12 ; CHECK: pushl 4(%esp)
13 ; CHECK: calll _foo_byref_stdcall_p@4
14 call x86_stdcallcc void @foo_byref_stdcall_p(ptr byref(%Foo) %value)
18 call x86_stdcallcc void @i(i32 0)