diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-08-07 14:27:20 -0400 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-09-15 23:01:30 -0400 |
commit | ad012e9d558138b61881156ab8b31e74cd759825 (patch) | |
tree | b6287b43fd42e9e19adc8cf8b111107beb02a250 /lisc/lisc.h | |
parent | 7dc3e5dcf60d1995857c85773cd15c9904ec9abd (diff) | |
download | roux-ad012e9d558138b61881156ab8b31e74cd759825.tar.gz |
implement smarter compare+branch
Diffstat (limited to 'lisc/lisc.h')
-rw-r--r-- | lisc/lisc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lisc/lisc.h b/lisc/lisc.h index 8f77a54..ecd0fcc 100644 --- a/lisc/lisc.h +++ b/lisc/lisc.h @@ -97,6 +97,7 @@ enum { #define R (Ref){0, 0} #define TMP(x) (Ref){RTmp, x} #define CON(x) (Ref){RCon, x} +#define CON_Z CON(0) /* reserved zero constant */ #define SLOT(x) (Ref){RSlot, x} #define REG(x) (Ref){RReg, x} @@ -146,6 +147,9 @@ enum { JRet, JJmp, JJez, + JXJc, + JXJc1 = JXJc + NCmp-1, + JLast }; struct OpDesc { |