blob: 89810339a6c03a76c8692988822f13a957010bb3 [file] [log] [blame]
Rafael Espindolacde227b2012-07-24 21:40:17 +00001; RUN: llc < %s -march=x86 | FileCheck %s
2
3%struct.s = type { double, float }
4
5define void @g() nounwind {
6entry:
7 %tmp = alloca %struct.s, align 4
8 call void @f(%struct.s* inreg sret %tmp, i32 inreg 41, i32 inreg 42, i32 43)
9 ret void
10 ; CHECK: g:
11 ; CHECK: subl {{.*}}, %esp
12 ; CHECK-NEXT: $43, (%esp)
13 ; CHECK-NEXT: leal 16(%esp), %eax
14 ; CHECK-NEXT: movl $41, %edx
15 ; CHECK-NEXT: movl $42, %ecx
16 ; CHECK-NEXT: calll f
17}
18
19declare void @f(%struct.s* inreg sret, i32 inreg, i32 inreg, i32)