aboutsummaryrefslogtreecommitdiff
path: root/src/lj_ir.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_ir.h')
-rw-r--r--src/lj_ir.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lj_ir.h b/src/lj_ir.h
index a6d36283..5733f6af 100644
--- a/src/lj_ir.h
+++ b/src/lj_ir.h
@@ -222,9 +222,12 @@ IRFLDEF(FLENUM)
222/* CONV mode, stored in op2. */ 222/* CONV mode, stored in op2. */
223#define IRCONV_SRCMASK 0x001f /* Source IRType. */ 223#define IRCONV_SRCMASK 0x001f /* Source IRType. */
224#define IRCONV_DSTMASK 0x03e0 /* Dest. IRType (also in ir->t). */ 224#define IRCONV_DSTMASK 0x03e0 /* Dest. IRType (also in ir->t). */
225#define IRCONV_NUM_INT ((IRT_NUM<<5)|IRT_INT)
226#define IRCONV_INT_NUM ((IRT_INT<<5)|IRT_NUM)
225#define IRCONV_TRUNC 0x0400 /* Truncate number to integer. */ 227#define IRCONV_TRUNC 0x0400 /* Truncate number to integer. */
226#define IRCONV_SEXT 0x0800 /* Sign-extend integer to integer. */ 228#define IRCONV_SEXT 0x0800 /* Sign-extend integer to integer. */
227#define IRCONV_MODEMASK 0x0fff 229#define IRCONV_MODEMASK 0x0fff
230#define IRCONV_CONVMASK 0xf000
228#define IRCONV_CSH 12 231#define IRCONV_CSH 12
229/* Number to integer conversion mode. Ordered by strength of the checks. */ 232/* Number to integer conversion mode. Ordered by strength of the checks. */
230#define IRCONV_TOBIT (0<<IRCONV_CSH) /* None. Cache only: TOBIT conv. */ 233#define IRCONV_TOBIT (0<<IRCONV_CSH) /* None. Cache only: TOBIT conv. */
@@ -232,6 +235,7 @@ IRFLDEF(FLENUM)
232#define IRCONV_INDEX (2<<IRCONV_CSH) /* Check + special backprop rules. */ 235#define IRCONV_INDEX (2<<IRCONV_CSH) /* Check + special backprop rules. */
233#define IRCONV_CHECK (3<<IRCONV_CSH) /* Number checked for integerness. */ 236#define IRCONV_CHECK (3<<IRCONV_CSH) /* Number checked for integerness. */
234 237
238
235/* C call info for CALL* instructions. */ 239/* C call info for CALL* instructions. */
236typedef struct CCallInfo { 240typedef struct CCallInfo {
237 ASMFunction func; /* Function pointer. */ 241 ASMFunction func; /* Function pointer. */