From 9a24999b42a525ff0b49e7b45b1497b7dabbec9a Mon Sep 17 00:00:00 2001 From: lemon Date: Tue, 24 Feb 2026 08:39:55 +0100 Subject: x86_64/isel: fix regression with cmp instrs edge case --- x86_64/isel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x86_64/isel.c b/x86_64/isel.c index c3857c7..a8f55c6 100644 --- a/x86_64/isel.c +++ b/x86_64/isel.c @@ -405,7 +405,7 @@ sel(struct function *fn, struct instr *ins, struct block *blk, int *curi) rswap(ins->l, ins->r); } if (ins->l.t != RTMP && ins->l.t != RREG && ins->l.t != RSTACK) - ins->l = insertinstr(blk, (*curi)++, mkinstr(Ocopy, insrescls(*ins), ins->l)); + ins->l = insertinstr(blk, (*curi)++, mkinstr(Ocopy, ins->cls, ins->l)); else fixarg(&ins->l, ins, blk, curi); fixarg(&ins->r, ins, blk, curi); -- cgit v1.2.3