implement aggregate passing in regs

This commit is contained in:
Quentin Carbonneaux 2015-09-11 14:10:05 -04:00
parent 8201c6161e
commit ece185f067
4 changed files with 45 additions and 44 deletions

View file

@ -249,10 +249,7 @@ eins(Ins i, Fn *fn, FILE *f)
1, TMP(RSP), i.to);
break;
case OXPush:
emitf(fn, f, "\tpush%w %R\n", 1, i.arg[0]);
break;
case OXMovs:
emitf(fn, f, "\trep movsb\n");
emitf(fn, f, "\tpush%w %R\n", i.wide, i.arg[0]);
break;
case OXDiv:
emitf(fn, f, "\tidiv%w %R\n", i.wide, i.arg[0]);