blob: 4bf0b4f6f3b19803ef2fc9a65d202125cc0437e8 [file] [log] [blame]
Evan Cheng92549222009-06-05 19:08:58 +00001; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | grep ldmia
2; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | grep stmia
Evan Cheng4102eb52007-10-22 22:11:27 +00003; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | grep ldrb
4; RUN: llvm-as < %s | llc -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)