aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/struct-return-2.qbe9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/struct-return-2.qbe b/tests/struct-return-2.qbe
index b1990ec..415ec2f 100644
--- a/tests/struct-return-2.qbe
+++ b/tests/struct-return-2.qbe
@@ -5,7 +5,10 @@ function w $f() {
@body.2
%.1 =:.1 call $g()
%.2 =l copy %.1
- %.3 =l add %.2, 4
- %.4 =w loadsw %.3
- ret %.4
+ %.3 =l copy %.2
+ %.4 =l mul 4, 1
+ %.5 =l add %.3, %.4
+ %.6 =l copy %.5
+ %.7 =w loadsw %.6
+ ret %.7
}