This implements the second half of the fix for PR3290, handling
[oota-llvm.git] / test / Transforms / InstCombine / 2003-10-23-InstcombineNullFail.ll
1 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep false
2 ;
3 ; This actually looks like a constant propagation bug
4
5 %X = type { [10 x i32], float }
6
7 define i1 @test() {
8         %A = getelementptr %X* null, i64 0, i32 0, i64 0                ; <i32*> [#uses=1]
9         %B = icmp ne i32* %A, null              ; <i1> [#uses=1]
10         ret i1 %B
11 }
12