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
simplify 8*x as well as x*8
[qbe.git]
/
test
/
cup.ssa
blob
b53c86e59def2fc9e071277f9777c0e684db074f
1
# counts up from -1988 to 1991
2
3
export
4
function $test() {
5
@start
6
@loop
7
%n0 =l phi @start -1988, @loop %n1
8
%n1 =l add 1, %n0
9
%cmp =w cslel 1991, %n1
10
jnz %cmp, @end, @loop
11
@end
12
ret
13
}
14
15
# >>> driver
16
# extern void test(void);
17
# int main() { test(); return 0; }
18
# <<<