1; RUN: opt -S -passes=loop-vectorize < %s | FileCheck %s 2target datalayout = "E-m:e-i64:64-n32:64" 3target triple = "powerpc64le-unknown-linux" 4 5; Function Attrs: nounwind 6define zeroext i32 @test() #0 { 7; CHECK-LABEL: @test 8; CHECK-NOT: x i32> 9 10entry: 11 %a = alloca [1600 x i32], align 4 12 %c = alloca [1600 x i32], align 4 13 call void @llvm.lifetime.start(i64 6400, ptr %a) #3 14 br label %for.body 15 16for.cond.cleanup: ; preds = %for.body 17 call void @llvm.lifetime.start(i64 6400, ptr %c) #3 18 %call = call signext i32 @bar(ptr %a, ptr %c) #3 19 br label %for.body6 20 21for.body: ; preds = %for.body, %entry 22 %indvars.iv25 = phi i64 [ 0, %entry ], [ %indvars.iv.next26, %for.body ] 23 %arrayidx = getelementptr inbounds [1600 x i32], ptr %a, i64 0, i64 %indvars.iv25 24 %0 = trunc i64 %indvars.iv25 to i32 25 store i32 %0, ptr %arrayidx, align 4 26 %indvars.iv.next26 = add nuw nsw i64 %indvars.iv25, 1 27 %exitcond27 = icmp eq i64 %indvars.iv.next26, 1600 28 br i1 %exitcond27, label %for.cond.cleanup, label %for.body 29 30for.cond.cleanup5: ; preds = %for.body6 31 call void @llvm.lifetime.end(i64 6400, ptr nonnull %c) #3 32 call void @llvm.lifetime.end(i64 6400, ptr %a) #3 33 ret i32 %add 34 35for.body6: ; preds = %for.body6, %for.cond.cleanup 36 %indvars.iv = phi i64 [ 0, %for.cond.cleanup ], [ %indvars.iv.next, %for.body6 ] 37 %s.022 = phi i32 [ 0, %for.cond.cleanup ], [ %add, %for.body6 ] 38 %arrayidx8 = getelementptr inbounds [1600 x i32], ptr %c, i64 0, i64 %indvars.iv 39 %1 = load i32, ptr %arrayidx8, align 4 40 %add = add i32 %1, %s.022 41 %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1 42 %exitcond = icmp eq i64 %indvars.iv.next, 1600 43 br i1 %exitcond, label %for.cond.cleanup5, label %for.body6 44} 45 46; Function Attrs: argmemonly nounwind 47declare void @llvm.lifetime.start(i64, ptr nocapture) #1 48 49; Function Attrs: argmemonly nounwind 50declare void @llvm.lifetime.end(i64, ptr nocapture) #1 51 52declare signext i32 @bar(ptr, ptr) #2 53 54attributes #0 = { nounwind "target-features"="-altivec,-bpermd,-crypto,-direct-move,-extdiv,-power8-vector,-vsx" } 55attributes #1 = { argmemonly nounwind } 56attributes #2 = { "target-features"="-altivec,-bpermd,-crypto,-direct-move,-extdiv,-power8-vector,-vsx" } 57attributes #3 = { nounwind } 58 59