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-26-CastMiscompile.ll
1
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep 4294967295
2
3
ulong %test(ulong %Val) {
4
%tmp.3 = cast ulong %Val to uint ; <uint> [#uses=1]
5
%tmp.8 = cast uint %tmp.3 to ulong ; <ulong> [#uses=1]
6
ret ulong %tmp.8
7
}