Home | History | Annotate | Download | only in XCore
      1 ; RUN: llc < %s -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.
      7 define void @align1(i32* %p, i32 %val) nounwind {
      8 entry:
      9 	store i32 %val, i32* %p, align 1
     10 	ret void
     11 }
     12 
     13 ; Half word aligned store. Expands to two 16bit stores.
     14 define void @align2(i32* %p, i32 %val) nounwind {
     15 entry:
     16 	store i32 %val, i32* %p, align 2
     17 	ret void
     18 }
     19