blob: 5bae037cafb3ccedaf492938cefa22a0b373207a [file] [log] [blame]
Andrew Trick87896d92011-04-13 00:38:32 +00001; RUN: llc < %s -mtriple=thumbv7-apple-darwin -regalloc=linearscan -disable-post-ra | FileCheck %s
Evan Cheng4102eb52007-10-22 22:11:27 +00002
Jakob Stoklund Olesenca6fd002011-03-31 22:14:03 +00003; The ARM magic hinting works best with linear scan.
Andrew Trick87896d92011-04-13 00:38:32 +00004; CHECK: ldrd
5; CHECK: strd
Jakob Stoklund Olesenca6fd002011-03-31 22:14:03 +00006; CHECK: ldrb
7
8%struct.x = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8 }
Evan Cheng4102eb52007-10-22 22:11:27 +00009@src = external global %struct.x
10@dst = external global %struct.x
11
12define i32 @t() {
13entry:
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
18declare void @llvm.memcpy.i32(i8*, i8*, i32, i32)