1 ; RUN: llvm-as < %s | llc -march=thumb -mattr=+thumb2
3 define i1 @test1(i64 %poscnt, i32 %work) {
6 ; CHECK: lsrs.w r1, r1, #1
7 %0 = lshr i64 %poscnt, 1
12 define i1 @test2(i64 %poscnt, i32 %work) {
15 ; CHECK: asrs.w r1, r1, #1
16 %0 = ashr i64 %poscnt, 1
17 %1 = icmp eq i64 %0, 0