mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Fix soft-float math.abs() and negation.
Broken since SIMD constants were switched to IR_FLOAD REF_NIL.
This commit is contained in:
parent
130d1dc5f2
commit
019fb9d1e9
@ -436,7 +436,8 @@ static void split_ir(jit_State *J)
|
|||||||
nir->o = IR_CONV; /* Pass through loword. */
|
nir->o = IR_CONV; /* Pass through loword. */
|
||||||
nir->op2 = (IRT_INT << 5) | IRT_INT;
|
nir->op2 = (IRT_INT << 5) | IRT_INT;
|
||||||
hi = split_emit(J, IRT(ir->o == IR_NEG ? IR_BXOR : IR_BAND, IRT_SOFTFP),
|
hi = split_emit(J, IRT(ir->o == IR_NEG ? IR_BXOR : IR_BAND, IRT_SOFTFP),
|
||||||
hisubst[ir->op1], hisubst[ir->op2]);
|
hisubst[ir->op1],
|
||||||
|
lj_ir_kint(J, (int32_t)(0x7fffffffu + (ir->o == IR_NEG))));
|
||||||
break;
|
break;
|
||||||
case IR_SLOAD:
|
case IR_SLOAD:
|
||||||
if ((nir->op2 & IRSLOAD_CONVERT)) { /* Convert from int to number. */
|
if ((nir->op2 & IRSLOAD_CONVERT)) { /* Convert from int to number. */
|
||||||
|
Loading…
Reference in New Issue
Block a user