From 9cae1b50f1805393f00803b426a99a7bb448c84a Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Tue, 14 Sep 2021 13:53:36 -0700 Subject: qbe: Fix temporary type for < 8 byte aligned struct copies --- test/struct-copy.qbe | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') 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 } -- cgit v1.2.3