Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Dec 19th, 2018
207
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
LLVM
0.60 KB
| None
|
0
0
raw
download
clone
embed
print
report
define
i64
@test2
(
i64
%X
,
i32
%Y
)
{
; CHECK-LABEL: @test2(
; CHECK-NOT: alloca
; CHECK: ret i64 %X
entry
:
%stack
=
alloca
[
100
x
i8
]
;%A64 = bitcast [100 x i8]* %stack to i64*
%A
=
getelementptr
inbounds
[
100
x
i8
]
,
[
100
x
i8
]
*
%stack
,
i64
0
,
i64
8
%A64
=
bitcast
i8
*
%A
to
i64
*
%B
=
getelementptr
inbounds
[
100
x
i8
]
,
[
100
x
i8
]
*
%stack
,
i64
0
,
i64
16
%B32
=
bitcast
i8
*
%B
to
i32
*
store
i64
%X
,
i64
*
%A64
;store i32 %Y, i32* %B32
br
label
%L2
L2
:
%Z
=
load
i64
,
i64
*
%A64
%W
=
load
i32
,
i32
*
%B32
%WW
=
zext
i32
%W
to
i64
%R
=
add
i64
%Z
,
%WW
ret
i64
%R
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
✅ Swapzone Exploit
CSS | 25 min ago | 0.94 KB
Free Crypto Exploit
CSS | 26 min ago | 0.94 KB
Untitled
1 hour ago | 17.07 KB
Proxmox - Disable laptop lid and sleep
Bash | 2 hours ago | 7.35 KB
Untitled
3 hours ago | 9.97 KB
Untitled
5 hours ago | 10.51 KB
Untitled
7 hours ago | 11.48 KB
Untitled
9 hours ago | 10.22 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!