1*cee313d2SEric Christopher; RUN: opt < %s -loop-vectorize -force-vector-interleave=1 -force-vector-width=4 -S | FileCheck %s 2*cee313d2SEric Christophertarget datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 3*cee313d2SEric Christopher 4*cee313d2SEric Christopher; Function Attrs: nounwind uwtable 5*cee313d2SEric Christopherdefine i32 @test1(i32* nocapture %a, float* nocapture readonly %b) #0 { 6*cee313d2SEric Christopherentry: 7*cee313d2SEric Christopher br label %for.body 8*cee313d2SEric Christopher 9*cee313d2SEric Christopherfor.body: ; preds = %for.body, %entry 10*cee313d2SEric Christopher %indvars.iv = phi i64 [ 0, %entry ], [ %indvars.iv.next, %for.body ] 11*cee313d2SEric Christopher %arrayidx = getelementptr inbounds float, float* %b, i64 %indvars.iv 12*cee313d2SEric Christopher %0 = load float, float* %arrayidx, align 4, !tbaa !0 13*cee313d2SEric Christopher %conv = fptosi float %0 to i32 14*cee313d2SEric Christopher %arrayidx2 = getelementptr inbounds i32, i32* %a, i64 %indvars.iv 15*cee313d2SEric Christopher store i32 %conv, i32* %arrayidx2, align 4, !tbaa !4 16*cee313d2SEric Christopher %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1 17*cee313d2SEric Christopher %exitcond = icmp eq i64 %indvars.iv.next, 1600 18*cee313d2SEric Christopher br i1 %exitcond, label %for.end, label %for.body 19*cee313d2SEric Christopher 20*cee313d2SEric Christopherfor.end: ; preds = %for.body 21*cee313d2SEric Christopher ret i32 0 22*cee313d2SEric Christopher} 23*cee313d2SEric Christopher 24*cee313d2SEric Christopher; CHECK-LABEL: @test1 25*cee313d2SEric Christopher; CHECK: load <4 x float>, <4 x float>* %{{.*}}, align 4, !tbaa ![[TFLT:[0-9]+]] 26*cee313d2SEric Christopher; CHECK: store <4 x i32> %{{.*}}, <4 x i32>* %{{.*}}, align 4, !tbaa ![[TINT:[0-9]+]] 27*cee313d2SEric Christopher; CHECK: ret i32 0 28*cee313d2SEric Christopher 29*cee313d2SEric Christopher; CHECK-DAG: ![[TFLT]] = !{![[TFLT1:[0-9]+]] 30*cee313d2SEric Christopher; CHECK-DAG: ![[TFLT1]] = !{!"float" 31*cee313d2SEric Christopher 32*cee313d2SEric Christopher; CHECK-DAG: ![[TINT]] = !{![[TINT1:[0-9]+]] 33*cee313d2SEric Christopher; CHECK-DAG: ![[TINT1]] = !{!"int" 34*cee313d2SEric Christopher 35*cee313d2SEric Christopherattributes #0 = { nounwind uwtable } 36*cee313d2SEric Christopher 37*cee313d2SEric Christopher!0 = !{!1, !1, i64 0} 38*cee313d2SEric Christopher!1 = !{!"float", !2, i64 0} 39*cee313d2SEric Christopher!2 = !{!"omnipotent char", !3, i64 0} 40*cee313d2SEric Christopher!3 = !{!"Simple C/C++ TBAA"} 41*cee313d2SEric Christopher!4 = !{!5, !5, i64 0} 42*cee313d2SEric Christopher!5 = !{!"int", !2, i64 0} 43*cee313d2SEric Christopher 44