repo.or.cz
/
llvm-core.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[InstCombine] Signed saturation patterns
[llvm-core.git]
/
test
/
Transforms
/
InstCombine
/
2004-11-22-Missed-and-fold.ll
blob
730fdc26aabd56d7182012359540be907753b7d0
1
; RUN: opt < %s -instcombine -S | not grep and
2
3
define i8 @test21(i8 %A) {
4
;; sign extend
5
%C = ashr i8 %A, 7 ; <i8> [#uses=1]
6
;; chop off sign
7
%D = and i8 %C, 1 ; <i8> [#uses=1]
8
ret i8 %D
9
}
10