aboutsummaryrefslogtreecommitdiff
path: root/test/struct-return-2.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/struct-return-2.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/struct-return-2.qbe')
-rw-r--r--test/struct-return-2.qbe2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/struct-return-2.qbe b/test/struct-return-2.qbe
index 3e5a544..1e8ad27 100644
--- a/test/struct-return-2.qbe
+++ b/test/struct-return-2.qbe
@@ -8,6 +8,6 @@ function w $f() {
%.3 =l mul 4, 1
%.4 =l add %.2, %.3
%.5 =l copy %.4
- %.6 =w loadsw %.5
+ %.6 =w loadw %.5
ret %.6
}