1 ; RUN: llc -mtriple=thumbv6m-eabi -verify-machineinstrs %s -o - | FileCheck %s 2 @d = external global [64 x i32] 3 @s = external global [64 x i32] 4 5 ; Function Attrs: nounwind 6 define void @t1() #0 { 7 entry: 8 ; CHECK-LABEL: t1: 9 ; CHECK: ldr r[[LB:[0-9]]], 10 ; CHECK-NEXT: ldm r[[LB]]!, 11 ; CHECK-NEXT: ldr r[[SB:[0-9]]], 12 ; CHECK-NEXT: stm r[[SB]]!, 13 ; CHECK-NEXT: ldrb {{.*}}, [r[[LB]]] 14 ; CHECK-NEXT: strb {{.*}}, [r[[SB]]] 15 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 17, i32 4, i1 false) 16 ret void 17 } 18 19 ; Function Attrs: nounwind 20 define void @t2() #0 { 21 entry: 22 ; CHECK-LABEL: t2: 23 ; CHECK: ldr r[[LB:[0-9]]], 24 ; CHECK-NEXT: ldm r[[LB]]!, 25 ; CHECK-NEXT: ldr r[[SB:[0-9]]], 26 ; CHECK-NEXT: stm r[[SB]]!, 27 ; CHECK-NEXT: ldrh {{.*}}, [r[[LB]]] 28 ; CHECK-NEXT: ldrb {{.*}}, [r[[LB]], #2] 29 ; CHECK-NEXT: strb {{.*}}, [r[[SB]], #2] 30 ; CHECK-NEXT: strh {{.*}}, [r[[SB]]] 31 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) 32 ret void 33 } 34 35 ; Function Attrs: nounwind 36 declare void @llvm.memcpy.p0i8.p0i8.i32(i8* nocapture, i8* nocapture readonly, i32, i32, i1) #1 37