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
arm64/isel: Avoid signed overflow when handling immediates
[qbe.git]
/
test
/
_fix3.ssa
blob
283e5a1c84d73d96059af6bec606e98355e315c8
1
function w $test() {
2
@start
3
%x =w copy 100
4
%s =w copy 0
5
@l
6
%c =w cslew %x, 10
7
jnz %c, @a, @b
8
@a
9
%s =w add %s, %x
10
%x =w sub %x, 1
11
jmp @c
12
@b
13
%s =w sub %s, %x
14
jmp @c
15
@c
16
%x =w sub %x, 1
17
jnz %x, @l, @end
18
@end
19
ret %s
20
}