blob: 591749f768e138436374350d34385b2057406104 [file] [log] [blame]
Evan Cheng5a67b812008-01-23 23:17:41 +00001; 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
Rafael Espindola80825902007-10-19 10:41:11 +00003
4%struct.s = type { i16, i16, i16, i16, i16, i16 }
5
6
7define void @g(i16 signext %a1, i16 signext %a2, i16 signext %a3,
8 i16 signext %a4, i16 signext %a5, i16 signext %a6) {
9entry:
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 )
25 ret void
26}
27
28declare void @f(%struct.s* byval)