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