Recommit r129383. PreRA scheduler heuristic fixes: VRegCycle, TokenFactor latency.
[oota-llvm.git] / test / CodeGen / ARM / memcpy-inline.ll
1 ; RUN: llc < %s -mtriple=thumbv7-apple-darwin -regalloc=linearscan -disable-post-ra | FileCheck %s
2
3 ; The ARM magic hinting works best with linear scan.
4 ; CHECK: ldrd
5 ; CHECK: strd
6 ; CHECK: ldrb
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)