blob: 5576c361ae1638ff7dd4aeb07e5adda035fdd926 [file] [log] [blame]
Evan Cheng9a6e0fa2008-08-21 21:00:15 +00001; RUN: llvm-as < %s | llc -march=x86-64 | grep rep.movsq | count 2
Evan Cheng5a67b812008-01-23 23:17:41 +00002; RUN: llvm-as < %s | llc -march=x86 | grep rep.movsl | count 2
Rafael Espindola80825902007-10-19 10:41:11 +00003
Dan Gohmane8b391e2008-04-12 04:36:06 +00004%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,
12 i16 }
Rafael Espindola80825902007-10-19 10:41:11 +000013
14
15define void @g(i16 signext %a1, i16 signext %a2, i16 signext %a3,
Evan Cheng9a6e0fa2008-08-21 21:00:15 +000016 i16 signext %a4, i16 signext %a5, i16 signext %a6) nounwind {
Rafael Espindola80825902007-10-19 10:41:11 +000017entry:
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 )
33 ret void
34}
35
36declare void @f(%struct.s* byval)