2011-04-12 22:14:07 +02:00
|
|
|
; RUN: llc < %s -mtriple=arm-apple-darwin -regalloc=linearscan -disable-post-ra | FileCheck %s
|
|
|
|
; RUN: llc < %s -mtriple=arm-apple-darwin -regalloc=basic -disable-post-ra | FileCheck %s
|
2007-10-23 00:11:27 +02:00
|
|
|
|
2011-04-01 00:14:03 +02:00
|
|
|
; The ARM magic hinting works best with linear scan.
|
2011-04-12 22:14:07 +02:00
|
|
|
; CHECK: ldmia
|
|
|
|
; CHECK: stmia
|
|
|
|
; CHECK: ldrh
|
2011-04-01 00:14:03 +02:00
|
|
|
; CHECK: ldrb
|
|
|
|
|
|
|
|
%struct.x = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8 }
|
2007-10-23 00:11:27 +02:00
|
|
|
@src = external global %struct.x
|
|
|
|
@dst = external global %struct.x
|
|
|
|
|
|
|
|
define i32 @t() {
|
|
|
|
entry:
|
|
|
|
call void @llvm.memcpy.i32( i8* getelementptr (%struct.x* @dst, i32 0, i32 0), i8* getelementptr (%struct.x* @src, i32 0, i32 0), i32 11, i32 8 )
|
|
|
|
ret i32 0
|
|
|
|
}
|
|
|
|
|
|
|
|
declare void @llvm.memcpy.i32(i8*, i8*, i32, i32)
|