projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
The transform that tries to turn calls to bitcast functions into
[oota-llvm.git]
/
test
/
Transforms
/
InstCombine
/
zeroext-and-reduce.ll
1
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
2
; RUN: grep {and i32 %Y, 8}
3
4
int %test1(ubyte %X) {
5
%Y = cast ubyte %X to int
6
%Z = and int %Y, 65544 ;; Prune this to and Y, 8
7
ret int %Z
8
}
9