1 ; RUN: llvm-as < %s | llc -march=x86-64 | grep rep.movsq | count 2
2 ; RUN: llvm-as < %s | llc -march=x86 | grep rep.movsl | count 2
4 %struct.s = type { i16, i16, i16, i16, i16, i16, i16, i16,
5 i16, i16, i16, i16, i16, i16, i16, i16,
6 i16, i16, i16, i16, i16, i16, i16, i16,
7 i16, i16, i16, i16, i16, i16, i16, i16,
8 i16, i16, i16, i16, i16, i16, i16, i16,
9 i16, i16, i16, i16, i16, i16, i16, i16,
10 i16, i16, i16, i16, i16, i16, i16, i16,
11 i16, i16, i16, i16, i16, i16, i16, i16,
15 define void @g(i16 signext %a1, i16 signext %a2, i16 signext %a3,
16 i16 signext %a4, i16 signext %a5, i16 signext %a6) nounwind {
18 %a = alloca %struct.s, align 16
19 %tmp = getelementptr %struct.s* %a, i32 0, i32 0
20 store i16 %a1, i16* %tmp, align 16
21 %tmp2 = getelementptr %struct.s* %a, i32 0, i32 1
22 store i16 %a2, i16* %tmp2, align 16
23 %tmp4 = getelementptr %struct.s* %a, i32 0, i32 2
24 store i16 %a3, i16* %tmp4, align 16
25 %tmp6 = getelementptr %struct.s* %a, i32 0, i32 3
26 store i16 %a4, i16* %tmp6, align 16
27 %tmp8 = getelementptr %struct.s* %a, i32 0, i32 4
28 store i16 %a5, i16* %tmp8, align 16
29 %tmp10 = getelementptr %struct.s* %a, i32 0, i32 5
30 store i16 %a6, i16* %tmp10, align 16
31 call void @f( %struct.s* %a byval )
32 call void @f( %struct.s* %a byval )
36 declare void @f(%struct.s* byval)