2012-10-24 04:10:54 +02:00
|
|
|
; RUN: llc -march=mips64el -mcpu=mips64r2 -mattr=n64 -O3 < %s | FileCheck %s
|
2012-10-20 00:11:40 +02:00
|
|
|
|
|
|
|
%struct.S = type { [8 x i32] }
|
|
|
|
|
|
|
|
@g = common global %struct.S zeroinitializer, align 4
|
|
|
|
|
|
|
|
define void @f(%struct.S* noalias sret %agg.result) nounwind {
|
|
|
|
entry:
|
2013-03-04 23:25:01 +01:00
|
|
|
; CHECK: move $2, $4
|
2012-10-24 04:10:54 +02:00
|
|
|
|
2012-10-20 00:11:40 +02:00
|
|
|
%0 = bitcast %struct.S* %agg.result to i8*
|
|
|
|
call void @llvm.memcpy.p0i8.p0i8.i64(i8* %0, i8* bitcast (%struct.S* @g to i8*), i64 32, i32 4, i1 false)
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
declare void @llvm.memcpy.p0i8.p0i8.i64(i8* nocapture, i8* nocapture, i64, i32, i1) nounwind
|