1; RUN: opt < %s -instcombine -disable-output
2
3@X = global i32 5               ; <i32*> [#uses=1]
4
5define i64 @test() {
6        %C = add i64 1, 2               ; <i64> [#uses=1]
7        %V = add i64 ptrtoint (i32* @X to i64), %C              ; <i64> [#uses=1]
8        ret i64 %V
9}
10
11