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
6 ; Byte aligned store. Expands to call to __misaligned_store.
7 define void @align1(i32* %p, i32 %val) nounwind {
9 store i32 %val, i32* %p, align 1
13 ; Half word aligned store. Expands to two 16bit stores.
14 define void @align2(i32* %p, i32 %val) nounwind {
16 store i32 %val, i32* %p, align 2