blob: 4965d166666d9c8f126d1a23474fa7604fc60ab2 [file] [log] [blame]
Evan Cheng5a67b812008-01-23 23:17:41 +00001; RUN: llvm-as < %s | llc -march=x86-64 | grep rep.movsb | count 2
2; RUN: llvm-as < %s | llc -march=x86 | grep rep.movsl | count 2
Rafael Espindolae7f8e0f2007-10-19 11:29:21 +00003
4%struct.s = type { i8, i8, i8, i8, i8, i8 }
5
6
7define void @g(i8 signext %a1, i8 signext %a2, i8 signext %a3,
8 i8 signext %a4, i8 signext %a5, i8 signext %a6) {
9entry:
10 %a = alloca %struct.s
11 %tmp = getelementptr %struct.s* %a, i32 0, i32 0
12 store i8 %a1, i8* %tmp, align 8
13 %tmp2 = getelementptr %struct.s* %a, i32 0, i32 1
14 store i8 %a2, i8* %tmp2, align 8
15 %tmp4 = getelementptr %struct.s* %a, i32 0, i32 2
16 store i8 %a3, i8* %tmp4, align 8
17 %tmp6 = getelementptr %struct.s* %a, i32 0, i32 3
18 store i8 %a4, i8* %tmp6, align 8
19 %tmp8 = getelementptr %struct.s* %a, i32 0, i32 4
20 store i8 %a5, i8* %tmp8, align 8
21 %tmp10 = getelementptr %struct.s* %a, i32 0, i32 5
22 store i8 %a6, i8* %tmp10, align 8
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)