From 106fe60243bd61d017d28795f6eba68fecc981b4 Mon Sep 17 00:00:00 2001 From: lemon Date: Mon, 12 Jun 2023 19:16:39 +0200 Subject: dec,inc,sub --- regalloc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'regalloc.c') diff --git a/regalloc.c b/regalloc.c index f03c33c..f001fee 100644 --- a/regalloc.c +++ b/regalloc.c @@ -219,6 +219,7 @@ regalloc(struct function *fn) /* an in-place operation where the destination does not * match the first operand, so we need to add a move */ insertinstr(blk, i, mkmove(ins->cls, ins->reg-1, ins->l.i)); + ins->l.i = ins->reg-1; } } } -- cgit v1.2.3