Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Dec 19th, 2018
233
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
Untitled
C | 1 day ago | 0.88 KB
acg
2 days ago | 0.05 KB
AI_Learng_Resources_Free
4 days ago | 0.26 KB
O: NOS Task Manager Recording Issue Of Late N...
5 days ago | 1.28 KB
En USA & PR
5 days ago | 4.96 KB
Inmigración Islámica Europa
5 days ago | 3.74 KB
Untitled
5 days ago | 0.51 KB
biplas v38 - Herb gardeners and slower zeppel...
5 days ago | 0.72 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!