30 lines · plain
1; RUN: llc -verify-machineinstrs -enable-ppc-prefetching=true -mcpu=a2 < %s | FileCheck %s2target datalayout = "E-m:e-i64:64-n32:64"3target triple = "powerpc64le-unknown-linux"4 5; Function Attrs: nounwind6define void @foo(ptr nocapture %a, ptr nocapture readonly %b) #0 {7entry:8 br label %for.body9 10for.body: ; preds = %for.body, %entry11 %indvars.iv = phi i64 [ 0, %entry ], [ %indvars.iv.next, %for.body ]12 %arrayidx = getelementptr inbounds double, ptr %b, i64 %indvars.iv13 %0 = load double, ptr %arrayidx, align 814 %add = fadd double %0, 1.000000e+0015 %arrayidx2 = getelementptr inbounds double, ptr %a, i64 %indvars.iv16 store double %add, ptr %arrayidx2, align 817 %indvars.iv.next = add nuw nsw i64 %indvars.iv, 118 %exitcond = icmp eq i64 %indvars.iv.next, 160019 br i1 %exitcond, label %for.end, label %for.body20 21for.end: ; preds = %for.body22 ret void23 24; CHECK-LABEL: @foo25; CHECK: dcbt26}27 28attributes #0 = { nounwind }29 30