commit a6bbd5c9801ccc35e27fe8debf389c72f277ac57
parent 4b0a865fee969e27598f90ea1a091066f3f88d61
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Sat, 8 Aug 2015 01:04:46 -0400
fix wrong instruction in emit
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisc/emit.c b/lisc/emit.c
@@ -172,7 +172,7 @@ eins(Ins i, Fn *fn, FILE *f)
if (req(i.to, REG(RDX)) && req(i.arg[0], REG(RAX)))
fprintf(f, "\tcqto\n");
else if (req(i.to, REG(EDX)) && req(i.arg[0], REG(EAX)))
- fprintf(f, "\tcltq\n");
+ fprintf(f, "\tcltd\n");
else
diag("emit: unhandled instruction (2)");
break;