1 ; RUN: llvm-as < %s | llc -march=x86-64 | grep rep.movsl | count 2
2 ; RUN: llvm-as < %s | llc -march=x86 | grep rep.movsl | count 2
4 %struct.s = type { i32, i32, i32, i32, i32, i32 }
6 define void @g(i32 %a1, i32 %a2, i32 %a3, i32 %a4, i32 %a5, i32 %a6) {
8 %d = alloca %struct.s, align 16
9 %tmp = getelementptr %struct.s* %d, i32 0, i32 0
10 store i32 %a1, i32* %tmp, align 16
11 %tmp2 = getelementptr %struct.s* %d, i32 0, i32 1
12 store i32 %a2, i32* %tmp2, align 16
13 %tmp4 = getelementptr %struct.s* %d, i32 0, i32 2
14 store i32 %a3, i32* %tmp4, align 16
15 %tmp6 = getelementptr %struct.s* %d, i32 0, i32 3
16 store i32 %a4, i32* %tmp6, align 16
17 %tmp8 = getelementptr %struct.s* %d, i32 0, i32 4
18 store i32 %a5, i32* %tmp8, align 16
19 %tmp10 = getelementptr %struct.s* %d, i32 0, i32 5
20 store i32 %a6, i32* %tmp10, align 16
21 call void @f( %struct.s* %d byval)
22 call void @f( %struct.s* %d byval)
26 declare void @f(%struct.s* byval)