1 ; RUN: llc < %s -march=xcore > %t1.s
2 ; RUN: not grep add %t1.s
3 ; RUN: not grep ldaw %t1.s
4 ; RUN: not grep lda16 %t1.s
5 ; RUN: grep "stw" %t1.s | count 2
6 ; RUN: grep "st16" %t1.s | count 1
7 ; RUN: grep "st8" %t1.s | count 1
9 define void @store32(i32* %p, i32 %offset, i32 %val) nounwind {
11 %0 = getelementptr i32* %p, i32 %offset
12 store i32 %val, i32* %0, align 4
16 define void @store32_imm(i32* %p, i32 %val) nounwind {
18 %0 = getelementptr i32* %p, i32 11
19 store i32 %val, i32* %0, align 4
23 define void @store16(i16* %p, i32 %offset, i16 %val) nounwind {
25 %0 = getelementptr i16* %p, i32 %offset
26 store i16 %val, i16* %0, align 2
30 define void @store8(i8* %p, i32 %offset, i8 %val) nounwind {
32 %0 = getelementptr i8* %p, i32 %offset
33 store i8 %val, i8* %0, align 1