1*cee313d2SEric Christopher; RUN: opt < %s -loop-vectorize -force-vector-interleave=1 -force-vector-width=4 -instcombine -S | FileCheck %s 2*cee313d2SEric Christopher 3*cee313d2SEric Christophertarget datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" 4*cee313d2SEric Christopher 5*cee313d2SEric Christopher;CHECK-LABEL: @start_at_nonzero( 6*cee313d2SEric Christopher;CHECK: mul nuw <4 x i32> 7*cee313d2SEric Christopher;CHECK: ret i32 8*cee313d2SEric Christopherdefine i32 @start_at_nonzero(i32* nocapture %a, i32 %start, i32 %end) nounwind uwtable ssp { 9*cee313d2SEric Christopherentry: 10*cee313d2SEric Christopher %cmp3 = icmp slt i32 %start, %end 11*cee313d2SEric Christopher br i1 %cmp3, label %for.body.lr.ph, label %for.end 12*cee313d2SEric Christopher 13*cee313d2SEric Christopherfor.body.lr.ph: ; preds = %entry 14*cee313d2SEric Christopher %0 = sext i32 %start to i64 15*cee313d2SEric Christopher br label %for.body 16*cee313d2SEric Christopher 17*cee313d2SEric Christopherfor.body: ; preds = %for.body.lr.ph, %for.body 18*cee313d2SEric Christopher %indvars.iv = phi i64 [ %0, %for.body.lr.ph ], [ %indvars.iv.next, %for.body ] 19*cee313d2SEric Christopher %arrayidx = getelementptr inbounds i32, i32* %a, i64 %indvars.iv 20*cee313d2SEric Christopher %1 = load i32, i32* %arrayidx, align 4 21*cee313d2SEric Christopher %mul = mul nuw i32 %1, 333 22*cee313d2SEric Christopher store i32 %mul, i32* %arrayidx, align 4 23*cee313d2SEric Christopher %indvars.iv.next = add i64 %indvars.iv, 1 24*cee313d2SEric Christopher %2 = trunc i64 %indvars.iv.next to i32 25*cee313d2SEric Christopher %cmp = icmp slt i32 %2, %end 26*cee313d2SEric Christopher br i1 %cmp, label %for.body, label %for.end 27*cee313d2SEric Christopher 28*cee313d2SEric Christopherfor.end: ; preds = %for.body, %entry 29*cee313d2SEric Christopher ret i32 4 30*cee313d2SEric Christopher} 31