brintos

brintos / llvm-project-archived public Read only

0
0
Text · 890 B · 85f0f35 Raw
24 lines · plain
1; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=core2 | FileCheck %s2; rdar://78420283 4; Do not delete partially dead copy instructions.5; dead %rdi = MOV64rr killed %rax, implicit-def %edi6; REP_MOVSD implicit dead %ecx, implicit dead %edi, implicit dead %esi, implicit killed %ecx, implicit killed %edi, implicit killed %esi7 8 9%struct.F = type { ptr, i32, i32, i8, i32, i32, i32 }10%struct.FC = type { [10 x i8], [32 x i32], ptr, i32 }11 12define void @t(ptr %this) nounwind {13entry:14; CHECK-LABEL: t:15; CHECK: addq $12, %rsi16  %BitValueArray = alloca [32 x i32], align 417  %tmp3 = load ptr, ptr %this, align 818  %tmp4 = getelementptr inbounds %struct.FC, ptr %tmp3, i64 0, i32 1, i64 019  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %BitValueArray, ptr align 4 %tmp4, i64 128, i1 false)20  unreachable21}22 23declare void @llvm.memcpy.p0.p0.i64(ptr nocapture, ptr nocapture, i64, i1) nounwind24