OSDN Git Service

Add Thumb-2 tests.
[android-x86/external-llvm.git] / test / CodeGen / Thumb2 / thumb2-cmp2.ll
1 ; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep {cmp\\W*r\[0-9\],\\W*r\[0-9\]} | Count 2
2
3 define i1 @f1(i32 %a, i32 %b) {
4     %tmp = icmp ne i32 %a, %b
5     ret i1 %tmp
6 }
7
8 define i1 @f2(i32 %a, i32 %b) {
9     %tmp = icmp eq i32 %a, %b
10     ret i1 %tmp
11 }