2014-04-03 23:47:24 +00:00
|
|
|
; RUN: llc -mtriple=thumb-eabi -mcpu=arm1156t2-s -mattr=+thumb2 %s -o - | FileCheck %s
|
2009-07-28 17:06:49 +00:00
|
|
|
|
|
|
|
define i1 @test1(i64 %poscnt, i32 %work) {
|
|
|
|
entry:
|
|
|
|
; CHECK: lsrs.w r1, r1, #1
|
2011-04-25 10:12:01 +00:00
|
|
|
; CHECK: rrx r0, r0
|
2009-07-28 17:06:49 +00:00
|
|
|
%0 = lshr i64 %poscnt, 1
|
|
|
|
%1 = icmp eq i64 %0, 0
|
|
|
|
ret i1 %1
|
|
|
|
}
|
|
|
|
|
|
|
|
define i1 @test2(i64 %poscnt, i32 %work) {
|
|
|
|
entry:
|
|
|
|
; CHECK: asrs.w r1, r1, #1
|
2011-04-25 10:12:01 +00:00
|
|
|
; CHECK: rrx r0, r0
|
2009-07-28 17:06:49 +00:00
|
|
|
%0 = ashr i64 %poscnt, 1
|
|
|
|
%1 = icmp eq i64 %0, 0
|
|
|
|
ret i1 %1
|
|
|
|
}
|