1; RUN: llc < %s -march=thumb -mattr=+thumb2 | FileCheck %s 2 3define i1 @test1(i64 %poscnt, i32 %work) { 4entry: 5; CHECK: lsrs.w r1, r1, #1 6; CHECK: rrx r0, r0 7 %0 = lshr i64 %poscnt, 1 8 %1 = icmp eq i64 %0, 0 9 ret i1 %1 10} 11 12define i1 @test2(i64 %poscnt, i32 %work) { 13entry: 14; CHECK: asrs.w r1, r1, #1 15; CHECK: rrx r0, r0 16 %0 = ashr i64 %poscnt, 1 17 %1 = icmp eq i64 %0, 0 18 ret i1 %1 19} 20