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
fix unintended assignment
[qbe.git]
/
test
/
_spill1.ssa
blob
df5e4c28aa6da77d73583bdbf72df8ad62e92e81
1
# test with NReg == 3
2
# there must be a spill
3
# happening on %c
4
#
5
# if you replace the sub
6
# by an add or comment
7
# the two marked lines
8
# there should be no
9
# spill
10
#
11
12
function $test() {
13
@start
14
%f =w copy 0 # here
15
%b =w copy 1
16
%c =w copy 2
17
%a =w sub %b, %c
18
%d =w copy %b
19
%e =w copy %f # and there
20
%g =w copy %a
21
ret
22
}