1 ; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep {teq\\.w\\W*r\[0-9\],\\W*r\[0-9\]$} | count 4
2 ; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep {teq\\.w\\W*r\[0-9\],\\W*r\[0-9\],\\W*lsl\\W*#5$} | count 1
3 ; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep {teq\\.w\\W*r\[0-9\],\\W*r\[0-9\],\\W*lsr\\W*#6$} | count 1
4 ; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep {teq\\.w\\W*r\[0-9\],\\W*r\[0-9\],\\W*asr\\W*#7$} | count 1
5 ; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2 | grep {teq\\.w\\W*r\[0-9\],\\W*r\[0-9\],\\W*ror\\W*#8$} | count 1
7 define i1 @f1(i32 %a, i32 %b) {
9 %tmp1 = icmp ne i32 %tmp, 0
13 define i1 @f2(i32 %a, i32 %b) {
15 %tmp1 = icmp eq i32 %tmp, 0
19 define i1 @f3(i32 %a, i32 %b) {
21 %tmp1 = icmp ne i32 0, %tmp
25 define i1 @f4(i32 %a, i32 %b) {
27 %tmp1 = icmp eq i32 0, %tmp
31 define i1 @f6(i32 %a, i32 %b) {
33 %tmp1 = xor i32 %a, %tmp
34 %tmp2 = icmp eq i32 %tmp1, 0
38 define i1 @f7(i32 %a, i32 %b) {
40 %tmp1 = xor i32 %a, %tmp
41 %tmp2 = icmp eq i32 %tmp1, 0
45 define i1 @f8(i32 %a, i32 %b) {
47 %tmp1 = xor i32 %a, %tmp
48 %tmp2 = icmp eq i32 %tmp1, 0
52 define i1 @f9(i32 %a, i32 %b) {
55 %tmp = or i32 %l8, %r8
56 %tmp1 = xor i32 %a, %tmp
57 %tmp2 = icmp eq i32 %tmp1, 0