From bda9f2833c39ea5f4266dbcb4506ed8895e22d3f Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Wed, 24 Aug 2022 16:19:01 +0200 Subject: refine width of parsb/ub/sh/uh ops --- ssa.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ssa.c b/ssa.c index 2de02d1..126113d 100644 --- 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)) -- cgit 1.4.1