blob: dc772827f270aa85a0360751a5f7378eb7f6c490 [file] [log] [blame]
Jakob Stoklund Olesen56ad83d2011-11-12 22:39:37 +00001; RUN: llc < %s -mtriple=thumbv7-apple-darwin -disable-post-ra | FileCheck %s
Evan Cheng4102eb52007-10-22 22:11:27 +00002
Andrew Trick87896d92011-04-13 00:38:32 +00003; CHECK: ldrd
4; CHECK: strd
Jakob Stoklund Olesenca6fd002011-03-31 22:14:03 +00005; CHECK: ldrb
6
7%struct.x = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8 }
Chris Lattnerb85e4eb2011-06-18 06:05:24 +00008
Evan Cheng4102eb52007-10-22 22:11:27 +00009@src = external global %struct.x
10@dst = external global %struct.x
11
12define i32 @t() {
13entry:
Chris Lattnerb85e4eb2011-06-18 06:05:24 +000014 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
Evan Cheng4102eb52007-10-22 22:11:27 +000016}
17
Chris Lattnerb85e4eb2011-06-18 06:05:24 +000018declare void @llvm.memcpy.p0i8.p0i8.i32(i8* nocapture, i8* nocapture, i32, i32, i1) nounwind