repo.or.cz
/
qbe.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
arm64/isel: Avoid signed overflow when handling immediates
[qbe.git]
/
test
/
dynalloc.ssa
blob
7c54e8877cdad9e2d14c54a661ebef1dc95dda15
1
# make sure dynamic allocations
2
# and caller-save regs interact
3
# soundly
4
5
function $g() {
6
@start
7
ret
8
}
9
10
function w $f(w %arg) {
11
@start
12
call $g()
13
@alloc
14
%r =l alloc8 16
15
storel 180388626474, %r
16
%r8 =l add 8, %r
17
storel 180388626474, %r8
18
ret %arg
19
}
20
21
export
22
function w $main() {
23
@start
24
%a =w call $f(w 0)
25
%b =w call $f(w 0)
26
ret %a
27
}