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.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/lj_ir.h b/src/lj_ir.h
index 75635f93..a6d36283 100644
--- a/src/lj_ir.h
+++ b/src/lj_ir.h
@@ -219,11 +219,13 @@ IRFLDEF(FLENUM)
219#define IRTOINT_TRUNCI64 5 /* Truncate number to int64_t. */ 219#define IRTOINT_TRUNCI64 5 /* Truncate number to int64_t. */
220#define IRTOINT_TOBIT 6 /* Cache only: TOBIT conversion. */ 220#define IRTOINT_TOBIT 6 /* Cache only: TOBIT conversion. */
221 221
222/* CONV mode, stored in op2. Lowest 8 bits is the IRType of the source. */ 222/* CONV mode, stored in op2. */
223#define IRCONV_TRUNC 0x100 /* Truncate number to integer. */ 223#define IRCONV_SRCMASK 0x001f /* Source IRType. */
224#define IRCONV_SEXT 0x200 /* Sign-extend integer to integer. */ 224#define IRCONV_DSTMASK 0x03e0 /* Dest. IRType (also in ir->t). */
225#define IRCONV_MODEMASK 0x3ff 225#define IRCONV_TRUNC 0x0400 /* Truncate number to integer. */
226#define IRCONV_CSH 10 226#define IRCONV_SEXT 0x0800 /* Sign-extend integer to integer. */
227#define IRCONV_MODEMASK 0x0fff
228#define IRCONV_CSH 12
227/* Number to integer conversion mode. Ordered by strength of the checks. */ 229/* Number to integer conversion mode. Ordered by strength of the checks. */
228#define IRCONV_TOBIT (0<<IRCONV_CSH) /* None. Cache only: TOBIT conv. */ 230#define IRCONV_TOBIT (0<<IRCONV_CSH) /* None. Cache only: TOBIT conv. */
229#define IRCONV_ANY (1<<IRCONV_CSH) /* Any FP number is ok. */ 231#define IRCONV_ANY (1<<IRCONV_CSH) /* Any FP number is ok. */