]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/ARM/memcpy-inline.ll
Import LLVM, at r72732.
[FreeBSD/FreeBSD.git] / test / CodeGen / ARM / memcpy-inline.ll
1 ; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | grep ldrb
2 ; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | grep ldrh
3 ; This used to look for ldmia. But it's no longer lucky enough to
4 ; have the load / store instructions lined up just right after
5 ; scheduler change for pr3457. We'll look for a robust solution
6 ; later.
7
8         %struct.x = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8 }
9 @src = external global %struct.x
10 @dst = external global %struct.x
11
12 define i32 @t() {
13 entry:
14         call void @llvm.memcpy.i32( i8* getelementptr (%struct.x* @dst, i32 0, i32 0), i8* getelementptr (%struct.x* @src, i32 0, i32 0), i32 11, i32 8 )
15         ret i32 0
16 }
17
18 declare void @llvm.memcpy.i32(i8*, i8*, i32, i32)