From d8e40a56ec78edb5d451f0cb9e9e0943cb60e907 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Wed, 29 Jul 2015 16:09:37 -0400 Subject: emit some x86-sepcific instructions --- lisc/emit.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lisc') diff --git a/lisc/emit.c b/lisc/emit.c index 9841c14..4c31d0a 100644 --- 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: -- cgit 1.4.1