More LVI cleanups, including trying to simplify the process of maintaining the OverDe...
[oota-llvm.git] / test / CodeGen / ARM / memcpy-inline.ll
1 ; RUN: llc < %s -mtriple=arm-apple-darwin | grep ldmia
2 ; RUN: llc < %s -mtriple=arm-apple-darwin | grep stmia
3 ; RUN: llc < %s -mtriple=arm-apple-darwin | grep ldrb
4 ; RUN: llc < %s -mtriple=arm-apple-darwin | grep ldrh
5
6         %struct.x = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8 }
7 @src = external global %struct.x
8 @dst = external global %struct.x
9
10 define i32 @t() {
11 entry:
12         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 )
13         ret i32 0
14 }
15
16 declare void @llvm.memcpy.i32(i8*, i8*, i32, i32)