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