projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Don't restrict the set of instructions where we try to constant-fold the
[oota-llvm.git]
/
test
/
Transforms
/
InstCombine
/
shl-trunc.ll
1
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep shl
2
3
define i1 @test(i32 %X, i8 %A) {
4
%shift.upgrd.1 = zext i8 %A to i32 ; <i32> [#uses=1]
5
%B = lshr i32 %X, %shift.upgrd.1 ; <i32> [#uses=1]
6
%D = trunc i32 %B to i1 ; <i1> [#uses=1]
7
ret i1 %D
8
}
9