1; RUN: opt -S -basicaa -loop-vectorize < %s | FileCheck %s 2target datalayout = "E-m:e-i64:64-n32:64" 3target triple = "powerpc64-unknown-linux-gnu" 4 5; Function Attrs: nounwind 6define void @foo(double* noalias nocapture %a, double* noalias nocapture readonly %b, double* noalias nocapture readonly %c) #0 { 7entry: 8 br label %for.body 9 10; CHECK-LABEL: @foo 11; CHECK: fmul <4 x double> %{{[^,]+}}, <double 2.000000e+00, double 2.000000e+00, double 2.000000e+00, double 2.000000e+00> 12; CHECK-NEXT: fmul <4 x double> %{{[^,]+}}, <double 2.000000e+00, double 2.000000e+00, double 2.000000e+00, double 2.000000e+00> 13 14for.cond.cleanup: ; preds = %for.body 15 ret void 16 17for.body: ; preds = %for.body, %entry 18 %indvars.iv = phi i64 [ 0, %entry ], [ %indvars.iv.next, %for.body ] 19 %arrayidx = getelementptr inbounds double, double* %b, i64 %indvars.iv 20 %0 = load double, double* %arrayidx, align 8 21 %mul = fmul double %0, 2.000000e+00 22 %mul3 = fmul double %0, %mul 23 %arrayidx5 = getelementptr inbounds double, double* %c, i64 %indvars.iv 24 %1 = load double, double* %arrayidx5, align 8 25 %mul6 = fmul double %1, 3.000000e+00 26 %mul9 = fmul double %1, %mul6 27 %add = fadd double %mul3, %mul9 28 %mul12 = fmul double %0, 4.000000e+00 29 %mul15 = fmul double %mul12, %1 30 %add16 = fadd double %mul15, %add 31 %add17 = fadd double %add16, 1.000000e+00 32 %arrayidx19 = getelementptr inbounds double, double* %a, i64 %indvars.iv 33 store double %add17, double* %arrayidx19, align 8 34 %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1 35 %exitcond = icmp eq i64 %indvars.iv.next, 1600 36 br i1 %exitcond, label %for.cond.cleanup, label %for.body 37} 38 39attributes #0 = { nounwind "target-cpu"="a2q" } 40 41