summaryrefslogtreecommitdiff
path: root/test/CodeGen/XCore/unaligned_store.ll
blob: 94e1852faea74450297c61b9832afb5efd84bac2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
; RUN: llc < %s -march=xcore | FileCheck %s

; Byte aligned store.
; CHECK: align1:
; CHECK: bl __misaligned_store
define void @align1(i32* %p, i32 %val) nounwind {
entry:
	store i32 %val, i32* %p, align 1
	ret void
}

; Half word aligned store.
; CHECK: align2
; CHECK: st16
; CHECK: st16
define void @align2(i32* %p, i32 %val) nounwind {
entry:
	store i32 %val, i32* %p, align 2
	ret void
}