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
/
2007-03-25-DoubleShift.ll
blob
0d4aac25c28f678e0c34e65535a7b129059fe674
1
; PR1271
2
; RUN: opt < %s -instcombine -S | grep and
3
define i1 @test(i32 %tmp13) {
4
entry:
5
%tmp14 = shl i32 %tmp13, 12 ; <i32> [#uses=1]
6
%tmp15 = lshr i32 %tmp14, 12 ; <i32> [#uses=1]
7
%res = icmp ne i32 %tmp15, 0 ; <i1>:3 [#uses=1]
8
ret i1 %res
9
}