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
/
2003-05-27-ConstExprCrash.ll
blob
8645249b7caea128d94973e4337bf12a749cff65
1
; RUN: opt < %s -instcombine -disable-output
2
3
@X = global i32 5 ; <i32*> [#uses=1]
4
5
define i64 @test() {
6
%C = add i64 1, 2 ; <i64> [#uses=1]
7
%V = add i64 ptrtoint (i32* @X to i64), %C ; <i64> [#uses=1]
8
ret i64 %V
9
}
10