From 2c6f6b4b2dbdd94a10a01124ac61724c412fe587 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Wed, 19 Aug 2015 14:56:33 -0400 Subject: add truncation operation It would be nicer to have some kind of subtyping where a l variable can be used in place of a w variable but it is more complications than a truncation insutruction. In some cases, it might be less efficient than the above solution by requiring two registers instead of one. (I.e when both the truncated variable and the long variable live together.) We have to see what are the usage patterns. --- lisc/lisc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lisc/lisc.h') diff --git a/lisc/lisc.h b/lisc/lisc.h index d924701..b2f1c66 100644 --- a/lisc/lisc.h +++ b/lisc/lisc.h @@ -130,6 +130,7 @@ enum Op { OAnd, OSext, OZext, + OTrunc, OCmp, OCmp1 = OCmp + NCmp-1, OStorel, -- cgit 1.4.1