aboutsummaryrefslogtreecommitdiffhomepage
path: root/amd64
diff options
context:
space:
mode:
Diffstat (limited to 'amd64')
-rw-r--r--amd64/isel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/amd64/isel.c b/amd64/isel.c
index 9634103..23ce3d2 100644
--- a/amd64/isel.c
+++ b/amd64/isel.c
@@ -458,6 +458,7 @@ sel(struct function *fn, struct instr *ins, struct block *blk, int *curi)
case Osub:
if (isintcon(ins->l)) {
/* sub imm, x -> sub x, imm; neg x */
+ fixarg(&ins->l, ins, blk, curi);
struct instr sub = *ins;
rswap(sub.l, sub.r);
ins->op = Oneg;