34 lines · plain
1; RUN: llc -mtriple=hexagon < %s | FileCheck %s2 3; Check that this doesn't crash.4; CHECK: jumpr r315 6target triple = "hexagon"7 8define void @f0(ptr %p) #0 {9b0:10 br label %b111 12b1: ; preds = %b0, %b113 %v0 = phi i32 [ %v9, %b1 ], [ 0, %b0 ]14 %v1 = zext i32 %v0 to i6415 %v2 = getelementptr inbounds float, ptr %p, i64 %v116 store float poison, ptr %v2, align 1617 %v3 = or i32 %v0, 318 %v4 = zext i32 %v3 to i6419 %v5 = getelementptr inbounds float, ptr %p, i64 %v420 store float poison, ptr %v5, align 421 %v6 = add nuw nsw i32 %v0, 422 %v7 = icmp ult i32 %v3, 6323 %v8 = select i1 %v7, i1 true, i1 false24 %v9 = select i1 %v7, i32 %v6, i32 025 br i1 %v8, label %b1, label %b2, !prof !026 27b2:28 ret void29}30 31attributes #0 = { "target-features"="+hvxv69,+hvx-length128b,+hvx-qfloat,-hvx-ieee-fp" }32 33!0 = !{!"branch_weights", i32 -2147481600, i32 2048}34