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
relax one assert
[qbe.git]
/
test
/
_spill3.ssa
blob
cdfda2d339f09017c32b5c522befec266b8bbcd1
1
# make sure comparisons
2
# never get their two
3
# operands in memory
4
# run with NReg == 3, or
5
# adapt it!
6
7
function $test() {
8
@start
9
%a =w loadw $a
10
%b =w loadw $a
11
12
@loop
13
%c =w phi @start 0, @loop %f
14
%d =w phi @start 0, @loop %g
15
%e =w phi @start 0, @loop %h
16
%f =w add %c, %d
17
%g =w add %c, %e
18
%h =w add %e, %d
19
%x =w cslew %a, %b
20
jnz %x, @loop, @end
21
22
@end
23
ret
24
}