aboutsummaryrefslogtreecommitdiff
path: root/src/asm.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-04-15 03:08:34 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-04-15 03:37:10 +0300
commit78d992ff3052db9dc98a3074e8a4423760c342f1 (patch)
tree12945a143e462cefccdca8dd589d3f9122833d4e /src/asm.c
parent5a728ae106b978c6de0fa6316f37eb3b4a86a405 (diff)
downloadqbt-78d992ff3052db9dc98a3074e8a4423760c342f1.tar.gz
qbt-78d992ff3052db9dc98a3074e8a4423760c342f1.zip
fix insert_before/after
+ Hopefully for good, quite a lot of messing about with those functions
Diffstat (limited to 'src/asm.c')
-rw-r--r--src/asm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/asm.c b/src/asm.c
index 60d8139..4674c99 100644
--- a/src/asm.c
+++ b/src/asm.c
@@ -296,7 +296,7 @@ static void output_alloc(struct insn i, FILE *o)
assert(i.type == ALLOC);
/** @todo alignment is ignored, is that our responsibility? */
fprintf(o, "addi sp, sp, -%lli\n", i.v);
- fprintf(o, "mov %s, sp\n", rname(i.out));
+ fprintf(o, "mv %s, sp\n", rname(i.out));
}
static void output_dealloc(struct insn i, FILE *o)