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) {
9 %tmp = icmp ne i32 %a, %b
13 define i1 @f2(i32 %a, i32 %b) {
16 %tmp = icmp eq i32 %a, %b
20 define i1 @f6(i32 %a, i32 %b) {
22 ; CHECK: cmp.w r0, r1, lsl #5
24 %tmp1 = icmp eq i32 %tmp, %a
28 define i1 @f7(i32 %a, i32 %b) {
30 ; CHECK: cmp.w r0, r1, lsr #6
32 %tmp1 = icmp ne i32 %tmp, %a
36 define i1 @f8(i32 %a, i32 %b) {
38 ; CHECK: cmp.w r0, r1, asr #7
40 %tmp1 = icmp eq i32 %a, %tmp
44 define i1 @f9(i32 %a, i32 %b) {
46 ; CHECK: cmp.w r0, r0, ror #8
49 %tmp = or i32 %l8, %r8
50 %tmp1 = icmp ne i32 %a, %tmp