Home | History | Annotate | Download | only in ARM
      1 ; RUN: llc < %s -march=arm -mcpu=cortex-a8 | FileCheck %s -check-prefix=A8
      2 ; RUN: llc < %s -march=arm -mcpu=swift     | FileCheck %s -check-prefix=SWIFT
      3 
      4 define i32 @t1(i32 %a, i32 %b) {
      5 ; A8-LABEL: t1:
      6 ; SWIFT-LABEL: t1:
      7 	%tmp2 = icmp eq i32 %a, 0
      8 	br i1 %tmp2, label %cond_false, label %cond_true
      9 
     10 cond_true:
     11 ; A8: subeq r0, r1, #1
     12 ; SWIFT: sub r0, r1, #1
     13 	%tmp5 = add i32 %b, 1
     14 	ret i32 %tmp5
     15 
     16 cond_false:
     17 ; A8: addne r0, r1, #1
     18 ; SWIFT: addne r0, r1, #1
     19 	%tmp7 = add i32 %b, -1
     20 	ret i32 %tmp7
     21 }
     22