
These tests cases were converted using the script at https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34 Differential Revision: https://reviews.llvm.org/D135094
10 lines
275 B
LLVM
10 lines
275 B
LLVM
; RUN: opt < %s -passes=instcombine -S | grep "16" | count 1
|
|
|
|
define ptr @bork(ptr %qux) {
|
|
%tmp275 = load ptr, ptr %qux, align 1
|
|
%tmp275276 = ptrtoint ptr %tmp275 to i32
|
|
%tmp277 = add i32 %tmp275276, 16
|
|
%tmp277278 = inttoptr i32 %tmp277 to ptr
|
|
ret ptr %tmp277278
|
|
}
|