31 lines · plain
1; RUN: llc -mtriple=hexagon -enable-pipeliner < %s -pipeliner-experimental-cg=true | FileCheck %s2 3; A test that the Phi rewrite logic is correct.4 5; CHECK: [[REG0:(r[0-9]+)]] = #06; CHECK: loop0(.LBB0_[[LOOP:.]],7; CHECK: .LBB0_[[LOOP]]:8; CHECK: memh([[REG0]]+#0) = #09 10define void @f0(i32 %a0) #0 {11b0:12 %v0 = add i32 %a0, -413 br label %b114 15b1: ; preds = %b1, %b016 %v1 = phi ptr [ %v4, %b1 ], [ null, %b0 ]17 %v2 = phi i32 [ %v5, %b1 ], [ 0, %b0 ]18 %v3 = getelementptr inbounds i16, ptr %v1, i32 119 store i16 0, ptr %v1, align 220 %v4 = getelementptr inbounds i16, ptr %v1, i32 221 store i16 0, ptr %v3, align 222 %v5 = add nsw i32 %v2, 823 %v6 = icmp slt i32 %v5, %v024 br i1 %v6, label %b1, label %b225 26b2: ; preds = %b127 ret void28}29 30attributes #0 = { nounwind "target-cpu"="hexagonv55" }31