aboutsummaryrefslogtreecommitdiffhomepage
path: root/x86_64
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-12-24 09:20:08 +0100
committerlemon <lsof@mailbox.org>2025-12-24 09:20:08 +0100
commitefb31c9f7d34f42c4b37e4a05510e244af727234 (patch)
tree1de3254a0033ffe1d97dd9ab9aba028ba313b438 /x86_64
parent4e4c66ca458970daa32fae35f18720142b563115 (diff)
x86_64: fix isel for 7036e19
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 2b83093..9c99608 100644
--- a/x86_64/isel.c
+++ b/x86_64/isel.c
@@ -414,7 +414,7 @@ sel(struct function *fn, struct instr *ins, struct block *blk, int *curi)
ins->op = ((op - Olth) ^ 1) + Olth;
rswap(ins->l, ins->r);
}
- if (ins->l.t != RTMP && ins->l.t != RREG)
+ if (ins->l.t != RTMP && ins->l.t != RREG && ins->l.t != RSTACK)
ins->l = insertinstr(blk, (*curi)++, mkinstr(Ocopy, insrescls(*ins), ins->l));
else
fixarg(&ins->l, ins, blk, curi);