diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-08-08 01:04:46 -0400 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-09-15 23:01:30 -0400 |
commit | a6bbd5c9801ccc35e27fe8debf389c72f277ac57 (patch) | |
tree | baef280a94cf833b429f630b604396ad0a7e7b85 | |
parent | 4b0a865fee969e27598f90ea1a091066f3f88d61 (diff) | |
download | roux-a6bbd5c9801ccc35e27fe8debf389c72f277ac57.tar.gz |
fix wrong instruction in emit
-rw-r--r-- | lisc/emit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisc/emit.c b/lisc/emit.c index ad48a27..f137d1d 100644 --- 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; |