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
/
cmp1.ssa
blob
dd5bfa165f63ef5c7f771f7b53503db5160e11fd
1
# test cmp used in jnz as well as its result value
2
3
export
4
function w $test(w %c) {
5
@start
6
%cmp =w cultw 1, %c
7
jnz %cmp, @yes, @no
8
@yes
9
%cmp =w copy 1
10
@no
11
ret %cmp
12
}
13
14
# >>> driver
15
# int test(int);
16
# int main(void) { return test(0); }
17
# <<<