blob: a26c21154824a95de66ffb89f7f612d7557fc0f4 [file] [log] [blame]
Dan Gohmanfce288f2009-09-09 00:09:15 +00001; RUN: llc < %s -march=ppc32
Dan Gohman33a9cb42008-11-05 22:56:47 +00002
3; The DAGCombiner leaves behind a dead node in this testcase. Currently
4; ISel is ignoring dead nodes, though it would be preferable for
5; DAGCombiner to be able to eliminate the dead node.
6
7define void @GrayATo32ARGBTabB(i8* %baseAddr, i16** %cmp, i32 %rowBytes) nounwind {
8entry:
9 br label %bb1
10
11bb1: ; preds = %bb1, %entry
12 %0 = load i16* null, align 2 ; <i16> [#uses=1]
13 %1 = ashr i16 %0, 4 ; <i16> [#uses=1]
14 %2 = sext i16 %1 to i32 ; <i32> [#uses=1]
15 %3 = getelementptr i8* null, i32 %2 ; <i8*> [#uses=1]
16 %4 = load i8* %3, align 1 ; <i8> [#uses=1]
17 %5 = zext i8 %4 to i32 ; <i32> [#uses=1]
18 %6 = shl i32 %5, 24 ; <i32> [#uses=1]
19 %7 = or i32 0, %6 ; <i32> [#uses=1]
20 store i32 %7, i32* null, align 4
21 br label %bb1
22}