1 ; Test conditional branch where targets are the same. 2 ; Tests issue: https://code.google.com/p/nativeclient/issues/detail?id=4212 3 ; REQUIRES: allow_dump 4 5 ; RUN: %p2i -i %s --insts | FileCheck %s 6 7 define internal void @f(i32 %foo, i32 %bar) { 8 entry: 9 %c = icmp ult i32 %foo, %bar 10 br i1 %c, label %block, label %block 11 block: 12 ret void 13 } 14 15 ; Note that the branch is converted to an unconditional branch. 16 17 ; CHECK: define internal void @f(i32 %foo, i32 %bar) { 18 ; CHECK-NEXT: entry: 19 ; CHECK-NEXT: %c = icmp ult i32 %foo, %bar 20 ; CHECK-NEXT: br label %block 21 ; CHECK-NEXT: block: 22 ; CHECK-NEXT: ret void 23 ; CHECK-NEXT: } 24