When turning a call to a bitcast function into a direct call,
[oota-llvm.git] / test / Transforms / InstCombine / cast-propagate.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -mem2reg | llvm-dis | \
2 ; RUN:    not grep load
3
4 int %test1(uint* %P) {
5         %A = alloca uint 
6         store uint 123, uint* %A
7         %Q = cast uint* %A to int*    ; Cast the result of the load not the source
8         %V = load int* %Q
9         ret int %V
10 }