summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ARM/memcpy-inline.ll
blob: 4bf0b4f6f3b19803ef2fc9a65d202125cc0437e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | grep ldmia
; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | grep stmia
; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | grep ldrb
; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | grep ldrh

	%struct.x = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8 }
@src = external global %struct.x
@dst = external global %struct.x

define i32 @t() {
entry:
	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 )
	ret i32 0
}

declare void @llvm.memcpy.i32(i8*, i8*, i32, i32)
OpenPOWER on IntegriCloud