1; RUN: llc -march=arc < %s | FileCheck %s 2 3; CHECK-LABEL: brcc1: 4; CHECK: brne %r0, %r1, @.LBB0_2 5; CHECK: add %r0, %r0, 4 6; CHECK: .LBB0_2: 7define i32 @brcc1(i32 %a, i32 %b) nounwind { 8entry: 9 %wb = icmp eq i32 %a, %b 10 br i1 %wb, label %t1, label %t2 11t1: 12 %t1v = add i32 %a, 4 13 br label %exit 14t2: 15 %t2v = add i32 %b, 8 16 br label %exit 17exit: 18 %v = phi i32 [ %t1v, %t1 ], [ %t2v, %t2 ] 19 ret i32 %v 20} 21 22; CHECK-LABEL: brcc2 23; CHECK: breq %r0, %r1 24define i32 @brcc2(i32 %a, i32 %b) nounwind { 25entry: 26 %wb = icmp ne i32 %a, %b 27 br i1 %wb, label %t1, label %t2 28t1: 29 %t1v = add i32 %a, 4 30 br label %exit 31t2: 32 %t2v = add i32 %b, 8 33 br label %exit 34exit: 35 %v = phi i32 [ %t1v, %t1 ], [ %t2v, %t2 ] 36 ret i32 %v 37} 38 39 40