aboutsummaryrefslogtreecommitdiff
path: root/test/for-loop.qbe
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2021-07-01 13:25:30 -0700
committerMichael Forney <mforney@mforney.org>2021-07-01 13:30:16 -0700
commit1647af781a279c070a1cd99fc8aeae1be9795084 (patch)
treefc55f3d89b065347e28117035629df4116aa4327 /test/for-loop.qbe
parentb4f89ba90b6ca3233cc80aef9d42055266fac8df (diff)
qbe: Remove unnecessary distinction between loaduw and loadsw
We always store the result to a w temporary, so there is no difference. In fact, QBE provides loadw as an alias for loadsw precisely for this reason.
Diffstat (limited to 'test/for-loop.qbe')
-rw-r--r--test/for-loop.qbe6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/for-loop.qbe b/test/for-loop.qbe
index 56b38b1..6214434 100644
--- a/test/for-loop.qbe
+++ b/test/for-loop.qbe
@@ -5,14 +5,14 @@ function $f() {
@body.2
storew 0, %.1
@for_cond.3
- %.2 =w loadsw %.1
+ %.2 =w loadw %.1
%.3 =w csltw %.2, 10
jnz %.3, @for_body.4, @for_join.6
@for_body.4
- %.4 =w loadsw %.1
+ %.4 =w loadw %.1
call $g(w %.4)
@for_cont.5
- %.5 =w loadsw %.1
+ %.5 =w loadw %.1
%.6 =w add %.5, 1
storew %.6, %.1
jmp @for_cond.3