1 ; RUN: llc < %s -mtriple=x86_64-linux-gnux32 | FileCheck %s
3 declare void @bar(ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32)
5 ; Function Attrs: nounwind uwtable
8 %i1 = alloca i32, align 4
9 %i2 = alloca i32, align 4
10 %i3 = alloca i32, align 4
11 %i4 = alloca i32, align 4
12 %i5 = alloca i32, align 4
13 %i6 = alloca i64, align 8
14 store i32 1, ptr %i1, align 4
15 ; CHECK: movl $1, 28(%esp)
16 store i32 2, ptr %i2, align 4
17 ; CHECK-NEXT: movl $2, 24(%esp)
18 store i32 3, ptr %i3, align 4
19 ; CHECK-NEXT: movl $3, 20(%esp)
20 store i32 4, ptr %i4, align 4
21 ; CHECK-NEXT: movl $4, 16(%esp)
22 store i32 5, ptr %i5, align 4
23 ; CHECK-NEXT: movl $5, 12(%esp)
24 store i64 6, ptr %i6, align 8
25 ; CHECK-NEXT: movq $6, 32(%esp)
26 ; CHECK-NEXT: subl $8, %esp
27 ; CHECK: leal 36(%rsp), %edi
28 ; CHECK-NEXT: leal 32(%rsp), %esi
29 ; CHECK-NEXT: leal 28(%rsp), %edx
30 ; CHECK-NEXT: leal 24(%rsp), %ecx
31 ; CHECK-NEXT: leal 20(%rsp), %r8d
32 ; CHECK-NEXT: leal 40(%rsp), %r9d
36 call void @bar(ptr nonnull %i1, ptr nonnull %i2, ptr nonnull %i3, ptr nonnull %i4, ptr nonnull %i5, ptr nonnull %i6, i32 0, i32 0, i32 0)