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