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
/
zeroext-and-reduce.ll
1
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | \
2
; RUN: grep {and i32 %Y, 8}
3
4
define i32 @test1(i8 %X) {
5
%Y = zext i8 %X to i32 ; <i32> [#uses=1]
6
%Z = and i32 %Y, 65544 ; <i32> [#uses=1]
7
ret i32 %Z
8
}
9
10