1 ; RUN: llvm-as < %s | llc -march=x86-64 | grep rep.movsw | 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 }
7 define void @g(i16 signext %a1, i16 signext %a2, i16 signext %a3,
8 i16 signext %a4, i16 signext %a5, i16 signext %a6) {
10 %a = alloca %struct.s, align 16
11 %tmp = getelementptr %struct.s* %a, i32 0, i32 0
12 store i16 %a1, i16* %tmp, align 16
13 %tmp2 = getelementptr %struct.s* %a, i32 0, i32 1
14 store i16 %a2, i16* %tmp2, align 16
15 %tmp4 = getelementptr %struct.s* %a, i32 0, i32 2
16 store i16 %a3, i16* %tmp4, align 16
17 %tmp6 = getelementptr %struct.s* %a, i32 0, i32 3
18 store i16 %a4, i16* %tmp6, align 16
19 %tmp8 = getelementptr %struct.s* %a, i32 0, i32 4
20 store i16 %a5, i16* %tmp8, align 16
21 %tmp10 = getelementptr %struct.s* %a, i32 0, i32 5
22 store i16 %a6, i16* %tmp10, align 16
23 call void @f( %struct.s* %a byval )
24 call void @f( %struct.s* %a byval )
28 declare void @f(%struct.s* byval)