[fast-isel] Add support for indirect branches.
[oota-llvm.git] / test / CodeGen / ARM / memcpy-inline.ll
1 ; RUN: llc < %s -mtriple=thumbv7-apple-darwin -disable-post-ra | FileCheck %s
2
3 ; CHECK: ldrd
4 ; CHECK: strd
5 ; CHECK: ldrb
6
7 %struct.x = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8 }
8
9 @src = external global %struct.x
10 @dst = external global %struct.x
11
12 define i32 @t() {
13 entry:
14   call void @llvm.memcpy.p0i8.p0i8.i32(i8* getelementptr inbounds (%struct.x* @dst, i32 0, i32 0), i8* getelementptr inbounds (%struct.x* @src, i32 0, i32 0), i32 11, i32 8, i1 false)
15   ret i32 0
16 }
17
18 declare void @llvm.memcpy.p0i8.p0i8.i32(i8* nocapture, i8* nocapture, i32, i32, i1) nounwind