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
/
_dragon.ssa
blob
b169e1ba482734a28f5e581c5c3f4439d2c08915
1
# a moderately complex test for
2
# dominators computation from
3
# the dragon book
4
# because branching is limited to
5
# two, I had to split some blocks
6
7
function $dragon() {
8
@start
9
@b1
10
jnz 0, @b2, @b3
11
@b2
12
jmp @b3
13
@b3
14
jmp @b4.1
15
@b4.1
16
jnz 0, @b3, @b4.2
17
@b4.2
18
jnz 0, @b5, @b6
19
@b5
20
jmp @b7
21
@b6
22
jmp @b7
23
@b7
24
jnz 0, @b8.1, @b4.1
25
@b8.1
26
jnz 0, @b3, @b8.2
27
@b8.2
28
jnz 0, @b9, @b10
29
@b9
30
jmp @b1
31
@b10
32
jmp @b7
33
}