From cebec4dd4739712530111c6211129ef2ee948c5c Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Mon, 7 Mar 2016 13:46:44 -0500 Subject: add new cast instruction --- lisc/emit.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lisc/emit.c') diff --git a/lisc/emit.c b/lisc/emit.c index e055758..240bfc6 100644 --- a/lisc/emit.c +++ b/lisc/emit.c @@ -77,6 +77,8 @@ static struct { { OFtosi, Kl, "cvttsd2si %0, %=" }, { OSitof, Ks, "cvtsi2ss %W0, %=" }, { OSitof, Kd, "cvtsi2sd %L0, %=" }, + { OCast, Ki, "movq %D0, %L=" }, + { OCast, Ka, "movq %L0, %D=" }, { OAddr, Ki, "lea%k %M0, %=" }, { OSwap, Ki, "xchg%k %0, %1" }, -- cgit 1.4.1