blob: 498c5fe17475cf555a350fc6f7f476ad10b75007 [file] [log] [blame]
Akira Hatanaka30580ce2012-10-19 22:11:40 +00001; RUN: llc -march=mips64el -mcpu=mips64r2 -mattr=n64 -O0 < %s
2
3%struct.S = type { [8 x i32] }
4
5@g = common global %struct.S zeroinitializer, align 4
6
7define void @f(%struct.S* noalias sret %agg.result) nounwind {
8entry:
9 %0 = bitcast %struct.S* %agg.result to i8*
10 call void @llvm.memcpy.p0i8.p0i8.i64(i8* %0, i8* bitcast (%struct.S* @g to i8*), i64 32, i32 4, i1 false)
11 ret void
12}
13
14declare void @llvm.memcpy.p0i8.p0i8.i64(i8* nocapture, i8* nocapture, i64, i32, i1) nounwind