Home | History | Annotate | Download | only in ARM
      1 ; RUN: llc -mtriple=arm-eabi -mcpu=cortex-a8 -asm-verbose=false %s -o - | FileCheck %s
      2 
      3 define zeroext i1 @test0(i32 %x) nounwind {
      4 ; CHECK-LABEL: test0:
      5 ; CHECK: add [[REG:(r[0-9]+)|(lr)]], r0, #1
      6 ; CHECK-NEXT: mov r0, #0
      7 ; CHECK-NEXT: cmp [[REG]], #1
      8 ; CHECK-NEXT: movwhi r0, #1
      9 ; CHECK-NEXT: bx  lr
     10   %cmp1 = icmp ne i32 %x, -1
     11   %not.cmp = icmp ne i32 %x, 0
     12   %.cmp1 = and i1 %cmp1, %not.cmp
     13   ret i1 %.cmp1
     14 }
     15