mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
b2992c34b5
lit needs a linter ... llvm-svn: 130126
20 lines
381 B
LLVM
20 lines
381 B
LLVM
; RUN: llc < %s -march=thumb -mattr=+thumb2 | FileCheck %s
|
|
|
|
define i1 @test1(i64 %poscnt, i32 %work) {
|
|
entry:
|
|
; CHECK: lsrs.w r1, r1, #1
|
|
; CHECK: rrx r0, r0
|
|
%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
|
|
; CHECK: rrx r0, r0
|
|
%0 = ashr i64 %poscnt, 1
|
|
%1 = icmp eq i64 %0, 0
|
|
ret i1 %1
|
|
}
|