Home | History | Annotate | Download | only in Thumb
      1 ; RUN: llc -mtriple=thumbv6m-eabi %s -o - | FileCheck %s
      2 ; XFAIL: *
      3 
      4 @d = external global [64 x i32]
      5 @s = external global [64 x i32]
      6 
      7 ; Function Attrs: nounwind
      8 define void @t1() #0 {
      9 entry:
     10 ; CHECK: ldr [[REG0:r[0-9]]],
     11 ; CHECK: ldm [[REG0]]!,
     12 ; CHECK: ldr [[REG1:r[0-9]]],
     13 ; CHECK: stm [[REG1]]!,
     14 ; CHECK: subs [[REG0]], #32
     15 ; CHECK-NEXT: ldrb
     16 ; CHECK: subs [[REG1]], #32
     17 ; CHECK-NEXT: strb
     18     tail call void @llvm.memcpy.p0i8.p0i8.i32(i8* bitcast ([64 x i32]* @s to i8*), i8* bitcast ([64 x i32]* @d to i8*), i32 33, i32 4, i1 false)
     19     ret void
     20 }
     21 
     22 ; Function Attrs: nounwind
     23 define void @t2() #0 {
     24 entry:
     25 ; CHECK: ldr [[REG0:r[0-9]]],
     26 ; CHECK: ldm [[REG0]]!,
     27 ; CHECK: ldr [[REG1:r[0-9]]],
     28 ; CHECK: stm [[REG1]]!,
     29 ; CHECK: ldrh
     30 ; CHECK: ldrb
     31 ; CHECK: strb
     32 ; CHECK: strh
     33     tail call void @llvm.memcpy.p0i8.p0i8.i32(i8* bitcast ([64 x i32]* @s to i8*), i8* bitcast ([64 x i32]* @d to i8*), i32 15, i32 4, i1 false)
     34     ret void
     35 }
     36 
     37 ; Function Attrs: nounwind
     38 declare void @llvm.memcpy.p0i8.p0i8.i32(i8* nocapture, i8* nocapture readonly, i32, i32, i1) #1
     39