| 1 |
; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- |
| 2 |
|
| 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 |
|
| 7 |
define void @GrayATo32ARGBTabB(ptr %baseAddr, ptr %cmp, i32 %rowBytes) nounwind { |
| 8 |
entry: |
| 9 |
br label %bb1 |
| 10 |
|
| 11 |
bb1: ; preds = %bb1, %entry |
| 12 |
%0 = load i16, ptr 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, ptr null, i32 %2 ; <ptr> [#uses=1] |
| 16 |
%4 = load i8, ptr %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, ptr null, align 4 |
| 21 |
br label %bb1 |
| 22 |
} |