We have a chance for an optimization. Consider this code:
[oota-llvm.git] / test / CodeGen / ARM / mvncc.ll
1 ; RUN: llc < %s -mtriple=arm-apple-darwin | FileCheck %s
2
3 define i32 @f1(i32 %t) nounwind {
4 ; CHECK: f1
5 ; CHECK-NOT: tst
6 ; CHECK: and
7 ; CHECK: mvnne
8   %and = and i32 %t, 256
9   %tobool = icmp eq i32 %and, 0
10   %retval.0 = select i1 %tobool, i32 0, i32 -26
11   ret i32 %retval.0
12 }