Home | History | Annotate | Download | only in XCore
      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
      8 
      9 define void @store32(i32* %p, i32 %offset, i32 %val) nounwind {
     10 entry:
     11 	%0 = getelementptr i32* %p, i32 %offset
     12 	store i32 %val, i32* %0, align 4
     13 	ret void
     14 }
     15 
     16 define void @store32_imm(i32* %p, i32 %val) nounwind {
     17 entry:
     18 	%0 = getelementptr i32* %p, i32 11
     19 	store i32 %val, i32* %0, align 4
     20 	ret void
     21 }
     22 
     23 define void @store16(i16* %p, i32 %offset, i16 %val) nounwind {
     24 entry:
     25 	%0 = getelementptr i16* %p, i32 %offset
     26 	store i16 %val, i16* %0, align 2
     27 	ret void
     28 }
     29 
     30 define void @store8(i8* %p, i32 %offset, i8 %val) nounwind {
     31 entry:
     32 	%0 = getelementptr i8* %p, i32 %offset
     33 	store i8 %val, i8* %0, align 1
     34 	ret void
     35 }
     36