diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-07-29 16:09:37 -0400 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-09-15 23:01:29 -0400 |
commit | d8e40a56ec78edb5d451f0cb9e9e0943cb60e907 (patch) | |
tree | aed8fba2c3edf7b8553cd61e9f10c4b4f9ce97ea /lisc/emit.c | |
parent | 5fe13b14e27a7efd90d2eafe083887da3d5fd471 (diff) | |
download | roux-d8e40a56ec78edb5d451f0cb9e9e0943cb60e907.tar.gz |
emit some x86-sepcific instructions
Diffstat (limited to 'lisc/emit.c')
-rw-r--r-- | lisc/emit.c | 6 |
1 files changed, 6 insertions, 0 deletions
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: |