2011-11-13 06:39:37 +08:00
|
|
|
; RUN: llc < %s -mtriple=thumbv7-apple-darwin -disable-post-ra | FileCheck %s
|
2007-10-23 06:11:27 +08:00
|
|
|
|
2011-04-13 08:38:32 +08:00
|
|
|
; CHECK: ldrd
|
|
|
|
; CHECK: strd
|
2011-04-01 06:14:03 +08:00
|
|
|
; CHECK: ldrb
|
|
|
|
|
|
|
|
%struct.x = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8 }
|
2011-06-18 14:05:24 +08:00
|
|
|
|
2007-10-23 06:11:27 +08:00
|
|
|
@src = external global %struct.x
|
|
|
|
@dst = external global %struct.x
|
|
|
|
|
|
|
|
define i32 @t() {
|
|
|
|
entry:
|
2011-06-18 14:05:24 +08:00
|
|
|
call void @llvm.memcpy.p0i8.p0i8.i32(i8* getelementptr inbounds (%struct.x* @dst, i32 0, i32 0), i8* getelementptr inbounds (%struct.x* @src, i32 0, i32 0), i32 11, i32 8, i1 false)
|
|
|
|
ret i32 0
|
2007-10-23 06:11:27 +08:00
|
|
|
}
|
|
|
|
|
2011-06-18 14:05:24 +08:00
|
|
|
declare void @llvm.memcpy.p0i8.p0i8.i32(i8* nocapture, i8* nocapture, i32, i32, i1) nounwind
|