diff options
| author | 2025-12-04 19:06:55 +0100 | |
|---|---|---|
| committer | 2025-12-04 19:06:55 +0100 | |
| commit | 8a960c718d301b3a08e3513a88ebd617148311fb (patch) | |
| tree | 7b7bf8d7f968c9275ac3c5cde670928fc7a7f666 /amd64 | |
| parent | 2795b6ecc2d0d64d0b6411d6ec09fbf96f98d1eb (diff) | |
isel: fix immediate of flipped sub
Diffstat (limited to 'amd64')
| -rw-r--r-- | amd64/isel.c | 1 |
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; |