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.
7 define i1 @f1(i32 %a) {
10 %tmp = icmp ne i32 %a, 187
14 ; 0x00aa00aa = 11141290
15 define i1 @f2(i32 %a) {
17 ; CHECK: cmp.w r0, #11141290
18 %tmp = icmp eq i32 %a, 11141290
22 ; 0xcc00cc00 = 3422604288
23 define i1 @f3(i32 %a) {
25 ; CHECK: cmp.w r0, #-872363008
26 %tmp = icmp ne i32 %a, 3422604288
30 ; 0xdddddddd = 3722304989
31 define i1 @f4(i32 %a) {
33 ; CHECK: cmp.w r0, #-572662307
34 %tmp = icmp ne i32 %a, 3722304989
38 ; 0x00110000 = 1114112
39 define i1 @f5(i32 %a) {
41 ; CHECK: cmp.w r0, #1114112
42 %tmp = icmp eq i32 %a, 1114112
46 ; Check that we don't do an invalid (a > b) --> !(a < b + 1) transform.
49 ; CHECK-NOT: cmp.w r0, #-2147483648
51 define i32 @f6(i32 %a) {
52 %tmp = icmp sgt i32 %a, 2147483647
53 br i1 %tmp, label %true, label %false