implement smarter compare+branch

This commit is contained in:
Quentin Carbonneaux 2015-08-07 14:27:20 -04:00
parent 7dc3e5dcf6
commit ad012e9d55
3 changed files with 132 additions and 30 deletions

View file

@ -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 {