commit bda9f2833c39ea5f4266dbcb4506ed8895e22d3f
parent a9a70e30a8205a8f835c59fd8297e4a4483cc8d4
Author: Quentin Carbonneaux <quentin@c9x.me>
Date: Wed, 24 Aug 2022 16:19:01 +0200
refine width of parsb/ub/sh/uh ops
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/ssa.c b/ssa.c
@@ -77,6 +77,8 @@ filluse(Fn *fn)
if (!req(i->to, R)) {
assert(rtype(i->to) == RTmp);
w = WFull;
+ if (isparbh(i->op))
+ w = Wsb + (i->op - Oparsb);
if (isload(i->op) && i->op != Oload)
w = Wsb + (i->op - Oloadsb);
if (isext(i->op))