Use the llvm-upgrade program to upgrade llvm assembly.
[oota-llvm.git] / test / Transforms / DeadStoreElimination / PartialStore.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | opt -dse | llvm-dis | not grep 'store sbyte'
2 ; Ensure that the dead store is deleted in this case.  It is wholely
3 ; overwritten by the second store.
4 int %test() {
5         %V = alloca int
6         %V2 = cast int* %V to sbyte*
7         store sbyte 0, sbyte* %V2
8         store int 1234567, int* %V
9         %X = load int* %V
10         ret int %X
11 }