diff options
author | Michael Forney <mforney@mforney.org> | 2019-04-03 00:42:09 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2019-04-03 00:46:08 -0700 |
commit | b3865e402e426387d4cdccdcd249a02d5ba1bc05 (patch) | |
tree | c5182df0ecd07259d84fcd5a313cb295c09ab8a6 /tests/struct-return-2.qbe | |
parent | 05e2f624ebe66b4ccc471ce091b3831773bfb4db (diff) |
Make member access its own expression type
Diffstat (limited to 'tests/struct-return-2.qbe')
-rw-r--r-- | tests/struct-return-2.qbe | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/struct-return-2.qbe b/tests/struct-return-2.qbe index 415ec2f..b1990ec 100644 --- a/tests/struct-return-2.qbe +++ b/tests/struct-return-2.qbe @@ -5,10 +5,7 @@ function w $f() { @body.2 %.1 =:.1 call $g() %.2 =l copy %.1 - %.3 =l copy %.2 - %.4 =l mul 4, 1 - %.5 =l add %.3, %.4 - %.6 =l copy %.5 - %.7 =w loadsw %.6 - ret %.7 + %.3 =l add %.2, 4 + %.4 =w loadsw %.3 + ret %.4 } |