blob: 5d1beea5fc2582c1401279a17c1344238d27957e [file] [log] [blame]
Evan Cheng4102eb52007-10-22 22:11:27 +00001; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | grep ldrb
2; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | grep ldrh
Evan Chengf0e366a2009-02-10 08:30:11 +00003; This used to look for ldmia. But it's no longer lucky enough to
4; have the load / store instructions lined up just right after
5; scheduler change for pr3457. We'll look for a robust solution
6; later.
Evan Cheng4102eb52007-10-22 22:11:27 +00007
8 %struct.x = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8 }
9@src = external global %struct.x
10@dst = external global %struct.x
11
12define i32 @t() {
13entry:
14 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 )
15 ret i32 0
16}
17
18declare void @llvm.memcpy.i32(i8*, i8*, i32, i32)