1 ; RUN: llc -mtriple=thumb-eabi -mcpu=arm1156t2-s -mattr=+thumb2 %s -o - | FileCheck %s
3 ; These tests would be improved by 'movs r0, #0' being rematerialized below the
4 ; tst as 'mov.w r0, #0'.
7 define i1 @f2(i32 %a) {
9 %tmp1 = icmp eq i32 0, %tmp
13 ; CHECK: tst.w {{.*}}, #187
15 ; 0x00aa00aa = 11141290
16 define i1 @f3(i32 %a) {
17 %tmp = and i32 %a, 11141290
18 %tmp1 = icmp eq i32 %tmp, 0
22 ; CHECK: tst.w {{.*}}, #11141290
24 ; 0xcc00cc00 = 3422604288
25 define i1 @f6(i32 %a) {
26 %tmp = and i32 %a, 3422604288
27 %tmp1 = icmp eq i32 0, %tmp
31 ; CHECK: tst.w {{.*}}, #-872363008
33 ; 0xdddddddd = 3722304989
34 define i1 @f7(i32 %a) {
35 %tmp = and i32 %a, 3722304989
36 %tmp1 = icmp eq i32 %tmp, 0
40 ; CHECK: tst.w {{.*}}, #-572662307
42 ; 0x00110000 = 1114112
43 define i1 @f10(i32 %a) {
44 %tmp = and i32 %a, 1114112
45 %tmp1 = icmp eq i32 0, %tmp
49 ; CHECK: tst.w {{.*}}, #1114112