53 lines · plain
1; RUN: llc -mtriple=hexagon < %s | FileCheck %s2 3; Predicated (old) taken jumps weren't supported prior to V60. The purpose4; of this test is to make sure that these instructions are not5; generated for V55.6 7; CHECK-NOT: if ({{!?}}p{{[0-3]}}) jump:t8 9%s.0 = type { ptr, i8 }10 11define i32 @f0(ptr nocapture %a0, i32 %a1) #0 {12b0:13 %v0 = and i32 %a1, 6314 %v1 = icmp eq i32 %v0, %a115 br i1 %v1, label %b1, label %b716 17b1: ; preds = %b018 %v2 = tail call ptr @f1()19 br label %b220 21b2: ; preds = %b4, %b122 %v3 = phi i32 [ %v9, %b4 ], [ 0, %b1 ]23 %v4 = phi i32 [ %v5, %b4 ], [ 0, %b1 ]24 %v5 = add i32 %v4, 125 %v6 = icmp ult i32 %v5, 726 br i1 %v6, label %b3, label %b527 28b3: ; preds = %b229 %v7 = tail call ptr @f2(ptr undef, ptr %v2)30 %v8 = icmp eq ptr %v7, null31 br i1 %v8, label %b7, label %b432 33b4: ; preds = %b334 %v9 = select i1 undef, i32 1, i32 %v335 br label %b236 37b5: ; preds = %b238 br i1 undef, label %b7, label %b639 40b6: ; preds = %b541 br label %b742 43b7: ; preds = %b6, %b5, %b3, %b044 %v10 = phi i32 [ -1, %b0 ], [ 1, %b6 ], [ %v3, %b5 ], [ -1, %b3 ]45 ret i32 %v1046}47 48declare ptr @f1()49 50declare ptr @f2(ptr, ptr)51 52attributes #0 = { nounwind "target-cpu"="hexagonv55" }53