repo.or.cz
/
llvm-complete.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix edge cases in handling basic block split.
[llvm-complete.git]
/
test
/
CodeGen
/
PowerPC
/
2005-10-08-ArithmeticRotate.ll
blob
edbdc4a09d019b26410cb11c6e5e2f79386b9a7a
1
; This was erroneously being turned into an rlwinm instruction.
2
; The sign bit does matter in this case.
3
4
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep srawi
5
int %test(int %X) {
6
%Y = and int %X, -2
7
%Z = shr int %Y, ubyte 11
8
ret int %Z
9
}