projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Test that the instruction combiner can fold away a cast in a GEP instruction.
[oota-llvm.git]
/
test
/
Transforms
/
InstCombine
/
2003-05-27-ConstExprCrash.ll
1
; RUN: llvm-as < %s | opt -instcombine -disable-output
2
3
%X = global int 5
4
long %test() {
5
%C = add long 1, 2
6
%V = add long cast(int* %X to long), %C
7
ret long %V
8
}