repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[AArch64][NFC] NFC for const vector as Instruction operand (#116790)
[llvm-project.git]
/
llvm
/
test
/
Transforms
/
InstCombine
/
IntPtrCast.ll
blob
a86d7ccde8b605ea1bbfd215a9c4b6e9361d767d
1
; RUN: opt < %s -passes=instcombine -S | FileCheck %s
2
target datalayout = "e-p:32:32"
3
4
define ptr @test(ptr %P) {
5
%V = ptrtoint ptr %P to i32 ; <i32> [#uses=1]
6
%P2 = inttoptr i32 %V to ptr ; <ptr> [#uses=1]
7
ret ptr %P2
8
; CHECK: ret ptr %P
9
}
10