84 lines · plain
1; RUN: llc -O2 -mtriple=hexagon -fp-contract=fast -pipeliner-prune-loop-carried=false < %s | FileCheck %s2 3; Test that there is 1 packet between the FP result and its use.4 5; CHECK: loop0([[LOOP0:.LBB[0-9_]+]],6; CHECK: [[LOOP0]]7; CHECK: [[REG0:(r[0-9]+)]] += sfmpy(r{{[0-9]+}},r{{[0-9]+}})8; CHECK: }9; CHECK: }10; CHECK: r{{[0-9]+}} = {{.*}}[[REG0]]11 12; Function Attrs: nounwind readnone13define void @f0(i32 %a0, i32 %a1) #0 {14b0:15 %v0 = alloca [1000 x float], align 6416 %v1 = alloca [1000 x float], align 6417 %v2 = alloca [1000 x float], align 6418 %v3 = alloca [1000 x float], align 6419 call void @llvm.lifetime.start.p0(i64 4000, ptr %v0) #220 call void @llvm.lifetime.start.p0(i64 4000, ptr %v1) #221 call void @llvm.lifetime.start.p0(i64 4000, ptr %v2) #222 call void @llvm.lifetime.start.p0(i64 4000, ptr %v3) #223 %v8 = icmp sgt i32 %a1, 024 %v9 = add i32 %a1, -125 br label %b126 27b1: ; preds = %b3, %b028 %v11 = phi i32 [ 0, %b0 ], [ %v34, %b3 ]29 br i1 %v8, label %b2, label %b330 31b2: ; preds = %b2, %b132 %v12 = phi ptr [ %v33, %b2 ], [ %v3, %b1 ]33 %v13 = phi i32 [ %v31, %b2 ], [ 0, %b1 ]34 %v14 = mul nsw i32 %v13, %a135 %v15 = add nsw i32 %v14, %v1136 %v16 = getelementptr inbounds [1000 x float], ptr %v1, i32 0, i32 %v1537 %v17 = load float, ptr %v16, align 4, !tbaa !038 %v18 = fmul float %v17, %v1739 %v19 = mul nsw i32 %v13, 2540 %v20 = add nsw i32 %v19, %v1141 %v21 = getelementptr inbounds [1000 x float], ptr %v2, i32 0, i32 %v2042 %v22 = load float, ptr %v21, align 4, !tbaa !043 %v23 = fmul float %v22, %v2244 %v24 = fadd float %v18, %v2345 %v25 = load float, ptr %v12, align 4, !tbaa !046 %v26 = fmul float %v25, %v2547 %v27 = fadd float %v24, %v2648 %v28 = getelementptr inbounds [1000 x float], ptr %v0, i32 0, i32 %v2049 %v29 = load float, ptr %v28, align 4, !tbaa !050 %v30 = fadd float %v29, %v2751 store float %v30, ptr %v28, align 4, !tbaa !052 %v31 = add nuw nsw i32 %v13, 153 %v32 = icmp eq i32 %v13, %v954 %v33 = getelementptr float, ptr %v12, i32 155 br i1 %v32, label %b3, label %b256 57b3: ; preds = %b2, %b158 %v34 = add nuw nsw i32 %v11, 159 %v35 = icmp eq i32 %v34, 2560 br i1 %v35, label %b4, label %b161 62b4: ; preds = %b363 call void @llvm.lifetime.end.p0(i64 4000, ptr %v3) #264 call void @llvm.lifetime.end.p0(i64 4000, ptr %v2) #265 call void @llvm.lifetime.end.p0(i64 4000, ptr %v1) #266 call void @llvm.lifetime.end.p0(i64 4000, ptr %v0) #267 ret void68}69 70; Function Attrs: argmemonly nounwind71declare void @llvm.lifetime.start.p0(i64, ptr nocapture) #172 73; Function Attrs: argmemonly nounwind74declare void @llvm.lifetime.end.p0(i64, ptr nocapture) #175 76attributes #0 = { nounwind readnone "target-cpu"="hexagonv60" "target-features"="+hvxv60,+hvx-length64b" }77attributes #1 = { argmemonly nounwind }78attributes #2 = { nounwind }79 80!0 = !{!1, !1, i64 0}81!1 = !{!"float", !2, i64 0}82!2 = !{!"omnipotent char", !3, i64 0}83!3 = !{!"Simple C/C++ TBAA"}84