repo.or.cz
/
llvm-core.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[InstCombine] Signed saturation patterns
[llvm-core.git]
/
test
/
Transforms
/
InstCombine
/
2008-03-13-IntToPtr.ll
blob
d086f4b63b7128f7e02ce6c250b0e8dd52ab0321
1
; RUN: opt < %s -instcombine -S | grep "16" | count 1
2
3
define i8* @bork(i8** %qux) {
4
%tmp275 = load i8*, i8** %qux, align 1
5
%tmp275276 = ptrtoint i8* %tmp275 to i32
6
%tmp277 = add i32 %tmp275276, 16
7
%tmp277278 = inttoptr i32 %tmp277 to i8*
8
ret i8* %tmp277278
9
}