1; RUN: llvm-as < %s | llc -march=xcore > %t1.s
2; RUN: grep "bl __misaligned_store" %t1.s | count 1
3; RUN: grep st16 %t1.s | count 2
4; RUN: grep shr %t1.s | count 1
5
6; Byte aligned store. Expands to call to __misaligned_store.
7define void @align1(i32* %p, i32 %val) nounwind {
8entry:
9	store i32 %val, i32* %p, align 1
10	ret void
11}
12
13; Half word aligned store. Expands to two 16bit stores.
14define void @align2(i32* %p, i32 %val) nounwind {
15entry:
16	store i32 %val, i32* %p, align 2
17	ret void
18}
19