1 ; RUN: llc -mtriple=arm-eabi -mcpu=cortex-a8 -asm-verbose=false %s -o - | FileCheck %s
3 define zeroext i1 @test0(i32 %x) nounwind {
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
10 %cmp1 = icmp ne i32 %x, -1
11 %not.cmp = icmp ne i32 %x, 0
12 %.cmp1 = and i1 %cmp1, %not.cmp