Evan Cheng | 5a67b81 | 2008-01-23 23:17:41 +0000 | [diff] [blame] | 1 | ; 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 Espindola | e7f8e0f | 2007-10-19 11:29:21 +0000 | [diff] [blame] | 3 | |
| 4 | %struct.s = type { i8, i8, i8, i8, i8, i8 } |
| 5 | |
| 6 | |
| 7 | define void @g(i8 signext %a1, i8 signext %a2, i8 signext %a3, |
| 8 | i8 signext %a4, i8 signext %a5, i8 signext %a6) { |
| 9 | entry: |
| 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 | |
| 28 | declare void @f(%struct.s* byval) |