1; RUN: llc -mcpu=a2 < %s | FileCheck %s
2target datalayout = "E-m:e-i64:64-n32:64"
3target triple = "powerpc64-bgq-linux"
4
5; Function Attrs: nounwind
6define void @foo(double* nocapture %a, double* nocapture readonly %b) #0 {
7entry:
8  br label %for.body
9
10for.body:                                         ; preds = %for.body, %entry
11  %indvars.iv = phi i64 [ 0, %entry ], [ %indvars.iv.next, %for.body ]
12  %arrayidx = getelementptr inbounds double, double* %b, i64 %indvars.iv
13  %0 = load double, double* %arrayidx, align 8
14  %add = fadd double %0, 1.000000e+00
15  %arrayidx2 = getelementptr inbounds double, double* %a, i64 %indvars.iv
16  store double %add, double* %arrayidx2, align 8
17  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
18  %exitcond = icmp eq i64 %indvars.iv.next, 1600
19  br i1 %exitcond, label %for.end, label %for.body
20
21for.end:                                          ; preds = %for.body
22  ret void
23
24; CHECK-LABEL: @foo
25; CHECK: dcbt
26}
27
28attributes #0 = { nounwind }
29
30