summary refs log tree commit diff
path: root/amd64
diff options
context:
space:
mode:
authorAndrew Chambers <ac@acha.ninja>2021-10-13 17:07:40 +1300
committerQuentin Carbonneaux <quentin@c9x.me>2021-10-13 13:16:33 +0200
commit462e49fd5c8ff82a341212d9a66621727c70fe1d (patch)
treedaad19e9f85e16e91b7352fda1d8ca4d7fe61011 /amd64
parent4309ac5bdc75763324fb7384f04027c3f07525cd (diff)
downloadroux-462e49fd5c8ff82a341212d9a66621727c70fe1d.tar.gz
add size suffix to frame setup.
Diffstat (limited to 'amd64')
-rw-r--r--amd64/emit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/amd64/emit.c b/amd64/emit.c
index 09b90d5..a888000 100644
--- a/amd64/emit.c
+++ b/amd64/emit.c
@@ -555,7 +555,7 @@ amd64_emitfn(Fn *fn, FILE *f)
 	);
 	fs = framesz(fn);
 	if (fs)
-		fprintf(f, "\tsub $%"PRIu64", %%rsp\n", fs);
+		fprintf(f, "\tsubq $%"PRIu64", %%rsp\n", fs);
 	if (fn->vararg) {
 		o = -176;
 		for (r=amd64_sysv_rsave; r<&amd64_sysv_rsave[6]; r++, o+=8)