aboutsummaryrefslogtreecommitdiff
path: root/test/conditional-compound-literal.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/conditional-compound-literal.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/conditional-compound-literal.qbe')
-rw-r--r--test/conditional-compound-literal.qbe4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/conditional-compound-literal.qbe b/test/conditional-compound-literal.qbe
index 013d179..57358e6 100644
--- a/test/conditional-compound-literal.qbe
+++ b/test/conditional-compound-literal.qbe
@@ -11,12 +11,12 @@ function w $main() {
@cond_true.3
jmp @cond_join.5
@cond_false.4
- %.5 =w loadsw %.1
+ %.5 =w loadw %.1
storew %.5, %.4
@cond_join.5
%.6 =l phi @cond_true.3 0, @cond_false.4 %.4
storel %.6, %.2
%.7 =l loadl %.2
- %.8 =w loadsw %.7
+ %.8 =w loadw %.7
ret %.8
}