mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-21 00:32:23 +00:00
1ae08e0077
"move $4, $5" is printed instead of "or $4, $5, $zero". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176455 91177308-0d34-0410-b5e6-96231b3b80d8
17 lines
517 B
LLVM
17 lines
517 B
LLVM
; RUN: llc -march=mips64el -mcpu=mips64r2 -mattr=n64 -O3 < %s | FileCheck %s
|
|
|
|
%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:
|
|
; CHECK: move $2, $4
|
|
|
|
%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
|