repo.or.cz
/
llvm.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fix a globalopt crash on two Adobe-C++ testcases that the recent
[llvm.git]
/
test
/
Transforms
/
InstCombine
/
2008-03-13-IntToPtr.ll
blob
da7e49ee847523935d8715640ac31ccae9565291
1
; RUN: opt < %s -instcombine -S | grep {16} | count 1
2
3
define i8* @bork(i8** %qux) {
4
%tmp275 = load 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
}