35 lines · plain
1; RUN: llc -mtriple=hexagon -enable-pipeliner -fp-contract=fast < %s2; REQUIRES: asserts3 4; Test that the code which reuses existing Phis works when the Phis are used5; in multiple stages. In this case, one can be reused, but the other must be6; generated.7 8; Function Attrs: nounwind9define void @f0(i32 %a0) #0 {10b0:11 %v0 = icmp sgt i32 %a0, 012 br i1 %v0, label %b1, label %b213 14b1: ; preds = %b1, %b015 %v1 = phi i32 [ %v11, %b1 ], [ 0, %b0 ]16 %v2 = phi float [ %v4, %b1 ], [ undef, %b0 ]17 %v3 = phi float [ %v2, %b1 ], [ undef, %b0 ]18 %v4 = load float, ptr undef, align 419 %v5 = fmul float %v4, 0x3FEFAA000000000020 %v6 = fadd float undef, %v521 %v7 = fmul float %v2, 0xBFFFAA000000000022 %v8 = fadd float %v7, %v623 %v9 = fmul float %v3, 0x3FEFAA000000000024 %v10 = fadd float %v9, %v825 store float %v10, ptr undef, align 426 %v11 = add nsw i32 %v1, 127 %v12 = icmp eq i32 %v11, %a028 br i1 %v12, label %b2, label %b129 30b2: ; preds = %b1, %b031 ret void32}33 34attributes #0 = { nounwind "target-cpu"="hexagonv55" }35