diff options
author | Michael Forney <mforney@mforney.org> | 2021-09-14 13:53:36 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2021-09-14 13:53:36 -0700 |
commit | 9cae1b50f1805393f00803b426a99a7bb448c84a (patch) | |
tree | 23b01c22a34779ecaa3260a39465f6b6b97cf3e3 /test | |
parent | 0fb19daa48c89745b79bbf372a03c0f5be82ebe4 (diff) |
qbe: Fix temporary type for < 8 byte aligned struct copies
Diffstat (limited to 'test')
-rw-r--r-- | test/struct-copy.qbe | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/struct-copy.qbe b/test/struct-copy.qbe index 0e0dce3..0fa624f 100644 --- a/test/struct-copy.qbe +++ b/test/struct-copy.qbe @@ -3,15 +3,15 @@ function $f() { @start.1 %.1 =l alloc4 12 @body.2 - %.2 =l loadw $x + %.2 =w loadw $x storew %.2, %.1 %.3 =l add $x, 4 %.4 =l add %.1, 4 - %.5 =l loadw %.3 + %.5 =w loadw %.3 storew %.5, %.4 %.6 =l add %.3, 4 %.7 =l add %.4, 4 - %.8 =l loadw %.6 + %.8 =w loadw %.6 storew %.8, %.7 ret } |