diff options
Diffstat (limited to 'src/lj_ir.c')
-rw-r--r-- | src/lj_ir.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/lj_ir.c b/src/lj_ir.c index 30ac026b..602be31a 100644 --- a/src/lj_ir.c +++ b/src/lj_ir.c | |||
@@ -235,6 +235,7 @@ TRef lj_ir_knum_addr(jit_State *J, cTValue *tv) | |||
235 | goto found; | 235 | goto found; |
236 | ref = ir_nextk(J); | 236 | ref = ir_nextk(J); |
237 | ir = IR(ref); | 237 | ir = IR(ref); |
238 | lua_assert(checkptr32(tv)); | ||
238 | setmref(ir->ptr, tv); | 239 | setmref(ir->ptr, tv); |
239 | ir->t.irt = IRT_NUM; | 240 | ir->t.irt = IRT_NUM; |
240 | ir->o = IR_KNUM; | 241 | ir->o = IR_KNUM; |
@@ -250,12 +251,6 @@ TRef lj_ir_knum_nn(jit_State *J, uint64_t nn) | |||
250 | return lj_ir_knum_addr(J, ir_knum_find(J, nn)); | 251 | return lj_ir_knum_addr(J, ir_knum_find(J, nn)); |
251 | } | 252 | } |
252 | 253 | ||
253 | /* Special 16 byte aligned SIMD constants. */ | ||
254 | LJ_DATADEF LJ_ALIGN(16) cTValue lj_ir_knum_tv[4] = { | ||
255 | { U64x(7fffffff,ffffffff) }, { U64x(7fffffff,ffffffff) }, | ||
256 | { U64x(80000000,00000000) }, { U64x(80000000,00000000) } | ||
257 | }; | ||
258 | |||
259 | /* Check whether a number is int and return it. -0 is NOT considered an int. */ | 254 | /* Check whether a number is int and return it. -0 is NOT considered an int. */ |
260 | static int numistrueint(lua_Number n, int32_t *kp) | 255 | static int numistrueint(lua_Number n, int32_t *kp) |
261 | { | 256 | { |