aboutsummaryrefslogtreecommitdiff
path: root/test/do-loop.qbe
diff options
context:
space:
mode:
Diffstat (limited to 'test/do-loop.qbe')
-rw-r--r--test/do-loop.qbe9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/do-loop.qbe b/test/do-loop.qbe
index 698e310..d31c80c 100644
--- a/test/do-loop.qbe
+++ b/test/do-loop.qbe
@@ -23,9 +23,10 @@ function w $main() {
%.10 =w loadsw %.1
%.11 =w sub %.10, 1
storew %.11, %.1
- jnz %.10, @do_body.3, @do_join.5
+ %.12 =w cnew %.10, 0
+ jnz %.12, @do_body.3, @do_join.5
@do_join.5
- %.12 =w loadsw %.3
- %.13 =w cnew %.12, 2
- ret %.13
+ %.13 =w loadsw %.3
+ %.14 =w cnew %.13, 2
+ ret %.14
}