projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add incoming value from header only if phi node has any use inside the loop.
[oota-llvm.git]
/
test
/
Transforms
/
InstCombine
/
apint-shl-trunc.ll
1
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep shl
2
; END.
3
4
define i1 @test0(i39 %X, i39 %A) {
5
%B = lshr i39 %X, %A
6
%D = trunc i39 %B to i1
7
ret i1 %D
8
}
9
10
define i1 @test1(i799 %X, i799 %A) {
11
%B = lshr i799 %X, %A
12
%D = trunc i799 %B to i1
13
ret i1 %D
14
}