mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-24 06:30:19 +00:00
fce288fc91
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81293 91177308-0d34-0410-b5e6-96231b3b80d8
20 lines
366 B
LLVM
20 lines
366 B
LLVM
; RUN: llc < %s -march=thumb -mattr=+thumb2
|
|
|
|
define i1 @test1(i64 %poscnt, i32 %work) {
|
|
entry:
|
|
; CHECK: rrx r0, r0
|
|
; CHECK: lsrs.w r1, r1, #1
|
|
%0 = lshr i64 %poscnt, 1
|
|
%1 = icmp eq i64 %0, 0
|
|
ret i1 %1
|
|
}
|
|
|
|
define i1 @test2(i64 %poscnt, i32 %work) {
|
|
entry:
|
|
; CHECK: rrx r0, r0
|
|
; CHECK: asrs.w r1, r1, #1
|
|
%0 = ashr i64 %poscnt, 1
|
|
%1 = icmp eq i64 %0, 0
|
|
ret i1 %1
|
|
}
|