Home | History | Annotate | Download | only in ARM
      1 ; RUN: llc < %s -mtriple thumbv7-apple-ios | FileCheck %s
      2 ; <rdar://problem/7569620>
      3 
      4 define i32 @compare_i_gt(i32 %a) {
      5 entry:
      6 ; CHECK:     compare_i_gt
      7 ; CHECK-NOT: mvn
      8 ; CHECK:     cmn
      9   %cmp = icmp sgt i32 %a, -78
     10   %. = zext i1 %cmp to i32
     11   ret i32 %.
     12 }
     13 
     14 define i32 @compare_r_eq(i32 %a, i32 %b) {
     15 entry:
     16 ; CHECK: compare_r_eq
     17 ; CHECK: cmn
     18   %sub = sub nsw i32 0, %b
     19   %cmp = icmp eq i32 %a, %sub
     20   %. = zext i1 %cmp to i32
     21   ret i32 %.
     22 }
     23