1 ; RUN: llc < %s -march=thumb -mattr=+thumb2 -join-physregs | FileCheck %s
3 ; These tests implicitly depend on 'movs r0, #0' being rematerialized below the
4 ; test as 'mov.w r0, #0'. So far, that requires physreg joining.
6 define i1 @f1(i32 %a, i32 %b) {
8 %tmp = icmp ne i32 %a, %nb
14 define i1 @f2(i32 %a, i32 %b) {
16 %tmp = icmp ne i32 %nb, %a
22 define i1 @f3(i32 %a, i32 %b) {
24 %tmp = icmp eq i32 %a, %nb
30 define i1 @f4(i32 %a, i32 %b) {
32 %tmp = icmp eq i32 %nb, %a
38 define i1 @f5(i32 %a, i32 %b) {
41 %tmp1 = icmp eq i32 %nb, %a
45 ; CHECK: cmn.w r0, r1, lsl #5
47 define i1 @f6(i32 %a, i32 %b) {
50 %tmp1 = icmp ne i32 %nb, %a
54 ; CHECK: cmn.w r0, r1, lsr #6
56 define i1 @f7(i32 %a, i32 %b) {
59 %tmp1 = icmp eq i32 %a, %nb
63 ; CHECK: cmn.w r0, r1, asr #7
65 define i1 @f8(i32 %a, i32 %b) {
68 %tmp = or i32 %l8, %r8
70 %tmp1 = icmp ne i32 %a, %nb
74 ; CHECK: cmn.w r0, r0, ror #8