2014-08-22 01:11:03 +08:00
|
|
|
; RUN: llc -mtriple=thumbv6m-eabi -verify-machineinstrs %s -o - | FileCheck %s
|
2014-05-16 22:24:22 +08:00
|
|
|
@d = external global [64 x i32]
|
|
|
|
@s = external global [64 x i32]
|
|
|
|
|
|
|
|
; Function Attrs: nounwind
|
|
|
|
define void @t1() #0 {
|
|
|
|
entry:
|
2014-09-03 21:32:08 +08:00
|
|
|
; CHECK-LABEL: t1:
|
2014-09-25 00:35:50 +08:00
|
|
|
; CHECK: ldr r[[LB:[0-9]]],
|
|
|
|
; CHECK-NEXT: ldm r[[LB]]!,
|
|
|
|
; CHECK-NEXT: ldr r[[SB:[0-9]]],
|
|
|
|
; CHECK-NEXT: stm r[[SB]]!,
|
|
|
|
; CHECK-NEXT: ldrb {{.*}}, [r[[LB]]]
|
|
|
|
; CHECK-NEXT: strb {{.*}}, [r[[SB]]]
|
2014-08-16 01:00:30 +08:00
|
|
|
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)
|
2014-05-16 22:24:22 +08:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; Function Attrs: nounwind
|
|
|
|
define void @t2() #0 {
|
|
|
|
entry:
|
2014-08-16 01:00:30 +08:00
|
|
|
; CHECK-LABEL: t2:
|
2014-09-25 00:35:50 +08:00
|
|
|
; CHECK: ldr r[[LB:[0-9]]],
|
|
|
|
; CHECK-NEXT: ldm r[[LB]]!,
|
|
|
|
; CHECK-NEXT: ldr r[[SB:[0-9]]],
|
|
|
|
; CHECK-NEXT: stm r[[SB]]!,
|
|
|
|
; CHECK-NEXT: ldrh {{.*}}, [r[[LB]]]
|
|
|
|
; CHECK-NEXT: ldrb {{.*}}, [r[[LB]], #2]
|
|
|
|
; CHECK-NEXT: strb {{.*}}, [r[[SB]], #2]
|
|
|
|
; CHECK-NEXT: strh {{.*}}, [r[[SB]]]
|
2014-05-16 22:24:22 +08:00
|
|
|
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)
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; Function Attrs: nounwind
|
|
|
|
declare void @llvm.memcpy.p0i8.p0i8.i32(i8* nocapture, i8* nocapture readonly, i32, i32, i1) #1
|