blob: ed20c32dc0d595a2abda3e010f68d02b6438c908 [file] [log] [blame]
Dan Gohmanfce288f2009-09-09 00:09:15 +00001; RUN: llc < %s -mtriple=arm-apple-darwin | grep ldmia
2; RUN: llc < %s -mtriple=arm-apple-darwin | grep stmia
3; RUN: llc < %s -mtriple=arm-apple-darwin | grep ldrb
4; RUN: llc < %s -mtriple=arm-apple-darwin | grep ldrh
Evan Cheng4102eb52007-10-22 22:11:27 +00005
6 %struct.x = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8 }
7@src = external global %struct.x
8@dst = external global %struct.x
9
10define i32 @t() {
11entry:
12 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 )
13 ret i32 0
14}
15
16declare void @llvm.memcpy.i32(i8*, i8*, i32, i32)