summaryrefslogtreecommitdiff
path: root/test/CodeGen/XCore/unaligned_store_combine.ll
blob: d1f4e6c15cd55556b781c723428fba266777d574 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; RUN: llc < %s -march=xcore | FileCheck %s

; Unaligned load / store pair. Should be combined into a memmove
; of size 8
define void @f(i64* %dst, i64* %src) nounwind {
entry:
; CHECK-LABEL: f:
; CHECK: ldc r2, 8
; CHECK: bl memmove
	%0 = load i64* %src, align 1
	store i64 %0, i64* %dst, align 1
	ret void
}