blob: edc658e8eebf0ecd1988fa4724e50b132a85b57a [file] [log] [blame]
Chris Lattner13e40b42002-07-30 00:10:05 +00001; 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: as < %s | opt -adce
Chris Lattnerd45d18d2002-07-23 18:27:20 +00007
Chris Lattner13e40b42002-07-30 00:10:05 +00008void %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
Chris Lattnerd45d18d2002-07-23 18:27:20 +000013}