ref: c33fc43408cb22d606d2f621c34a5748cb0e2bc5
parent: 0ee5d61b71baa6d76aea3b1257a507ba496fae4a
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Thu May 25 18:51:05 EDT 2023
7l: allow byte/halfword register offset load/store
--- a/sys/src/cmd/7l/optab.c
+++ b/sys/src/cmd/7l/optab.c
@@ -161,6 +161,9 @@
{ AMOV, C_ROFF, C_NONE, C_REG, 68, 4, 0 },
{ AMOVW, C_ROFF, C_NONE, C_REG, 68, 4, 0 },
+ { AMOVH, C_ROFF, C_NONE, C_REG, 68, 4, 0 },
+ { AMOVB, C_ROFF, C_NONE, C_REG, 68, 4, 0 },
+ { AMOVBU, C_ROFF, C_NONE, C_REG, 68, 4, 0 },
{ AFMOVS, C_ROFF, C_NONE, C_FREG, 68, 4, 0 },
{ AFMOVD, C_ROFF, C_NONE, C_FREG, 68, 4, 0 },
@@ -168,6 +171,9 @@
{ AMOV, C_REG, C_NONE, C_ROFF, 69, 4, 0 },
{ AMOVW, C_REG, C_NONE, C_ROFF, 69, 4, 0 },
+ { AMOVH, C_REG, C_NONE, C_ROFF, 69, 4, 0 },
+ { AMOVB, C_REG, C_NONE, C_ROFF, 69, 4, 0 },
+ { AMOVBU, C_REG, C_NONE, C_ROFF, 69, 4, 0 },
{ AFMOVS, C_FREG, C_NONE, C_ROFF, 69, 4, 0 },
{ AFMOVD, C_FREG, C_NONE, C_ROFF, 69, 4, 0 },