Use the llvm-upgrade program to upgrade llvm assembly.
[oota-llvm.git] / test / Transforms / ADCE / 2002-07-17-AssertionFailure.ll
1 ; This testcase fails because ADCE does not correctly delete the chain of 
2 ; three instructions that are dead here.  Ironically there were a dead basic
3 ; block in this function, it would work fine, but that would be the part we 
4 ; have to fix now, wouldn't it....
5 ;
6 ; RUN: llvm-upgrade < %s | llvm-as | opt -adce
7
8 void %foo(sbyte* %reg5481) {
9         %cast611 = cast sbyte* %reg5481 to sbyte**              ; <sbyte**> [#uses=1]
10         %reg162 = load sbyte** %cast611         ; <sbyte*> [#uses=0]
11         cast sbyte*%reg162 to int
12         ret void
13 }