qbe

Internal scc patchset buffer for QBE
Log | Files | Refs | README | LICENSE

commit d8e40a56ec78edb5d451f0cb9e9e0943cb60e907
parent 5fe13b14e27a7efd90d2eafe083887da3d5fd471
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date:   Wed, 29 Jul 2015 16:09:37 -0400

emit some x86-sepcific instructions

Diffstat:
Mlisc/emit.c | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/lisc/emit.c b/lisc/emit.c @@ -58,6 +58,12 @@ eins(Ins i, Fn *fn, FILE *f) case OSwap: eop("xchg", i.arg[0], i.arg[1], fn, f); break; + case OIACltd: + fprintf(f, "\tcltd\n"); + break; + case OIADiv: + eop("idiv", i.arg[0], R, fn, f); + break; case ONop: break; default: