
These tests cases were converted using the script at https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34 Differential Revision: https://reviews.llvm.org/D135094
9 lines
189 B
LLVM
9 lines
189 B
LLVM
; RUN: opt < %s -passes=instcombine
|
|
; PR2940
|
|
|
|
define i32 @tstid() {
|
|
%var0 = inttoptr i32 1 to ptr ; <ptr> [#uses=1]
|
|
%var2 = ptrtoint ptr %var0 to i32 ; <i32> [#uses=1]
|
|
ret i32 %var2
|
|
}
|