mirror of
git://c9x.me/qbe.git
synced 2026-04-06 18:39:48 +00:00
fix wrong instruction in emit
This commit is contained in:
parent
4b0a865fee
commit
a6bbd5c980
@ -172,7 +172,7 @@ eins(Ins i, Fn *fn, FILE *f)
|
|||||||
if (req(i.to, REG(RDX)) && req(i.arg[0], REG(RAX)))
|
if (req(i.to, REG(RDX)) && req(i.arg[0], REG(RAX)))
|
||||||
fprintf(f, "\tcqto\n");
|
fprintf(f, "\tcqto\n");
|
||||||
else if (req(i.to, REG(EDX)) && req(i.arg[0], REG(EAX)))
|
else if (req(i.to, REG(EDX)) && req(i.arg[0], REG(EAX)))
|
||||||
fprintf(f, "\tcltq\n");
|
fprintf(f, "\tcltd\n");
|
||||||
else
|
else
|
||||||
diag("emit: unhandled instruction (2)");
|
diag("emit: unhandled instruction (2)");
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user