repo.or.cz
/
llvm
/
avr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
pass machinemoduleinfo down into getSymbolForDwarfGlobalReference,
[llvm/avr.git]
/
test
/
Transforms
/
InstCombine
/
shl-trunc.ll
blob
84af2e3361038fccdb156b885a6cdd61f11c06d0
1
; RUN: opt < %s -instcombine -S | 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