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 "[InstCombine] Support gep nuw in icmp folds" (#118698)
[llvm-project.git]
/
llvm
/
test
/
Transforms
/
InstCombine
/
2007-03-19-BadTruncChangePR1261.ll
blob
41f20a19b7800dd17e2b49a2960e1bb0956405ff
1
; RUN: opt < %s -passes=instcombine -S | grep zext
2
; PR1261.
3
4
define i16 @test(i31 %zzz) {
5
%A = sext i31 %zzz to i32
6
%B = add i32 %A, 16384
7
%C = lshr i32 %B, 15
8
%D = trunc i32 %C to i16
9
ret i16 %D
10
}