1 ; RUN: llc -march=hexagon < %s
3 ; Check that branch probabilities are set correctly after performing the
4 ; simple variant of if-conversion. The converted block has a branch that
7 target triple = "hexagon"
12 ; CHECK: if (p0.new) jump:nt foo
13 define void @danny(i32 %x) {
14 %t0 = icmp sgt i32 %x, 0
15 br i1 %t0, label %tail, label %exit, !prof !0
17 tail call void @foo();
24 ; CHECK: if (!p0.new) jump:t foo
25 define void @sammy(i32 %x) {
26 %t0 = icmp sgt i32 %x, 0
27 br i1 %t0, label %exit, label %tail, !prof !0
29 tail call void @foo();
35 !0 = !{!"branch_weights", i32 1, i32 2000}