• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
10@src = external global %struct.x
11@dst = external global %struct.x
12
13define i32 @t() {
14entry:
15  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)
16  ret i32 0
17}
18
19declare void @llvm.memcpy.p0i8.p0i8.i32(i8* nocapture, i8* nocapture, i32, i32, i1) nounwind
20