blob: e8a2a3b7d5bfff1c37e2024d826ace79f00c159f [file] [log] [blame]
Andrew Trickc558bf32011-04-12 20:14:07 +00001; RUN: llc < %s -mtriple=arm-apple-darwin -regalloc=linearscan -disable-post-ra | FileCheck %s
2; RUN: llc < %s -mtriple=arm-apple-darwin -regalloc=basic -disable-post-ra | FileCheck %s
Evan Cheng4102eb52007-10-22 22:11:27 +00003
Jakob Stoklund Olesenca6fd002011-03-31 22:14:03 +00004; The ARM magic hinting works best with linear scan.
Andrew Trickc558bf32011-04-12 20:14:07 +00005; CHECK: ldmia
6; CHECK: stmia
7; CHECK: ldrh
Jakob Stoklund Olesenca6fd002011-03-31 22:14:03 +00008; CHECK: ldrb
9
10%struct.x = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8 }
Evan Cheng4102eb52007-10-22 22:11:27 +000011@src = external global %struct.x
12@dst = external global %struct.x
13
14define i32 @t() {
15entry:
16 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 )
17 ret i32 0
18}
19
20declare void @llvm.memcpy.i32(i8*, i8*, i32, i32)