1; RUN: opt < %s -instcombine 2; PR2940 3 4define i32 @tstid() { 5 %var0 = inttoptr i32 1 to i8* ; <i8*> [#uses=1] 6 %var2 = ptrtoint i8* %var0 to i32 ; <i32> [#uses=1] 7 ret i32 %var2 8} 9