aboutsummaryrefslogtreecommitdiffhomepage
path: root/x86_64
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2026-02-24 08:39:55 +0100
committerlemon <lsof@mailbox.org>2026-02-24 08:39:55 +0100
commit9a24999b42a525ff0b49e7b45b1497b7dabbec9a (patch)
tree5e30f513ad2700d879983921503e553dcf191ec2 /x86_64
parent27374352daf7b932785b9c9d2edcd36908a4fb0a (diff)
x86_64/isel: fix regression with cmp instrs edge case
Diffstat (limited to 'x86_64')
-rw-r--r--x86_64/isel.c2
1 files changed, 1 insertions, 1 deletions
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);