repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Revert " [LoongArch][ISel] Check the number of sign bits in `PatGprGpr_32` (#107432)"
[llvm-project.git]
/
llvm
/
test
/
CodeGen
/
Lanai
/
rshift64.ll
blob
2009edd001c8d64ed9e4313b9c7a2d2949f3af8f
1
; RUN: llc < %s -mtriple=lanai-unknown-unknown | FileCheck %s
2
3
; Test right-shift i64 lowering does not result in call being inserted.
4
5
; CHECK-LABEL: shift
6
; CHECK-NOT: bt __lshrdi3
7
; CHECK: %rv
8
define i64 @shift(i64 inreg, i32 inreg) {
9
%3 = zext i32 %1 to i64
10
%4 = lshr i64 %0, %3
11
ret i64 %4
12
}