projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add LDC compiler to list of external OS projects using LLVM 3.8
[oota-llvm.git]
/
test
/
Transforms
/
InstCombine
/
2007-03-19-BadTruncChangePR1261.ll
1
; RUN: opt < %s -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
}