Use the llvm-upgrade program to upgrade llvm assembly.
[oota-llvm.git] / test / Transforms / InstCombine / cast-propagate.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | 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 }