From 9c7b06d68f6a71ff43d1de60953658ca47bbde36 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Wed, 5 Aug 2015 12:47:10 -0400 Subject: quick fix for comparisons with constants --- lisc/lisc.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lisc/lisc.h') diff --git a/lisc/lisc.h b/lisc/lisc.h index 1291fea..4e150db 100644 --- a/lisc/lisc.h +++ b/lisc/lisc.h @@ -108,9 +108,13 @@ static inline int rtype(Ref r) enum { Ceq, Csle, + Csgt, /* mirror opposite cmps! */ + Cne, NCmp, }; +#define CNEG(c) (NCmp-1 - c) + enum { OXXX, /* public instruction */ -- cgit 1.4.1