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