[InstCombine] X - 0 is equal to X, not undef
[oota-llvm.git] / test / Transforms / InstCombine / 2004-05-07-UnsizedCastLoad.ll
1 ; RUN: opt < %s -instcombine -disable-output
2
3 %Ty = type opaque
4
5 define i32 @test(%Ty* %X) {
6         %Y = bitcast %Ty* %X to i32*            ; <i32*> [#uses=1]
7         %Z = load i32, i32* %Y               ; <i32> [#uses=1]
8         ret i32 %Z
9 }
10